Skip to content

Instantly share code, notes, and snippets.

@cb372
Created May 3, 2014 13:22
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 cb372/bcb7d2b03ad7c84a972d to your computer and use it in GitHub Desktop.
Save cb372/bcb7d2b03ad7c84a972d to your computer and use it in GitHub Desktop.
Adding burned-in Japanese subs with mencoder
#!/bin/sh
if [ $* -n 3 ]; then
echo "Usage: $(basename $0) subs.srt in.avi out.avi"
exit 1
fi
mencoder -oac copy -ovc lavc -sub "$1" -utf8 -subfont-text-scale 3.3 -subpos 96 "$2" -o "$3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment