Im new to ffmpeg and the documentations are overwhelming.
Would like to "Glue" 2 FLV movies together (ascii art does not work here so)
[ 1 ] [ 2 ]
[1][2] <= create 1 new movie with the 2 video's playing next to each other
Im new to ffmpeg and the documentations are overwhelming.
Would like to "Glue" 2 FLV movies together (ascii art does not work here so)
[ 1 ] [ 2 ]
[1][2] <= create 1 new movie with the 2 video's playing next to each other
Please consider converting them to mp4 (since Flash supports it and its more compact) The use this:
ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
Taken from Concatenating media files
After more digging the docs this seems to work:
ffmpeg -i stream1.mp4 -i stream2.mp4 -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg]; [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w; amerge,pan=stereo:c0<c0+c2:c1<c1+c3" output.mp4