【问题标题】:GStreamer audio streaming on WindowsWindows 上的 GStreamer 音频流
【发布时间】:2010-12-13 16:04:41
【问题描述】:

我正在 Windows 上尝试使用 GStreamer(ossbuild 0.10.7),但我似乎无法让两台计算机之间的音频流工作。我在接收端听到的只是一声短促的哔哔声,然后是沉默。

这是发送方管道:

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 秒。可能是什么问题?

【问题讨论】:

    标签: c windows gstreamer


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-28
      • 2012-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多