1.0.0 • Published 2 years ago

video-auto-subtitle v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago
__     ___    ____
\ \   / / \  / ___|
 \ \ / / _ \ \___ \
  \ 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.