Windows 上的 GStreamer 音频流
我正在 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 秒的时间。可能是什么问题?
I'm experimenting a bit with GStreamer (ossbuild 0.10.7) on Windows, but I can't seem to make audio streaming between two computers work. All I hear at the receiver side is a short beep followed by silence.
This is the sender pipeline:
gst-launch -v audiotestsrc ! audioconvert ! rtpL16pay ! udpsink host=224.0.0.7 auto-multicast=true port=4444
This is the receiver pipeline:
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
I've already tried different queue settings and codecs. Same thing when I try to stream an audio file, all I hear is about 1 second of it. What could be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎是 autoaudiosink 和 rtpL16 的问题。此管道有效:
发送者:
接收者:
此管道也有效:
发送者:
接收者:
Appears to be a problem with autoaudiosink and rtpL16. This pipeline works:
Sender:
Receiver:
This pipeline also works:
Sender:
Receiver: