2011-10-20 24 views
0

を再生する:
のGStreamer:私はこれでのgstreamerで地元のMPEG2 TSファイルを再生しようとしているMPEG2

gst-launch filesrc location=open_season.mpg ! mpeg2dec ! xvimagesink 

最初のフレームは色のように大きなブロックを表示され、その後停止します。私がここで間違っていることについてのどんな考え? -TSファイルはこれとは別に処理する必要がありますか?

$ gst-launch filesrc location=open_season.mpg ! mpeg2dec ! xvimagesink 
Setting pipeline to PAUSED ... 
Pipeline is PREROLLING .... 
WARNING: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Internal data flow problem.. 
Additional debug info:. 
gstbasesink.c(3492): gst_base_sink_chain_unlocked(): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: 
Received buffer without a new-segment. Assuming timestamps start from 0. 
Pipeline is PREROLLED ... 
Setting pipeline to PLAYING ... 
New clock: GstSystemClock 
Got EOS from element "pipeline0". 
Execution ended after 6866757291 ns. 
Setting pipeline to PAUSED ... 
Setting pipeline to READY ... 
Setting pipeline to NULL ... 
Freeing pipeline .. 

答えて

3

私が最初にあなたが最初playbin2の助けを借りてファイルを再生しようとすべきだと思う:

は、ここでのログです。もしあなたがそれを再生することができれば、あなたはdecodebin2を使い、その出力をデバッグし、それに応じてパイプラインを構築するべきです。次のように

playbin2の構文は次のとおりです -

gst-launch playbin2 uri = file:///home/user1031040/Desktop/file.mpg 

次のようにdecodebin2の構文は次のとおりです -

gst-launch filesrc location = file.mpg ! decodebin2 ! autovideosink 
関連する問題