FFMPEG解码错误:No start code is found,Error splitting the input into NAL units.解决办法。

错误

[h264 @ 000001549d341740] No start code is found.
[h264 @ 000001549d341740] Error splitting the input into NAL units. 

 方法

添加

avcodec_parameters_to_context(vctx, ifmt->streams[video_index]->codecpar);

你可能感兴趣的:(FFmpeg,音视频)