Last active
December 15, 2015 15:19
-
-
Save vollnixx/5280751 to your computer and use it in GitHub Desktop.
Embed subtitles into videos with mencoder. The files must have the same name, by example video1.flv & video1.srt, then copy this script into the folder and let it run.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in *.flv; | |
do | |
nameis=${f%.*} | |
mencoder -utf8 -subfont-text-scale 3 -sub $nameis.srt $nameis.flv -o $nameis.SUB.flv -oac mp3lame -ovc lavc | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment