[FFmpeg-trac] #1474(FFmpeg:new): FFMPEG 2 videos (mpeg2video -> .mp4) audio fails

FFmpeg trac at avcodec.org
Fri Jun 22 14:59:59 CEST 2012


#1474: FFMPEG 2 videos (mpeg2video -> .mp4) audio fails
-------------------------------------+----------------------------------
             Reporter:  dcoffey3296  |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  FFmpeg
              Version:  0.11.1       |               Resolution:
             Keywords:  libavfilter  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+----------------------------------

Comment (by dcoffey3296):

 Replying to [comment:3 cehoyos]:
 > Did you provide a sample?
 >
 > You could try -channel_layout 4

 Hi, a new development!  I went to create a short 30 second clip of my
 media to upload and I got the same error without the filters! Perhaps this
 is not an issue with the filters...
 command:

 {{{ffmpeg -i tommy.mov -t 00:00:30 -sameq tommy30.mov}}}

 error:
 {{{ [aresample @ 0x7fcab2419b60] [SWR @ 0x7fcab2829800] Input channel
 layout isnt supported}}}

 complete output:
 {{{
 ffmpeg -i tommy.mov -t 00:00:30 -sameq tommy30.mov
 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
   built on Jun 21 2012 12:07:09 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
   configuration: --prefix=/usr/local --enable-gpl --enable-version3
 --enable-nonfree --enable-libx264 --enable-libxvid --enable-postproc
 --enable-swscale --enable-avfilter --enable-pthreads --enable-yasm
 --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libvpx
   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 'tommy.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2012-06-19 21:18:43
   Duration: 00:01:59.61, start: 0.000000, bitrate: 36382 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:18:43
       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:18:43
       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:18:43
       handler_name    : Apple Alias Data Handler
     Stream #0:3(eng): Data: none (tmcd / 0x64636D74)
     Metadata:
       creation_time   : 2012-06-19 21:18:43
       handler_name    : Apple Alias Data Handler
       timecode        : 02:47:32;24
 File 'tommy30.mov' already exists. Overwrite ? [y/N] y
 w:1920 h:1080 pixfmt:yuv420p tb:1/2997 sar:1/1 sws_param:flags=2
 [buffersink @ 0xac5c9e0] No opaque field provided
 [aformat @ 0xac5df80] auto-inserting filter 'auto-inserted resampler 0'
 between the filter 'src' and the filter 'aformat'
 [aresample @ 0xac5d6e0] [SWR @ 0xac58d00] Input channel layout isnt
 supported
 Error opening filters!

 }}}

 I tried adding the -channel_layout 4:

 {{{ffmpeg -i tommy.mov -t 00:00:30 -sameq -channel_layout 4 tommy30.mov}}}

 same error. (build 0.11.1 on both my mac and Fedora VM.)


 on the git snapshot I pulled down (0.10.2.git-f77fd34), I get a slightly
 different error (adding -channel_layout 4 didn't fix it either):
 {{{
 [SWR @ 0xb16a3e0] Input channel layout '1 channels (FL)' is not supported
 [auto-inserted resampler 0 @ 0xb1242a0] Failed to configure output pad on
 auto-inserted resampler 0
 }}}
 complete output:
 {{{
 /usr/local/ffgit/bin/ffmpeg -i tommy.mov -t 00:00:30 -sameq
 -channel_layout 4 tommy30-1.mov
 ffmpeg version 0.10.2.git-f77fd34 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jun 21 2012 12:18:12 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
   configuration: --prefix=/usr/local/ffgit --enable-gpl --enable-version3
 --enable-nonfree --enable-libx264 --enable-libxvid --enable-postproc
 --enable-swscale --enable-avfilter --enable-pthreads --enable-yasm
 --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libvpx
   libavutil      51. 59.100 / 51. 59.100
   libavcodec     54. 29.100 / 54. 29.100
   libavformat    54. 10.100 / 54. 10.100
   libavdevice    54.  0.100 / 54.  0.100
   libavfilter     2. 82.100 /  2. 82.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 'tommy.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2012-06-19 21:18:43
   Duration: 00:01:59.61, start: 0.000000, bitrate: 36382 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:18:43
       handler_name    : Apple Alias Data Handler
       timecode        : 02:47:32;24
     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:18:43
       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:18:43
       handler_name    : Apple Alias Data Handler
     Stream #0:3(eng): Data: none (tmcd / 0x64636D74)
     Metadata:
       creation_time   : 2012-06-19 21:18:43
       handler_name    : Apple Alias Data Handler
       timecode        : 02:47:32;24
 File 'tommy30-1.mov' already exists. Overwrite ? [y/N] y
 w:1920 h:1080 pixfmt:yuv420p tb:1/2997 fr:2997/100 sar:1/1
 sws_param:flags=2
 [ffmpeg_buffersink @ 0xa491060] No opaque field provided
 [aformat @ 0xa491dc0] auto-inserting filter 'auto-inserted resampler 0'
 between the filter 'Parsed_anull_0' and the filter 'aformat'
 [auto-inserted resampler 0 @ 0xa48d440] [SWR @ 0xa4933e0] Input channel
 layout '1 channels (FL)' is not supported
 [auto-inserted resampler 0 @ 0xa48d440] Failed to configure output pad on
 auto-inserted resampler 0
 Error opening filters!
 }}}


 I went back to my macports install on my mac (0.7.8) and was able to
 create the short file with the same command line:
 {{{ffmpeg -i tommy.mov -t 00:00:30 -sameq tommy30.mov}}}
  (results in this file - 30 seconds, 49.5mb:)
 http://dcoffey.net/FTP/tommy30.mov

 Any ideas?  Let me know if you'd like more info or more samples.  The
 sample I uploaded is the same as the rest of the source media.

 Thank you!

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1474#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list