FFmpeg c++ H264 decoding error

后端 未结 1 1416
孤独总比滥情好
孤独总比滥情好 2020-12-12 03:17

I have a program which capture video from webcam, encode with ffmpeg, encoded packet then write to buffer. At the receiver side, read from buffer decode with ffmpeg and play

相关标签:
1条回答
  • 2020-12-12 04:01

    You need to include a parser. The ffmpeg mpeg1/2 decoders happen to work fine without a parser, but h264/mpeg4/vp9 need a parser, or you'll get errors like the above.

    Note that if you use libavformat for demuxing and call avformat_read_frame(), it will automatically parse for you, but since you're doing buffer management yourself, you need to include the parser yourself also.

    0 讨论(0)
提交回复
热议问题