[FFmpeg-trac] #3787(avcodec:new): h264 parser only accepts extradata before the first frame

FFmpeg trac at avcodec.org
Tue Jul 22 04:56:27 CEST 2014


#3787: h264 parser only accepts extradata before the first frame
-------------------------------------+-----------------------------------
             Reporter:  benjamin     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  unspecified  |               Resolution:
             Keywords:  h264         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by benjamin):

 Consider the file I just attached. Asking ffmpeg to read this file gives:

 {{{
 [flv @ 0x63ff90] Stream discovered after head already parsed
 [h264 @ 0x6409e0] AVC: nal size 21839903
 [h264 @ 0x6409e0] missing picture in access unit with size 37
 Input #0, flv, from '/home/benjamin/Downloads/example.flv':
   Duration: 00:00:09.92, start: 0.000000, bitrate: 739 kb/s
     Stream #0:0: Video: h264 (Main), yuv420p, 720x400, 25 fps, 25 tbr, 1k
 tbn, 50 tbc
     Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp
     Stream #0:2: Data: none
 }}}

 As I said in the opening comment, the invalid NAL size warning is because
 the h264 parser is trying to interpret extradata as a NAL unit.

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


More information about the FFmpeg-trac mailing list