[FFmpeg-trac] #3562(avfilter:open): filter_complex aresample; format fails with some avi (was: aresample, aformat fails with libvorbis and some avi)

FFmpeg trac at avcodec.org
Wed Apr 16 15:39:10 CEST 2014


#3562: filter_complex aresample;format fails with some avi
------------------------------------+------------------------------------
             Reporter:  blacktrash  |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * reproduced:  0 => 1


Comment:

 Works fine with {{{-vf format=yuv420p -af aresample=osr=22050}}}.

 Remuxing does not fix the issue, reencoding video (or using an audio codec
 that is not pcm) does.
 {{{
 $ ffmpeg -i issue3562_cut.avi -filter_complex
 'format=yuv420p;aresample=out_sample_rate=22050' out.avi
 ffmpeg version N-62483-gcb53beb Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Apr 16 2014 12:57:30 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 76.100 / 52. 76.100
   libavcodec     55. 58.103 / 55. 58.103
   libavformat    55. 37.100 / 55. 37.100
   libavdevice    55. 13.100 / 55. 13.100
   libavfilter     4.  4.100 /  4.  4.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 Guessed Channel Layout for  Input Stream #0.1 : mono
 Input #0, avi, from 'issue3562_cut.avi':
   Duration: 00:00:01.84, start: 0.000000, bitrate: 11150 kb/s
     Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc), 1280x720,
 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 @ 0x361c0c0] deprecated pixel format used, make sure you did set
 range correctly
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf55.37.100
     Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x720,
 q=2-31, 200 kb/s, 29.95 tbn, 29.95 tbc (default)
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 22050 Hz, mono, fltp,
 96 kb/s (default)
 Stream mapping:
   Stream #0:0 (mjpeg) -> format
   Stream #0:1 (pcm_s16le) -> aresample
   format -> Stream #0:0 (mpeg4)
   aresample -> Stream #0:1 (ac3)
 Press [q] to stop, [?] for help
 Input stream #0:0 frame changed from size:1280x720 fmt:yuvj422p to
 size:1280x720 fmt:yuvj420p
 [swscaler @ 0x361c0c0] deprecated pixel format used, make sure you did set
 range correctly
 [ac3 @ 0x36396e0] nb_samples (1024) != frame_size (1536)
 (avcodec_encode_audio2)
 Audio encoding failed (avcodec_encode_audio2)
 }}}

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


More information about the FFmpeg-trac mailing list