Giter VIP home page Giter VIP logo

node-submod's Introduction

submod npm version

A subtitle(ass/srt) toolkit for modifing synchronization, encoding(TBD), etc.

Install

$ npm install -g submod

Usage

submod sync <subtitles> <delta>

Adjust subtitles delay by delta(in seconds), and save to a new file with suffix ".submod".

# Decrease subtitle delay by 134.7 seconds:
$ submod sync *S5E01*.ass :-134.7

# Increase subtitle delay by 11.1 seconds:
$ submod sync *S5E01*.srt :+11.1

License

GitHub license

node-submod's People

Contributors

amio avatar

Stargazers

 avatar Zeo avatar Mole Shang avatar  avatar hr6r avatar oxf4vul avatar Daniel Peng avatar Xiaosheng ZHU avatar Ast avatar Wu Haotian avatar BTF avatar chencheng (云谦) avatar YunEr avatar xream avatar c0nnax avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

cqzhao

node-submod's Issues

SyntaxError: Use of const in strict mode.

Hello,

I've installed via npm and I'm getting this error when triyng to sync a subtitle:


$ submod Downton.Abbey.S06E01.1080p.WEB-DL.AAC2.0.H.264-EsQ.srt :+6
/usr/local/lib/node_modules/submod/lib/sync.js:3
const fs = require('fs')
^^^^^
SyntaxError: Use of const in strict mode.
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/submod/lib/index.js:8:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.