mpp icon indicating copy to clipboard operation
mpp copied to clipboard

Gstreamer mpp 插件播放某些h264视频时错误

Open Ljiaooo opened this issue 1 year ago • 0 comments

使用gst-launch-1.0工具测试mpp的gstreamer插件: gst-launch-1.0 filesrc location=video.mp4 ! qtdemux ! h264parse ! mppvideodec ! videoconvert ! autovideosink 针对多数h264编码的视频,上述命令都可以正常调用mpp硬解进行播放。但是某些h264编码的视频无法使用上述命令进行播放,并且将mppvideodec更换成avdec_h264等h264解码插件后可以正常进行播放,请问这是mpp的gstreamer插件导致的原因吗?如果是的话,有什么方法可以解决吗?

出现的错误log: ERROR: from element /GstPipeline:pipeline0/GstMppVideoDec:mppvideodec0: No valid frames decoded before end of stream Additional debug info: gstvideodecoder.c(1159): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/GstMppVideoDec:mppvideodec0: no valid frames found ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... mpp[394]: mpp_buffer: mpp_buffer_put invalid input: buffer NULL from vdpu34x_h264d_deinit mpp[394]: hal_bufs: hal_bufs_deinit invalid NULL input

出现问题的视频我放在了附件中。

https://github.com/user-attachments/assets/00cf0c8d-96f6-4060-a6b1-c59d00dd54cd

Ljiaooo avatar Oct 11 '24 10:10 Ljiaooo