|
gstreamer中使用“ mppvideodec”问题
发表于 2020-2-28 15:58:32
浏览:8740
|
回复:4
打印
只看该作者
[复制链接]
楼主
你好,使用Firefly的文件系统,想用gstreame的硬解解码来进行视频循环播放功能,其中视频播放硬解码已经实现,但是只能播放一次。
就是说我通过加载本地视频到mppvideodec,在gst_element_set_state (data2.pipeline, GST_STATE_PLAYING); 播放好后获取到GST_MESSAGE_EOS消息,在设置gst_element_set_state (data2.pipeline, GST_STATE_NULL); 更改视频源后gst_element_set_state (data2.pipeline, GST_STATE_PLAYING);后出现问题如下问题:
gst_caps_is_strictly_equal: assertion 'GST_IS_CAPS (caps1)' failed
** (Gstreamer_video:30463): CRITICAL **: gst_video_codec_state_unref: assertion 'state->ref_count > 0' failed
Error received from element depay: GStreamer encountered a general stream error.
Debugging information: qtdemux.c(5520): gst_qtdemux_loop (): /GstPipeline:test-pipeline/GstQTDemux:depay:
streaming stopped, reason error
Error received from element parse: No valid frames decoded before end of stream
Debugging information: gstvideodecoder.c(1173): gst_video_decoder_sink_event_default (): /GstPipeline:test-pipeline/GstMppVideoDec:parse:
no valid frames found
而使用软件解码avdec_h264时上面的流程是正常的
请问有没有哪位大神遇到这个问题,或者说有没有上面解决思路提供 谢谢! |
|