#6815: Regression recovering broken H264 stream
             Reporter:  w3sip        |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  h264         |               Blocked By:
  regression                         |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |

Comment (by staircase27):

 Replying to [comment:11 heleppkes]:
 > Replying to [comment:9 staircase27]:
 > > I'm not entirely sure how I would go about making use of the h264
 parser to re-assemble the bitstream?
 > >
 > > Currently I am reading NAL unit packets using av_read_frame
 > If you are using avformat through av_read_frame already, then you don't
 need to do anything. Just don't set the chunk decoding flag.
 > Replying to [comment:10 w3sip]:
 > > If I'm wrong, and there's a way to insert a codec parser between
 receiver and decoder using public FFMPEG API, I'd be thankful for any
 pointers on how to accomplish that.
 > Look into av_parser_parse2 and the related functions in avcodec.h, which
 are used to do this. If you use an internal demuxer it'll do that
 automatically, if you use an external one (like you seem to be), its best
 to use that to create a fully reconstructed bitstream using a parser.

 I am already using av_read_frame but it does still need the CHUNKS
 decoding flag for some of the streams we work with. Any suggestions for
 how to fix this? The streams that need the CHUNKS flag use slices rather
 than fragmentation of large nal-units.

 Any suggestions?


Ticket URL: <https://trac.ffmpeg.org/ticket/6815#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
FFmpeg-trac mailing list

Reply via email to