[FFmpeg-trac] #3562(avfilter:new): aresample, aformat fails with libvorbis and some avi

FFmpeg trac at avcodec.org
Mon Apr 14 23:27:49 CEST 2014


#3562: aresample, aformat fails with libvorbis and some avi
------------------------------------+--------------------------------------
             Reporter:  blacktrash  |                     Type:  defect
               Status:  new         |                 Priority:  normal
            Component:  avfilter    |                  Version:  git-master
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+--------------------------------------
 Summary of the bug:
 How to reproduce:
 {{{
 $ ffmpeg -i test.avi -filter_complex
 '[0:0]format=yuv420p;[0:1]aresample=osr=22050' test.webm
 ffmpeg version N-62058-gfd2bcfc Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Apr  3 2014 09:02:28 with Apple LLVM version 5.1
 (clang-503.0.38) (based on LLVM 3.4svn)
   configuration: --enable-gpl --enable-version3 --enable-nonfree
 --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265
 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp
 --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
   libavutil      52. 71.100 / 52. 71.100
   libavcodec     55. 56.107 / 55. 56.107
   libavformat    55. 36.101 / 55. 36.101
   libavdevice    55. 11.100 / 55. 11.100
   libavfilter     4.  3.100 /  4.  3.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 [avi @ 0x7fc833021800] non-interleaved AVI
 Guessed Channel Layout for  Input Stream #0.1 : mono
 Input #0, avi, from 'test.avi':
   Duration: 00:00:31.86, start: 0.000000, bitrate: 11205 kb/s
     Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc), 1280x720,
 10851 kb/s, 29.95 tbr, 29.95 tbn, 29.95 tbc
     Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono,
 s16, 352 kb/s
 [swscaler @ 0x7fc83380f400] deprecated pixel format used, make sure you
 did set range correctly
 [libvpx @ 0x7fc833805200] v1.3.0-2130-g5c185a0
 Output #0, webm, to 'test.webm':
   Metadata:
     encoder         : Lavf55.36.101
     Stream #0:0: Video: vp8 (libvpx), yuv420p, 1280x720, q=-1--1, 200
 kb/s, 1k tbn, 29.95 tbc (default)
     Stream #0:1: Audio: vorbis (libvorbis), 22050 Hz, mono, fltp (default)
 Stream mapping:
   Stream #0:0 (mjpeg) -> format
   Stream #0:1 (pcm_s16le) -> aresample
   format -> Stream #0:0 (libvpx)
   aresample -> Stream #0:1 (libvorbis)
 Press [q] to stop, [?] for help
 Input stream #0:0 frame changed from size:1280x720 fmt:yuvj422p to
 size:1280x720 fmt:yuvj420p
 [swscaler @ 0x7fc834006200] deprecated pixel format used, make sure you
 did set range correctly
 [libvorbis @ 0x7fc833805e00] nb_samples (1024) != frame_size (64)
 (avcodec_encode_audio2)
 Audio encoding failed (avcodec_encode_audio2)
 }}}

 Similarly with aformat.

 Using options to the same intended effect works:

 {{{
 $ ffmpeg -i test.avi -filter_complex '[0:0]format=yuv420p' -ar 22050
 test.webm
 ffmpeg version N-62058-gfd2bcfc Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Apr  3 2014 09:02:28 with Apple LLVM version 5.1
 (clang-503.0.38) (based on LLVM 3.4svn)
   configuration: --enable-gpl --enable-version3 --enable-nonfree
 --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265
 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp
 --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
   libavutil      52. 71.100 / 52. 71.100
   libavcodec     55. 56.107 / 55. 56.107
   libavformat    55. 36.101 / 55. 36.101
   libavdevice    55. 11.100 / 55. 11.100
   libavfilter     4.  3.100 /  4.  3.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 [avi @ 0x7fb47b021800] non-interleaved AVI
 Guessed Channel Layout for  Input Stream #0.1 : mono
 Input #0, avi, from 'test.avi':
   Duration: 00:00:31.86, start: 0.000000, bitrate: 11205 kb/s
     Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc), 1280x720,
 10851 kb/s, 29.95 tbr, 29.95 tbn, 29.95 tbc
     Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono,
 s16, 352 kb/s
 [swscaler @ 0x7fb47b80ae00] deprecated pixel format used, make sure you
 did set range correctly
 [libvpx @ 0x7fb47b800c00] v1.3.0-2130-g5c185a0
 Output #0, webm, to 'test.webm':
   Metadata:
     encoder         : Lavf55.36.101
     Stream #0:0: Video: vp8 (libvpx), yuv420p, 1280x720, q=-1--1, 200
 kb/s, 1k tbn, 29.95 tbc
     Stream #0:1: Audio: vorbis (libvorbis), 22050 Hz, mono, fltp
 Stream mapping:
   Stream #0:0 (mjpeg) -> format (graph 0)
   format (graph 0) -> Stream #0:0 (libvpx)
   Stream #0:1 -> #0:1 (pcm_s16le -> libvorbis)
 Press [q] to stop, [?] for help
 Input stream #0:0 frame changed from size:1280x720 fmt:yuvj422p to
 size:1280x720 fmt:yuvj420p
 [swscaler @ 0x7fb47b0bd600] deprecated pixel format used, make sure you
 did set range correctly
 frame=  623 fps= 17 q=0.0 Lsize=    1250kB time=00:00:31.69 bitrate=
 323.0kbits/s
 video:1076kB audio:156kB subtitle:0kB other streams:0kB global headers:3kB
 muxing overhead: 1.386226%
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3562>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list