Skip to content

Instantly share code, notes, and snippets.

@filviu
Created September 1, 2021 10:58
Show Gist options
  • Save filviu/0a5133b40efbb3394726e04f53d4e860 to your computer and use it in GitHub Desktop.
Save filviu/0a5133b40efbb3394726e04f53d4e860 to your computer and use it in GitHub Desktop.
broken vob to mkv
#!/bin/bash
# concatenate
cat *.VOB > output.vob
# find streams
ffmpeg -i output.vob
# find missing subs
ffmpeg -analyzeduration 100M -probesize 100M -i output.vob
# repack
ffmpeg \
-analyzeduration 100M -probesize 100M \
-fflags +genpts \
-i output.vob \
-map 0:1 -map 0:2 -map 0:4 -map 0:5 \
-metadata:s:a:0 language=eng -metadata:s:a:0 title="Surround 5.1" \
-metadata:s:a:1 language=eng -metadata:s:a:1 title="Commentary" \
-metadata:s:s:0 language=ro -metadata:s:s:0 title="Romanian" \
-codec:v copy \
-codec:a copy \
-codec:s copy \
output.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment