当断言 G_IS_OBJECT对象失败时调试 GStreamer

问题描述

当我启动以下接收器端 GStreamer 管道时,该管道包含来自我的自定义插件的元素 Scarerx,我收到错误 g_object_set: assertion 'G_IS_OBJECT (object)' Failed

gst-launch-1.0 rtpbin name=rtpbin latency=200 udpsrc
caps=application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264
port=5000 ! screamrx ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay !
avdec_h264 ! videoconvert ! autovideosink udpsrc port=5001 !
rtpbin.recv_rtcp_sink_0 rtpbin.send_rtcp_src_0 ! udpsink port=5005
host=127.0.0.1 sync=false async=false 

这是完整的日志:

Setting pipeline to PAUSED ...
Pipeline is live and does not need preroll ...
(gst-launch-1.0:51064): GLib-GObject-CRITICAL **: 12:10:21.561: g_object_set: assertion 'G_IS_OBJECT (object)' Failed
Got context from element 'autovideosink0': gst.gl.GLdisplay=context,gst.gl.GLdisplay=(GstGLdisplay)"\(GstGLdisplayCocoa\)\ gldisplaycocoa0";
Pipeline is prerollED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

但是,当我启动发送方管道(它有一个相应的 Screatx 元素)时,一切似乎都运行良好,即我可以使用 RTP 发送和接收视频。

为了调试,我尝试通过在前面运行带有 GST_DEBUG=4 的接收器来获取更多信息,但这并没有给我任何关于错误发生原因的额外指示。任何想法如何调试?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...