Stream multicast media use Gstreamer and VLC

2019-08-06 06:46发布

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

0条回答
登录 后发表回答