Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFMpeg open a DVD VOB chain?

Tags:

ffmpeg

dvd

vob

I'm new to FFMpeg so this may be a dumb question, but I don't see the answer in the documentation.

I want to decode frames from a DVD vob files. Opening the first VOB in the group works fine, but how do I tell ffmpeg to continue on to the next VOB and read all the VOBs on a DVD?

I have the VOB files in a folder on a hard disk.

like image 876
Sugrue Avatar asked Nov 23 '11 11:11

Sugrue


Video Answer


2 Answers

VOB format is a subset of mpeg, so you should be able to combine the VOBs you want to read in just as you would mpeg data: by concatenating them together.

cat first.VOB second.VOB third.VOB | ffmpeg -i - outfile.mp4 

Hoisting Matt Gallagher's comment to increase longevity/visibility:

Newer versions of ffmpeg support concatenation as an operator on the input file. So you could use... ffmpeg -i concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB outfile.mp4

like image 117
blahdiblah Avatar answered Sep 23 '22 08:09

blahdiblah


You can actually use ffmpegs builtin concatenation functionality, which is what I think you're looking for:

ffmpeg -i "concat:$(echo *.VOB|tr \  \|)" -f mpeg -c copy -sn -y combined.mpg 

See: http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files

like image 42
Justin Buser Avatar answered Sep 20 '22 08:09

Justin Buser