video-auto-subtitle

1.0.0 • Public • Published
__     ___    ____
\ \   / / \  / ___|
 \ \ / / _ \ \___ \
  \ V / ___ \ ___) |
   \_/_/   \_\____/

Video Auto Subtitle (VAS)

VAS helps to automatically generate .srt subtitle file for video, so you can further adjust and edit it.

🤔 The status quo working principle

Utilize ffmpeg silence detection to get silence parts, then use sed and awk to extract text data, then nodejs process these data and write a .srt file for your further customization.

🛠 Howt o use

Make sure you have ffmpeg, sed, awk and nodejs installed. Clone this repo, run

node dist/index.js -h 

to see the help.

Some examples are like:

node dist/index.js -v video.mp4

then wait some time (very likely not a short time with intensive cpu consumption, largely due to ffmpeg) and you'll see output.srt under the directory.

Readme

Keywords

none

Package Sidebar

Install

npm i video-auto-subtitle

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

38 kB

Total Files

4

Last publish

Collaborators

  • ahacad