rockchip-linux / mpp

Media Process Platform (MPP) module
466 stars 155 forks source link

decode_get_frame返回成功,但frame是空的 #582

Open chenhandsomechen opened 2 months ago

chenhandsomechen commented 2 months ago

解摄像头的rtsp没问题可以显示,另外一个硬件的rtsp就有标题的问题,请问我可以怎么验证是否是视频流的问题

HermanChen commented 2 months ago

存下来用 ffmpeg 解看看有没有问题

chenhandsomechen commented 2 months ago

用ffmpeg解码是没问题的,保存下来的h.264文件怎么验证呢,我用vlc无法播放,ffplay播放报no frame decoding for stream 0 failed

chenhandsomechen commented 2 months ago

可能是和视频流源头有关系,查资料说是必须要裸视频流,ffmpeg可以有这种处理吗

HermanChen commented 1 month ago

ffmpeg 抽码流的时候加 -bsf 选项,上网搜一下