2016-09-21 7 views
1

私は修正なしでqtサンプルアプリケーションの1つを実行しようとしています。これはplayerと呼ばれ、マルチメディアウィジェットのデモンストレーションです。私のシステムはUbuntu 16.04 64bitです。私はビデオを再生しようとすると、私は、コンソールに次のエラーを参照してください。ここではタイプ 'video/x-h264に利用可能なデコーダがありません

No decoder available for type 'video/x-h264

をフルエラーが二つの異なるビデオを試した後である:

Starting /home/aras/Qt5.7.0_Sept2016/Examples/Qt-5.7/multimediawidgets/build-player-Sept2016-Debug/player... 
Warning: "No decoder available for type 'video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3, profile=(string)constrained-baseline, codec_data=(buffer)0142e01eff0100192742e01ea9101405ff2e00d418041adb7a00f480f55ef7c04001000428de09c8, width=(int)640, height=(int)360, framerate=(fraction)2997/125, pixel-aspect-ratio=(fraction)1/1'." 
Warning: "No decoder available for type 'video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3, profile=(string)constrained-baseline, codec_data=(buffer)0142e01eff0100192742e01ea9101405ff2e00d418041adb7a00f480f55ef7c04001000428de09c8, width=(int)640, height=(int)360, framerate=(fraction)2997/125, pixel-aspect-ratio=(fraction)1/1'." 
Warning: "No decoder available for type 'video/x-h264, stream-format=(string)avc, pixel-aspect-ratio=(fraction)1/1, width=(int)1280, height=(int)720, framerate=(fraction)601600/10033'." 

私はほとんどすべてのパッケージを持っていますインストールされているgstreamerにリモートで関連しています。私はgst-inspect-1.0を実行すると、私は、出力の多くを取得し、最後の行は次のとおりです。

Total count: 241 plugins (1 blacklist entry not shown), 1388 features

~$ gst-inspect-1.0 |grep x-h264 
typefindfunctions: video/x-h264: h264, x264, 264 

:~$ gst-inspect-1.0 avdec_h264 
Factory Details: 
    Rank      primary (256) 
    Long-name    libav H.264/AVC/MPEG-4 AVC/MPEG-4 part 10 decoder 
    Klass     Codec/Decoder/Video 
    Description    libav h264 decoder 

だから、すべてが正しくインストールされていることを私にのように見えます。どうやってQtマルチメディアの例がそのまま使えないのですか?あなたのコマンドラインインターフェイスで

+0

あなたはQTのgstreamerを使用している、ここで述べたように:https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/? –

+0

システムに複数のgstreamerがインストールされている可能性がありますか?あなたのQtアプリは別のものにリンクされている可能性があります。 – soupybionics

+0

か、GST_PLUGIN_PATHに間違ったパスがあります(プロジェクト設定または.proのQtCreatorのenv変数で設定します)。[this](https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html)を確認してください。 /gst-running.html) – nayana

答えて

1

、実行します。GStreamerのに言及された線を

ldd /home/aras/Qt5.7.0_Sept2016/Examples/Qt-5.7/multimediawidgets/build-player-Sept2016-Debug/player 
ldd echo $(which gst-inspect-1.0) 

ルックを、例えば:

libgstreamer-1.0.so.0 => は/ usr/libに/ x86_64の-linuxの-GNU/libgstreamer-1.0.so.0

のGStreamerを参照する行は、両方のコマンドの結果には同じでない場合は、複数のGStreを持っているかもしれませんamerのインストール。次に、新しいLD_LIBRARY_PATH環境変数(OS-Xを実行する場合はDYLD_LIBRARY_PATH)を指定して、libgstreamer-1.0.so.0ディレクトリが2番目のGStreamer lddの結果(ldd echo $(which gst-inspect-1.0))のために指定されていることを確認してください。

たとえば、次のコマンドを実行します

export LD_LIBRARY_PATH="/usr/local/lib:/usr/lib" 
関連する問題