[FFmpeg-user] amerge multiple inputs with filter_complex
Madovsky
infos at madovsky.org
Thu Jan 31 03:48:48 CET 2013
----- Original Message -----
From: "Carl Eugen Hoyos" <cehoyos at ag.or.at>
To: <ffmpeg-user at ffmpeg.org>
Sent: Wednesday, January 30, 2013 9:32 PM
Subject: Re: [FFmpeg-user]amerge multiple inputs with filter_complex
> Madovsky <infos <at> madovsky.org> writes:
>
>> ffmpeg -loop 1 -an background.png -i stream11.mp4 -i stream22.mp4
>> -filter_complex "[1:1][2:1]amerge[audio];
>> [0:0][1:0]overlay=(main_w-640)/2:(main_h-240)/2[left];
>> [left][2:0]overlay=((main_w-640)/2)+320:(main_h-240)/2"
>> -map '[audio]' -shortest output.mp4
>>
>> works well unless "amerge" that prevent the end of the encoding
>
> Please add the complete, uncut console output.
>
> Carl Eugen
>
here is
---------
ffmpeg -loop 1 -an -i neterviewBack.png -i stream11.mp4 -i
stream22.mp4 -filter_complex "[1:1][2:1]amerge[audio];
[0:0][1:0]overlay=(main_w-640)/2:(main_h-240)/2[left];
[left][2:0]overlay=((main_w-640)/2)+320:(main_h-240)/2" -map '[audio]'
output.mp4 > amergeLog.txt
ffmpeg version N-49451-g71f8d70 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 30 2013 01:39:05 with gcc 4.3.2 (GCC) 20081105 (Red Hat
4.3.2-7)
configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac
--enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-runtime-cpudetect
--enable-librtmp --extra-ldflags=-L/usr/local/lib64/libfaad.so.0 --enable-libfreetype
libavutil 52. 17.100 / 52. 17.100
libavcodec 54. 91.100 / 54. 91.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 34.101 / 3. 34.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[image2 @ 0x2140600] max_analyze_duration 5000000 reached at 5000000
microseconds
Input #0, image2, from 'neterviewBack.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 682x450, 25 fps, 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'stream11.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : The Amazing Spiderman
encoder : Lavf54.61.104
Duration: 00:02:27.24, start: 0.023220, bitrate: 353 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
320x240 [SAR 30:17 DAR 40:17], 219 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn,
47.95 tbc
Metadata:
handler_name : VideoHandler
Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 128 kb/s
Metadata:
handler_name : SoundHandler
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'stream22.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Twilight 4 Breaking Dawn
encoder : Lavf54.61.104
Duration: 00:02:30.81, start: 0.023220, bitrate: 288 kb/s
Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
320x240 [SAR 30:17 DAR 40:17], 155 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn,
47.95 tbc
Metadata:
handler_name : VideoHandler
Stream #2:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 127 kb/s
Metadata:
handler_name : SoundHandler
File 'output.mp4' already exists. Overwrite ? [y/N] ^C
[root at node250 Z__OFFCLASS]# ffmpeg -loop 1 -an -i neterviewBack.png -i
stream11.mp4 -i stream22.mp4 -filter_complex "[1:1][2:1]amerge[audio];
[0:0][1:0]overlay=(main_w-640)/2:(main_h-240)/2[left];
[left][2:0]overlay=((main_w-640)/2)+320:(main_h-240)/2" -map '[audio]' -y
output.mp4
ffmpeg version N-49451-g71f8d70 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 30 2013 01:39:05 with gcc 4.3.2 (GCC) 20081105 (Red Hat
4.3.2-7)
configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac
--enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-runtime-cpudetect
--enable-librtmp --extra-ldflags=-L/usr/local/lib64/libfaad.so.0 --enable-libfreetype
libavutil 52. 17.100 / 52. 17.100
libavcodec 54. 91.100 / 54. 91.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 34.101 / 3. 34.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[image2 @ 0x3234600] max_analyze_duration 5000000 reached at 5000000
microseconds
Input #0, image2, from 'neterviewBack.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 682x450, 25 fps, 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'stream11.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : The Amazing Spiderman
encoder : Lavf54.61.104
Duration: 00:02:27.24, start: 0.023220, bitrate: 353 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
320x240 [SAR 30:17 DAR 40:17], 219 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn,
47.95 tbc
Metadata:
handler_name : VideoHandler
Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 128 kb/s
Metadata:
handler_name : SoundHandler
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'stream22.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Twilight 4 Breaking Dawn
encoder : Lavf54.61.104
Duration: 00:02:30.81, start: 0.023220, bitrate: 288 kb/s
Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
320x240 [SAR 30:17 DAR 40:17], 155 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn,
47.95 tbc
Metadata:
handler_name : VideoHandler
Stream #2:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 127 kb/s
Metadata:
handler_name : SoundHandler
[Parsed_amerge_0 @ 0x336d6a0] Input channel layouts overlap: output layout
will be determined by the number of distinct input channels
[libx264 @ 0x336a260] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x336a260] profile High, level 3.0
[libx264 @ 0x336a260] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0
direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf54.61.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 682x450,
q=-1--1, 12800 tbn, 25 tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, 4.0, s16,
128 kb/s
Stream mapping:
Stream #0:0 (png) -> overlay:main
Stream #1:0 (h264) -> overlay:overlay
Stream #1:1 (aac) -> amerge:in0
Stream #2:0 (h264) -> overlay:overlay
Stream #2:1 (aac) -> amerge:in1
overlay -> Stream #0:0 (libx264)
amerge -> Stream #0:1 (libfaac)
Press [q] to stop, [?] for help
Buffer queue overflow, dropping. 9226kB time=00:02:27.14 bitrate=
513.7kbits/s
[Parsed_amerge_0 @ 0x336d6a0] Buffer queue overflow, dropping.
Last message repeated 10 times
Buffer queue overflow, dropping. 9245kB time=00:02:27.14 bitrate=
514.7kbits/s
[Parsed_amerge_0 @ 0x336d6a0] Buffer queue overflow, dropping.
Last message repeated 33 times
Buffer queue overflow, dropping. 9263kB time=00:02:27.14 bitrate=
515.7kbits/s
[Parsed_amerge_0 @ 0x336d6a0] Buffer queue overflow, dropping.
Last message repeated 42 times
Buffer queue overflow, dropping. 9270kB time=00:02:27.88 bitrate=
513.5kbits/s
[Parsed_amerge_0 @ 0x336d6a0] Buffer queue overflow, dropping.
Last message repeated 29 times
frame= 7741 fps= 42 q=-1.0 Lsize= 9551kB time=00:05:09.56 bitrate=
252.8kbits/s
-----------
thanks
More information about the ffmpeg-user
mailing list