版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liuzehn/article/details/82749179
自己遇到这个问题的时候,正在使用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。问题解决!