Skip to content

Instantly share code, notes, and snippets.

@zserghei
Last active December 25, 2015 22:07
Show Gist options
  • Save zserghei/c6dbb97c5ee9f2cb2d50 to your computer and use it in GitHub Desktop.
Save zserghei/c6dbb97c5ee9f2cb2d50 to your computer and use it in GitHub Desktop.
cat VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB VTS_01_4.VOB VTS_01_5.VOB VTS_01_6.VOB > mymovie.vob
# subtitles as separate stream (not supported by tv)
ffmpeg -probesize 600M -analyzeduration 600M -i mymovie.vob -map 0:0 -map 0:1 -map 0:3 -f matroska -c:v mpeg4 -q:v 3 -c:a libmp3lame -c:s copy -sub_charenc UTF8 -metadata:s:s:0 language=eng mymovie.mkv
# hardcoded subtitles
ffmpeg -probesize 600M -analyzeduration 600M -i mymovie.vob -f matroska -c:v mpeg4 -q:v 3 -c:a libmp3lame -filter_complex "[0:v][0:s]overlay[v]" -map "[v]" -map 0:1 mymovie.mkv
# combine video+audio and several subtitles files into one output
ffmpeg -i input.avi -i subtitles1.srt -i subtitles2.srt -map 0 -map 1 -map 2 -f matroska -c:v mpeg4 -q:v 3 -c:a libmp3lame -c:s copy output.mkv
# codecs supported by tv: mpeg4, h264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment