2010-11-30 58 views
2

Windows上でGStreamer(ossbuild 0.10.7)を少し試していますが、2台のコンピュータ間でオーディオストリーミングを行うことはできません。受信側で聞こえるのは短いビープ音とそれに続く沈黙です。Windows上でのGStreamerオーディオストリーミング

これは、送信者のパイプラインである:

gst-launch -v audiotestsrc ! audioconvert ! rtpL16pay ! udpsink host=224.0.0.7 auto-multicast=true port=4444 

これは、受信パイプラインである:私はすでに別のキューの設定とコーデックを試してみた

gst-launch -v udpsrc multicast-group=224.0.0.7 port=4444 caps="application/x-rtp, media=(string)audio, channels=(int)1, clock-rate=(int)44100, encoding-name=(string)L16" ! gstrtpbin ! rtpL16depay ! audioconvert ! queue ! autoaudiosink 

。オーディオファイルをストリーミングしようとするときと同じことですが、私が聞くのは約1秒です。何が問題なの?

答えて

2

autoaudiosinkとrtpL16に問題があるようです。このパイプライン工事:

送信者:

gst-launch -v directsoundsrc ! audioresample ! audio/x-raw-int, rate=8000 ! audioconvert ! udpsink host=224.0.0.7 port=4444 

受信機:

gst-launch -v udpsrc multicast-group=224.0.0.7 port=4444 caps="audio/x-raw-int, channels=(int)2, rate=(int)8000, width=(int)16, depth=(int)16" ! audioconvert ! directsoundsink 

このパイプラインはまた、動作します:

送信者:

gst-launch -v directsoundsrc ! audioresample ! audio/x-raw-int, rate=22000 ! faac ! audio/mpeg,mpegversion=4 ! rtpmp4apay ! udpsink host=224.0.0.7 port=4444 

受信機:

gst-launch -v udpsrc multicast-group=224.0.0.7 port=4444 caps="application/x-rtp, channels=(int)2, clock-rate=(int)22000, encoding-name=(string)MP4A-LATM, config=(string)40002410" ! gstrtpbin ! rtpmp4adepay ! faad ! directsoundsink 
関連する問題