Firefly开源社区

打印 上一主题 下一主题

gstreamer中使用“ mppvideodec”问题

5

积分

0

威望

0

贡献

吃瓜的群众

积分
5

gstreamer中使用“ mppvideodec”问题

发表于 2020-2-28 15:58:32      浏览:6128 | 回复: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时上面的流程是正常的
请问有没有哪位大神遇到这个问题,或者说有没有上面解决思路提供  谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表