Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

subtitles-adjuster

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

subtitles-adjuster

Auto adjust the timeline of bilingual subtitles with the base subtitles. (根据基准字幕自动校正中英双语字幕的时间轴)

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

subtitles-adjuster

Auto adjust the timeline of bilingual subtitles with the base subtitles (eg: English version subtitle). 自动根据基准字幕(一般是视频自带的英文字幕)校准双语字幕的时间轴。

Install

npm install -g subtitles-adjuster

Usage

subtitles-adjuster -b=en.srt -d=en_chs.srt

Options:

OptionRequiredDefault
--base or -bYes
--draft or -dYes
--output or -oNofixed.srt
--baseEncodeNo// auto detect
--draftEncodeNo// auto detect

Supported file types

  • input: .ass, .srt
  • output: .srt

How to get base subtitles

  1. Install ffmpeg
  2. Extract subtitle from video file
    ffmpeg -i video.mkv base.srt
    
  3. You will get the base subtitles: base.srt

License

MIT

Keywords

FAQs

Package last updated on 26 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc