Ubuntu上的Qmultimedia和gstreamer错误

时间:2015-05-29 09:31:37

标签: c++ qt gstreamer qtmultimedia

我无法用Qt读取任何视频文件。我已经尝试过Qt示例但它仍然无法正常工作。我已经安装了使用GStreamer读取视频文件所需的所有软件包。

在QtCreator调试窗口中,我收到以下消息:

error : GStreamer encountered a general stream error

我已经搜索了很长时间,但没有找到任何解决方案......有人有吗?

[编辑] 我可以使用QGraphicVideoItem而不是QVideoWidget来解决这个问题,但现在我还有另外一个问题:

(camera_capture:7943): GLib-GObject-WARNING **: cannot register existing type 'GstObject'

(camera_capture:7943): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(camera_capture:7943): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed

(camera_capture:7943): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(camera_capture:7943): GStreamer-CRITICAL **: gst_element_class_set_details_simple: assertion 'GST_IS_ELEMENT_CLASS (klass)' failed

(camera_capture:7943): GStreamer-WARNING **: static caps 0x7f22942a1fb0 string is NULL

(camera_capture:7943): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

(camera_capture:7943): GStreamer-WARNING **: static caps 0x7f22942a2030 string is NULL

(camera_capture:7943): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

(camera_capture:7943): GStreamer-WARNING **: static caps 0x7f22942a1fb0 string is NULL

(camera_capture:7943): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

由于

PS:对不起我的近似英语......

0 个答案:

没有答案