[FFmpeg-trac] #1240(avcodec:new): regression: "codec frame size is not set" using -acodec copy

FFmpeg trac at avcodec.org
Sat Apr 21 12:08:06 CEST 2012


#1240: regression: "codec frame size is not set" using -acodec copy
---------------------------------+--------------------------------------
             Reporter:  ste      |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  git-master
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 I try to transcode a MPEG2 file from a DVB-C capture with ffmpeg GIT as of
 today:

 {{{
 ffmpeg -i test.tmpeg -vcodec libx264 -acodec copy test.mp4
 }}}

 ffmpeg refuses to encode the file with the following error:
 {{{
 [mp4 @ 0x290f6600] track 1: codec frame size is not set
 }}}


 With previous versions, the file encodes fine.
 Revision 16e54ac7255d47e70ba9ba60d5ce5d0a0e44b223 introduces the faulty
 behavior:
 {{{
     (e)ac3 parser: set duration instead of frame_size

 ------------------------- libavcodec/aac_ac3_parser.c
 -------------------------
 index 58f30a4..8132ce8 100644
 @@ -93,7 +93,7 @@ get_next:
              avctx->channels = s->channels;
              avctx->channel_layout = s->channel_layout;
          }
 -        avctx->frame_size = s->samples;
 +        s1->duration = s->samples;
          avctx->audio_service_type = s->service_type;
      }
 }}}

 If I re-add setting of the frame size, encoding works fine. There are
 similar problems with other codecs.
 Setting of frame size was removed for several other codecs in the same
 merge from qatar/master.

 Initially, I discovered this problem while using mencoder where there are
 serious A/V async problems after the commit above.

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


More information about the FFmpeg-trac mailing list