1

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

これは送信者パイプラインです。

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秒だけです。何が問題なのですか?

4

1 に答える 1

1

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
于 2010-12-13T08:04:41.410 に答える