Hello, I'm trying to put several AVI's (video only) consecutively into one MPEG2 movie for DVD burning. The following command line doesn't work: ffmpeg -i video_0.avi -i video_1.avi -target pal-dvd out.mpg ffmpeg version 0.4.9-pre1, build 4747, Copyright (c) 2000-2004 Fabrice Bellard configuration: built on Mar 17 2005 08:34:25, gcc: 3.3 20030226 (prerelease) (SuSE Linux) Input #0, avi, from 'video_0.avi': Duration: 00:00:17.9, start: 0.000000, bitrate: 5807 kb/s Stream #0.0: Video: mjpeg, 720x576, 25.00 fps Input #1, avi, from 'video_1.avi': Duration: 00:00:17.4, start: 0.000000, bitrate: 8238 kb/s Stream #1.0: Video: mjpeg, 720x576, 25.00 fps Output #0, dvd, to 'out.mpg': Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 6000 kb/s Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 448 q=0.0 Lsize= 13178kB time=17.9 bitrate=6037.7kbits/s video:12932kB audio:0kB global headers:0kB muxing overhead 1.900919% Is there a way to make this work? Is there an "append" option with ffmpeg? Thank you for the help. Regards, Marko
I'm trying to put several AVI's (video only) consecutively into one MPEG2 movie for DVD burning. The following command line doesn't work:
ffmpeg -i video_0.avi -i video_1.avi -target pal-dvd out.mpg ... Is there a way to make this work? Is there an "append" option with ffmpeg?
I concluded there wasn't such an option and use avimerge as an intermediate step. It is a shame as it requires more disk space. Darren
Darren Cook schrieb:
I'm trying to put several AVI's (video only) consecutively into one MPEG2 movie for DVD burning. The following command line doesn't work:
ffmpeg -i video_0.avi -i video_1.avi -target pal-dvd out.mpg ... Is there a way to make this work? Is there an "append" option with ffmpeg?
I concluded there wasn't such an option and use avimerge as an intermediate step. It is a shame as it requires more disk space.
Darren
Is it possible to first encode all AVI's separately to MPEG2 with and then simply concatenate the resulting MPEG2-files? ffmpeg -i video_0.avi -target pal-dvd out0.mpg ffmpeg -i video_1.avi -target pal-dvd out1.mpg cat out*.mpg > out.mpg At least ffplay is able to display the resulting file. Are there any implications with a hardware DVD-player? Marko
On 9/7/05, Marko Bester <m.bester at mikrolab.com> wrote:
Is it possible to first encode all AVI's separately to MPEG2 with and then simply concatenate the resulting MPEG2-files?
While it might work in most cases, the cleaner way to do it is to remux the resulting mpegs into one. I have been using this little script to merge several AVIs into one DVD: #!/bin/sh for file in "$@"; do ffmpeg -i "$file" -target dvd - done | ffmpeg -i - -target dvd -vcodec copy -acodec copy -y output.vob It has been working nicely so far, and since it uses pipes, there's no need to store any intermediate files either. :) Vidar
Aren't you overwriting your output file with this? (-y) -----Original Message----- From: ffmpeg-user-bounces at mplayerhq.hu [mailto:ffmpeg-user-bounces at mplayerhq.hu] On Behalf Of Vidar Madsen Sent: September 7, 2005 5:37 AM To: FFMpeg user questions and RTFMs Subject: Re: [Ffmpeg-user] Several AVI's to one MPEG2 On 9/7/05, Marko Bester <m.bester at mikrolab.com> wrote:
Is it possible to first encode all AVI's separately to MPEG2 with and then simply concatenate the resulting MPEG2-files?
While it might work in most cases, the cleaner way to do it is to remux the resulting mpegs into one. I have been using this little script to merge several AVIs into one DVD: #!/bin/sh for file in "$@"; do ffmpeg -i "$file" -target dvd - done | ffmpeg -i - -target dvd -vcodec copy -acodec copy -y output.vob It has been working nicely so far, and since it uses pipes, there's no need to store any intermediate files either. :) Vidar _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
On 9/8/05, Fr?d?ric v. Bochmann <fredericbochmann at sympatico.ca> wrote:
Aren't you overwriting your output file with this? (-y)
Oops, yes, I am. I was just shuffling the parameters before posting, and left it in. Feel free to remove it. ;) The script was more like a "this is how you concat files with ffmpeg"-demo than a real example, though. Vidar
participants (4)
-
darren@dcook.org -
fredericbochmann@sympatico.ca -
m.bester@mikrolab.com -
vidarino@gmail.com