1. 程式人生 > >H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb'

H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb'

自己遇到這個問題的時候,正在使用ffmpeg錄製儲存某股線上的rtmp流,具體報錯資訊如下:

[avi @ 0x7f9efa893600] H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option with ffmpeg)

av_interleaved_write_frame(): Invalid data found when processing input

當時使用的封裝格式是avi,解決方法是改成ts。問題解決!