基于 gstreamer 的实时音频流服务器和带有 vlc 播放传入流的客户端
我需要使用 gstreamer 设置实时音频流服务器。服务器应该向客户端发送实时音频,并且在客户端,应该使用 vlc 播放器来播放传入的流。我使用以下代码
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
gst-launch -v udpsrc caps=$VIDEO_CAPS port=4444 \
! gstrtpbin .recv_rtp_sink_0 \
! rtph264depay ! ffdec_h264 ! xvimagesink
,然后 gstreamer 报告如下:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
请帮助我执行使用 gstreamer 设置服务器的步骤,客户端进行实时流传输
I need to set up a live audio streaming server with gstreamer. Server should be sending live audio to client and at the client side, vlc player should be used to play the incoming stream. I am using the following code
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
gst-launch -v udpsrc caps=$VIDEO_CAPS port=4444 \
! gstrtpbin .recv_rtp_sink_0 \
! rtph264depay ! ffdec_h264 ! xvimagesink
then gstreamer reports like:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Please help me with steps for setting up a server using gstreamer a client for performing live streaming
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试此处阅读有关使用 VLC 进行流式传输的手册。
或者只是:
更新:
由于我的阅读能力不好,我稍微误解了这个问题。
以下是如何设置服务器:
或使用
multiudpsink
发送到多个客户端。Try reading manual on streaming with VLC here.
Or just:
Update:
Due to my bad reading skills I slightly misunderstood the question.
Here is how to set up a server:
or use
multiudpsink
to send to multiple clients.