Created
September 1, 2021 10:58
-
-
Save filviu/0a5133b40efbb3394726e04f53d4e860 to your computer and use it in GitHub Desktop.
broken vob to mkv
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 | |
# 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