1

Qt で動画ファイルを読み込めません。Qt の例を試しましたが、まだ動作しません。GStreamer でビデオ ファイルを読み取るために必要なすべてのパッケージをインストールしました。

QtCreator のデバッグ ウィンドウに、次のメッセージが表示されます。

error : GStreamer encountered a general stream error

私は長い間検索してきましたが、解決策が見つかりませんでした.誰かが持っていますか?

[編集] QVideoWidget の代わりに QGraphicVideoItem を使用してこの問題を解決できましたが、別の問題があります。

(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: おおよその英語で申し訳ありません...

4

0 に答える 0