Is it possible to merge two (or more) video files from the command line? In Windows, one could do this:
copy /b VTS_01_1.vob + VTS_01_2.vob + VTS_01_3.vob + VTS_01_4.vob Output.vob
I find this to be much easier and faster than using a dedicated GUI program. Is there an equivalent in Ubuntu?
Best Answer
Improved version (this will show a progress bar):
Similar to the 2nd:
Oh and you could also
mv
the output.vob to.mpeg
and have it play in VLC or another videoplayer.Using ffmpeg:
The methods using
cat
do NOT interpret the files and just add them together. 1 typical thing you will notice is a slight hickup when the player goes from 1 to the next VOB. Avidemux (GUI), for instance, will also demux(is that the correct word?) the files so it is a smoother experience.If you receive the error message
then you will need to specify DVD as the output format by adjusting the above ffmpeg command with
... -f dvd ...
.