[FFmpeg-devel] [OT]: `cat' two video files

Rodolfo Medina rodolfo.medina
Thu Dec 25 23:47:55 CET 2008


My apologizes if this list is not the right one for my question,
or my question is not right for this list.

I posted my problem to ffmpeg-user m.l. but got no reply.
I really think a solution exists and the answer can come from ffmpeg expert
people.

I wish to use the simple old plain unix `cat' command to join two video files
together.

The first file (presentation.mpg) is a simple text presentation
converted into mpeg format from a jpeg image,
the second is a .vob video file coming from a dvd.  Information about it are:

Input #0, mpeg, from 'movie.vob':
  Duration: N/A, start: 556.163678, bitrate: N/A
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15
DAR 4:3], 8000 kb/s, 25.00 tb(r)
    Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s

I tried with:

ffmpeg -i presentation.wav -i presentation.m2v -target pal-dvd -acodec
pcm_s16be -b 8000k -s 720x576 -ab 1536k -ac 2 -r 25 -f mp2
presentation.mpg

, then

cat presentation.mpg movie.vob > final-movie.mpg

, but the two are not properly concatenated.
I need indications about how to achieve what I want, if ever possible.

Thanks for any help
Rodolfo




More information about the ffmpeg-devel mailing list