I have these two avis:
I've been trying to combine all the streams into one file.Code:Input #0, avi, from '1.avi': Metadata: encoder : MEncoder svn r34540 (Ubuntu), built with gcc-4.6 Duration: 00:11:24.00, start: 0.000000, bitrate: 25977 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 1280x720, 24 tbr, 24 tbn, 24 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s [avi @ 0x737b80] non-interleaved AVI Input #1, avi, from '2.avi': Metadata: encoder : MEncoder svn r34540 (Ubuntu), built with gcc-4.6 Duration: 00:11:24.00, start: 0.000000, bitrate: 24206 kb/s Stream #1:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 1280x720, 24 tbr, 24 tbn, 24 tb
According to ffmpeg documentation it should be doable this way:
For some reason I always end up with the 0 streams only. It also does not matter whether I point to the specific streams (0:0, 0:1, 1:0) or specify -vcodec copy etc.Code:ffmpeg -i 1.avi -i 2.avi -c copy 12.avi -map 0 -map 1
What am I doing wrong?
+ Reply to Thread
Results 1 to 6 of 6
-
-
a. iirc ffmpeg is not ment to append multiple files this way, ffmpeg always first uses cat/concat/copy to append the files and then remuxes the files. Since appending files bytewise isn't really a good idea for most formats (aside from mpeg-1, mpeg-2 and DV) I would normally not use ffmpeg&cut.
b. you could also try mencoder:
Code:mencoder -oac copy -ovc copy -o 12.avi 1.avi 2.avi
Cu Selur -
then:
Code:ffmpeg -i "1.avi" -i "2.avi" -c copy -map 0 -map 1 "12.avi"
what does:
Code:ffmpeg -i 12.avi
-
Damn, it does the job indeed! I had the feeling it was something trivial. Thanks a lot Ce Selur.
Code:nput #0, avi, from '12.avi': Metadata: encoder : Lavf54.59.107 Duration: 00:11:24.00, start: 0.000000, bitrate: 50190 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 1280x720, 24 tbr, 24 tbn, 24 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Stream #0:2: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 1280x720, 24 tbr, 24 tbn, 24 tbc
-
I normally use "-quotes since I normally use full paths and white spaces inside names
Similar Threads
-
Multiple Cams, Multiple Streams
By nixman in forum Newbie / General discussionsReplies: 2Last Post: 17th Jan 2013, 07:12 -
Multiple Video Streams
By CthulhuSaves in forum EditingReplies: 7Last Post: 2nd Apr 2011, 19:28 -
Streams with Multiple Files
By topquark in forum Newbie / General discussionsReplies: 1Last Post: 24th Apr 2010, 06:31 -
Play multiple streams in DVD (Merge multiple streams)
By sebastien91 in forum SubtitleReplies: 0Last Post: 25th Apr 2009, 18:44 -
Download Multiple Streams
By str3am in forum Video Streaming DownloadingReplies: 0Last Post: 11th Feb 2009, 06:37