我刚刚升级了ubuntu 16.10,现在我遇到了QtMultimedia 5.7的一些问题。
尝试从qml访问摄像头时出现以下错误。
(main:8542): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(main:8542): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(main:8542): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(main:8542): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(main:8542): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(main:8542): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(main:8542): GStreamer-CRITICAL **: gst_object_ref_sink: assertion 'GST_IS_OBJECT (object)' failed
(main:8542): GStreamer-CRITICAL **: gst_element_get_bus: assertion 'GST_IS_ELEMENT (element)' failed
(main:8542): GStreamer-CRITICAL **: gst_bus_add_watch_full: assertion 'GST_IS_BUS (bus)' failed
(main:8542): GStreamer-CRITICAL **: gst_bus_set_sync_handler: assertion 'GST_IS_BUS (bus)' failed
(main:8542): GStreamer-CRITICAL **: gst_object_ref: assertion 'object != NULL' failed
(main:8542): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(main:8542): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(main:8542): GStreamer-CRITICAL **: gst_object_ref: assertion 'object != NULL' failed
(main:8542): GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
(main:8542): GLib-GObject-CRITICAL **: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(main:8542): GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
(main:8542): GStreamer-CRITICAL **: gst_bus_set_sync_handler: assertion 'GST_IS_BUS (bus)' failed
(main:8542): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed
(main:8542): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed
据我所知,这是ubuntu 16.10丢弃 gstreamer 0.10 的问题。但是,尝试安装gstreamer 0.10并没有导致任何变化。
尝试播放视频而不是访问相机时,出现以下错误消息:
Warning: "No decoder available for type 'video/quicktime, variant=(string)iso'."
Error: "Your GStreamer installation is missing a plug-in."
除了从源代码手动编译Qt以及使用gstreamer 1.0之外,还有其他技巧吗?
答案 0 :(得分:0)
警告提示您缺少 qtdemux ,它是“ gst-plugins-good”的一部分
尝试下面的第一个命令,看看您是否缺少qtdemux命令。
gst-inspect-1.0 qtdemux