RTSP multicast examples

E-J van der Linden EJvanderLinden at hetnet.nl
Thu Jan 12 18:28:39 UTC 2017


Hello,

With the GStreamer RTSP server, two exaples are available to test multicast traffic.
I can not get them to work and I need some help.

On the server-side:
./test-multicast
stream ready at rtsp://127.0.0.1:8554/test

On the client-side (same machine):

gst-launch-1.0 -v playbin uri=rtsp://10.0.2.15:8554/test
......
......
Could not receive any UDP packets for 5,0000 seconds, maybe your firewall is blocking it. Retrying using a TCP connection.
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not read from resource.
Additional debug info:
gstrtspsrc.c(6347): gst_rtspsrc_setup_streams (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not connect to server, no protocols left

I use Ubuntu 16.04.1. 
Multicast traffic works on my computer.
Tested with a "hello world" multicast socket c-program, so no problems with routes or so.


With Wireshark I see a correct reply with a RTP/SDP description to use multicast address 224.3.0.0
However I see no RTP packets from the server.

This is the log from the REPLY of the server on the DESCRIBE request of the client:

Internet Protocol Version 4, Src: 10.0.2.15, Dst: 10.0.2.15
Transmission Control Protocol, Src Port: 8554 (8554), Dst Port: 38752 (38752), Seq: 184, Ack: 595, Len: 448
Real Time Streaming Protocol
    Response: RTSP/1.0 200 OK\r\n
        Status: 200
    CSeq: 2\r\n
    Content-type: application/sdp
    Content-Base: rtsp://10.0.2.15:8554/test/\r\n
    Server: GStreamer RTSP server\r\n
    Date: Thu, 12 Jan 2017 17:38:07 GMT\r\n
    Content-length: 257
    \r\n
    Session Description Protocol
        Session Description Protocol Version (v): 0
        Owner/Creator, Session Id (o): - 2074017758225444218 1 IN IP4 10.0.2.15
        Session Name (s): Session streamed with GStreamer
        Session Information (i): rtsp-server
        Time Description, active time (t): 0 0
        Session Attribute (a): tool:GStreamer
        Session Attribute (a): type:broadcast
        Session Attribute (a): control:*
        Session Attribute (a): range:npt=0-
        Media Description, name and address (m): audio 0 RTP/AVP 8
        Connection Information (c): IN IP4 224.3.0.0/16
        Media Attribute (a): rtpmap:8 PCMA/8000
        Media Attribute (a): control:stream=0


When I use the example test_multicast2, the pipeline is established, but the RTP is send as unicast, not multicast.
In the RTP/SDP information I see type broadcast but no multicast address as Connection Information.
        Session Attribute (a): type:broadcast
	Connection Information (c): IN IP4 0.0.0.0

What do I do wrong?

regards,

Ernst-Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170112/b774110e/attachment-0001.html>


More information about the gstreamer-devel mailing list