gpt4 book ai didi

Qt 多媒体 gstreamer 错误

转载 作者:太空宇宙 更新时间:2023-11-03 17:09:45 25 4
gpt4 key购买 nike

我也刚刚升级了 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 之外,还有其他技巧吗?

最佳答案

警告提示您缺少 qtdemux,它是“gst-plugins-good”的一部分

尝试,首先在命令下方查看您是否缺少 qtdemux 命令。

gst-inspect-1.0 qtdemux

关于Qt 多媒体 gstreamer 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41742881/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com