#1474: FFMPEG 2 videos (mpeg2video -> .mp4) audio fails -------------------------------------+---------------------------------- Reporter: dcoffey3296 | Type: defect Status: new | Priority: normal Component: FFmpeg | Version: 0.11.1 Keywords: libavfilter | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+---------------------------------- Summary of the bug: I am stitching 2 videos side by side together into 1 output video (using libavfilter, the -vf flag). Each source video is mpeg2, the output is .mp4 (libx264).
I have tried many ways to get the audio to map from an input to the output, including adding: -c:a libfaac -ac 2 -map 0:v -map 0:a:0 -map 0:a:1 and -acodec libfaac -ac2 -map 0:1 -map 0:2 I always get the error: "[aresample @ 0x7fdd626023e0] [SWR @ 0x7fdd638c2e00] Input channel layout isnt supported" When I go back to a macports build of ffmpeg (0.7.8) the following command string: ffmpeg -i /Users/danielpcoffey/Desktop/nate.mov -b 500k -t 00:01:00 -acodec libfaac -ab 64k -vcodec libx264 -r 29.97 -pass 1 -s 1280x720 -vf "movie=/Users/danielpcoffey/Desktop/tommy.mov, setpts=PTS- STARTPTS [tommyhandle]; [in] pad=1280*2:720 [natehandle]; [tommyhandle] scale=1280:720 [tommyhandle]; [natehandle][tommyhandle] overlay=1280:0 [out]" ~/Desktop/sidebyside720r500k.mp4 FFMPEG 0.7.8 does function as I expect (joins 2 videos and uses the audio from the first input). When I do the same exact command string in ffmpeg 0.11.1, I get the error: "[aresample @ 0x7fdd626023e0] [SWR @ 0x7fdd638c2e00] Input channel layout isnt supported" Am I doing something wrong? I'd like to stitch 2 videos together side by side and use the audio from the first (or alternatively the second or a mix of both). Please let me know if I can do anything else! Thank you!! How to reproduce: {{{ % ffmpeg -i /Users/danielpcoffey/Desktop/nate.mov -b 500k -t 00:01:00 -acodec libfaac -ab 64k -vcodec libx264 -r 29.97 -pass 1 -s 1280x720 -vf "movie=/Users/danielpcoffey/Desktop/tommy.mov, setpts=PTS-STARTPTS [tommyhandle]; [in] pad=1280*2:720 [natehandle]; [tommyhandle] scale=1280:720 [tommyhandle]; [natehandle][tommyhandle] overlay=1280:0 [out]" ~/Desktop/sidebyside720r500k.mp4 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 9 2012 21:40:17 with clang 3.0 (tags/Apple/clang-211.10.1) configuration: --prefix= --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libxvid --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-yasm --enable-libfaac --enable-libmp3lame --cc=clang --enable-libvorbis libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/danielpcoffey/Desktop/nate.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-06-19 21:13:20 Duration: 00:02:28.81, start: 0.000000, bitrate: 36378 kb/s Stream #0:0(eng): Video: mpeg2video (Main) (xdvf / 0x66766478), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 35000 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc Metadata: creation_time : 2012-06-19 21:13:20 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (FL), s16, 768 kb/s Metadata: creation_time : 2012-06-19 21:13:20 handler_name : Apple Alias Data Handler Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (FR), s16, 768 kb/s Metadata: creation_time : 2012-06-19 21:13:20 handler_name : Apple Alias Data Handler Stream #0:3(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-06-19 21:13:20 handler_name : Apple Alias Data Handler timecode : 02:20:28;08 Please use -b:a or -b:v, -b is ambiguous [buffer @ 0x7fdd62417d20] w:1920 h:1080 pixfmt:yuv420p tb:1/2997 sar:1/1 sws_param:flags=2 [buffersink @ 0x7fdd62418e80] No opaque field provided [movie @ 0x7fdd62419b00] seek_point:0 format_name:(null) file_name:/Users/danielpcoffey/Desktop/tommy.mov stream_index:0 [scale @ 0x7fdd624190a0] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:yuv420p sar:1/1 flags:0x4 [pad @ 0x7fdd625008c0] w:1280 h:720 -> w:2560 h:720 x:0 y:0 color:0x000000FF [movie @ 0x7fdd62419b00] TB:0.000334 [scale @ 0x7fdd62500c20] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:yuva420p sar:1/1 flags:0x4 [overlay @ 0x7fdd625001e0] main w:2560 h:720 fmt:yuv420p overlay x:1280 y:0 w:1280 h:720 fmt:yuva420p [overlay @ 0x7fdd625001e0] main_tb:1/2997 overlay_tb:1/2997 -> tb:1/2997 exact:1 [aformat @ 0x7fdd62601e00] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat' [aresample @ 0x7fdd626023e0] [SWR @ 0x7fdd638c2e00] Input channel layout isnt supported Error opening filters! }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1474> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac