Receive multicast stream in Android
Posted: 25 Sep 2015 17:20
Hi all,
I am writing a application to stream video capture from camera to mobile
devices.
Until now, I do some test with example in gstreamer1.0 rtsp-server. With
both test-launch and test-multicast. They work well but only in unicast.
I want to send multicast RTP stream to mobile device.
I try the following pipeline:
gst-launch-1.0 filesrc location=(mp4 or mov) ! qtdemux name=d d. ! h264parse
! rtph264pay config-interval=3 pt=96 mtu=1024 ! udpsink host=224.1.1.1
port=5000
Now I can see UDP RTP send to multicast IP.
And I can receive RTP data and playback normally with my SDP file test.sdp
c=IN IP4 224.1.1.1
m=video 5000 RTP/AVP 96
a=rtpmap:96 H264/90000
I run VLC on PC with this SDP file:
vlc test.sdp
My question is:
How I can receive that RTP stream in my mobile - I dont know how to let the VLC on android know the SDP format?
I use camera connect to raspberry and use raspberry to stream multicast to android.
Reagards,
VinhLoc
I am writing a application to stream video capture from camera to mobile
devices.
Until now, I do some test with example in gstreamer1.0 rtsp-server. With
both test-launch and test-multicast. They work well but only in unicast.
I want to send multicast RTP stream to mobile device.
I try the following pipeline:
gst-launch-1.0 filesrc location=(mp4 or mov) ! qtdemux name=d d. ! h264parse
! rtph264pay config-interval=3 pt=96 mtu=1024 ! udpsink host=224.1.1.1
port=5000
Now I can see UDP RTP send to multicast IP.
And I can receive RTP data and playback normally with my SDP file test.sdp
c=IN IP4 224.1.1.1
m=video 5000 RTP/AVP 96
a=rtpmap:96 H264/90000
I run VLC on PC with this SDP file:
vlc test.sdp
My question is:
How I can receive that RTP stream in my mobile - I dont know how to let the VLC on android know the SDP format?
I use camera connect to raspberry and use raspberry to stream multicast to android.
Reagards,
VinhLoc