[FFmpeg-user] Using amerge to convert dual mono to stereo

Tim Nicholson tim.nicholson at bbc.co.uk
Thu Jan 12 18:05:40 CET 2012


I am trying to use the amerge filter to convert dual mono to stereo, but 
get a warning from amerge:-

"[amerge @ 0x1933a80] Inputs overlap: output layout will be meaningless"

and sure enough what I get is stream 1 on both channels of the stereo 
output with no stream 2 at all....

Clément Nicolas et al, any ideas....

--------------------------------------------------------------------

ffmpeg -i glitz4-HD.mov -f lavfi -i "amovie=glitz4-HD.mov:si=1 [a1]; 
amovie=glitz4-HD.mov:si=2 [a2]; [a1][a2] amerge" -vf "yadif=0:-1:0, 
scale=832:468 [scaled]; movie=logo_16x9-50.png [logo]; [scaled][logo] 
overlay=8:5" -c:v libx264 -pix_fmt yuv420p -b:v 1404k -r 25 -maxrate 
1404k -bufsize 5097k -c:a libfaac -b:a 96k -ar 48000 -ac 2 -y 
glitz4-HD-50.mp4
ffmpeg version N-36728-g794006f-by_Tim Copyright (c) 2000-2012 the 
FFmpeg developers
   built on Jan 12 2012 11:45:18 with gcc 4.6.2
   configuration: --extra-version=by_Tim --enable-static 
--disable-shared --enable-gpl --enable-nonfree --enable-version3 
--prefix=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local 
--libdir=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64 
--enable-runtime-cpudetect --extra-cflags='-static 
-I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include' 
--extra-ldflags='-static 
-L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64' 
--progs-suffix=static --enable-libfaac --enable-libx264 --enable-libfreetype
   libavutil      51. 34.100 / 51. 34.100
   libavcodec     53. 55.100 / 53. 55.100
   libavformat    53. 29.100 / 53. 29.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 58.100 /  2. 58.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    51.  2.100 / 51.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'glitz4-HD.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2011-12-20 10:15:06
   Duration: 00:00:30.00, start: 0.000000, bitrate: 834065 kb/s
     Stream #0:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422, 
1920x1080, 829440 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
     Metadata:
       creation_time   : 2011-12-20 10:15:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 
channels, s32, 1152 kb/s
     Metadata:
       creation_time   : 2011-12-20 10:15:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 
channels, s32, 1152 kb/s
     Metadata:
       creation_time   : 2011-12-20 10:15:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 
channels, s32, 1152 kb/s
     Metadata:
       creation_time   : 2011-12-20 10:15:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 
channels, s32, 1152 kb/s
     Metadata:
       creation_time   : 2011-12-20 10:15:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:5(eng): Data: none (tmcd / 0x64636D74)
     Metadata:
       creation_time   : 2011-12-20 10:17:46
       handler_name    : ?Apple Alias Data Handler
       timecode        : 01:00:00:00
[amovie @ 0x17c6e40] seek_point:0 format_name:(null) 
file_name:glitz4-HD.mov stream_index:1
[amovie @ 0x17961c0] seek_point:0 format_name:(null) 
file_name:glitz4-HD.mov stream_index:2
[amerge @ 0x1933a80] Inputs overlap: output layout will be meaningless
[abuffersink @ 0x188eda0] auto-inserting filter 'auto-inserted aconvert 
0' between the filter 'Parsed_amerge_2' and the filter 'out' 

[amerge @ 0x1933a80] in1:mono + in2:mono -> out:stereo

-----------------------------------------------------------------------

-- 
Tim


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					


More information about the ffmpeg-user mailing list