Skip to content

Instantly share code, notes, and snippets.

@vollnixx
Last active December 15, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vollnixx/5280751 to your computer and use it in GitHub Desktop.
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.
#!/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