【FFmpeg】警告:[mpegts] H.264 bitstream error, startcode missing, size 0
生活随笔
收集整理的這篇文章主要介紹了
【FFmpeg】警告:[mpegts] H.264 bitstream error, startcode missing, size 0
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、問題描述
在使用FFmpeg編程,編碼成h.264后,再封裝成hls時,報警告
[mpegts] H.264 bitstream error, startcode missing, size 0
2、原因分析
根據警告提示信息可知:264位流錯誤,開始碼丟失,大小為0。
根據警告信息搜索源碼,在 FFmpeg-n4.2.2/libavformat/mpegtsenc.c文件的函數ff_check_h264_startcode中,打印該警告信息。源碼如下:
int ff_check_h264_startcode(AVFormatContext *s, const AVStream *st, const AVPacket *pkt)
{
總結
以上是生活随笔為你收集整理的【FFmpeg】警告:[mpegts] H.264 bitstream error, startcode missing, size 0的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【FFmpeg】警告:[hls] pkt
- 下一篇: 【FFmpeg】ffmpeg中函数返回的