2012-02-22 8 views
0

メディアファイル(ビデオまたはオーディオ)をストリーミングしたい。ファイルtest.oggをストリーミングするストリーミングビデオにgst-launchを使用していますか?

gst-launch-0.10 filesrc location="/home/ms/GStreamerTest/test.ogg" ! vorbisenc \ 
! rtpvorbispay pt=96 ! udpsink host=127.0.0.1 port=5000 

、しかし、私はエラーを得た:私は、コマンドを使用

"ERROR: from element /GstPipeline:pipeline0/GstVorbisEnc:vorbisenc0: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer. 
Additional debug info: 
gstvorbisenc.c(1227): gst_vorbis_enc_chain(): /GstPipeline:pipeline0/GstVorbisEnc:vorbisenc0: 
encoder not initialized (input is not audio?) 
ERROR: pipeline doesn't want to preroll.

私はこの問題、感謝を解決してください。

答えて

2

エンコードされ多重化されたビットストリームをオーディオエンコーダに接続しました。それはおそらくうまくいかない。あなたのケースでは

シンクautovideosinkまたはautoaudiosink

+0

そうにそれをfilesrc ! udpsinkは、ネットワーク経由でファイルを送信し、反対側には、あなたがそれをudpsrc受信する必要が、oggdemuxそれをデマルチプレクサ、theoradecまたはvorbisdecそれをデコードし、パイプエンコーダを取り除くと、 "gst-launch-0.10 filesrc location ="/home/motsach/GStreamerTest/test.ogg "!rtpvorbispay pt = 96!udpsink host = 127.0.0.1 port = 5000"と同じコマンドが実行されます。しかし、これはうまくいかず、私はエラーが発生しました: "パイプラインをPAUSEDに設定する... パイプラインはPREROLLINGです... 警告:要素/ GstPipelineから:pipeline0/GstRtpVorbisPay:rtpvorbispay0:ストリームをデコードできませんでした。 未知のヘッダを無視すると受信しました エラー:要素/ GstPipelineから:pipeline0/GstRtpVorbisPay:rtpvorbispay0:要素はこのストリームの処理を実装していません。ありがとう、私に説明してください! –