Stream multicast media use Gstreamer and VLC

跟風遠走 提交于 2019-12-11 09:57:34

问题


I am writing an application streaming media file ( H264, fortmat I use now is *.MP4 ). I use Gstreamer with pipeline :

gst-launch-1.0 filesrc location=/big_buck_bunny_720p_h264.mp4 ! qtdemux name=d d. ! h264parse ! rtph264pay config-interval=3 pt=96 mtu=1024 ! udpsink host=224.1.1.1 port=5000

And I use the following SDP file to receive stream:

c=IN IP4 224.1.1.1

m=video 5000 RTP/AVP 96

a=rtpmap:96 H264/90000

In PC I can receive the stream and it playback normally. But now I want to receive that stream in my android mobile device? How can I do that.

I used wireshark to capture packet when I use VLC to start the stream ( not gstreamer ) and I can see a packet called Announcement with protocol SAP/SDP and send to port 9875 and IP 224.2.127.254. I think it is how server send SDP file to client but I don't know how the client ( run VLC to receive stream ) can get that packet and process SDP data. How can I do that with Gstreamer?

Regards, VinhLoc

来源:https://stackoverflow.com/questions/32774613/stream-multicast-media-use-gstreamer-and-vlc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!