PlayerEndpoint doesn't works with RTSP multicast uri

65 views
Skip to first unread message

Manuel Hernández

unread,
Feb 15, 2019, 12:15:46 PM2/15/19
to kurento

Hi, I'm using the version of kurento media server 6.9.0  and I'm following the example of the Kurento-Player documentation (https://doc-kurento.readthedocs.io/en/6.9.0/tutorials/java/tutorial-player.html). Then  i am trying to connect a playerEndpoint with an ip camera by rtsp multicast and the Kurento Media Player log returns this error:

 


kms1       | 5:25:32.720498777     1 0x7f70cc0020f0 ERROR      rtspsrc gstrtspsrc.c:6664:gst_rtspsrc_open_from_sdp:<source> setup failed

kms1       | 5:25:32.720713579     1 0x562d1d692360 ERROR      playerendpoint kmsplayerendpoint.c:1335:process_bus_message:<kmsplayerendpoint12> Error code 9: 'Could not read from resource.', element: source, parent: internalpipeline

kms1       | 5:25:32.720747615     1 0x562d1d692360 ERROR      playerendpoint kmsplayerendpoint.c:1338:process_bus_message:<kmsplayerendpoint12> Debugging info: gstrtspsrc.c(6347): gst_rtspsrc_setup_streams (): /GstPipeline:internalpipeline/GstURIDecodeBin:uridecodebin12/GstRTSPSrc:source:

kms1       | Could not connect to server, no protocols left

kms1       | 5:25:32.720878395     1 0x7f70b8001830 DEBUG      KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"description":"Invalid URI","errorCode":0,"source":"131bb24e-8d00-4a3f-9686-076645457884_kurento.MediaPipeline/a795a08e-87c1-4d8c-a084-30acd9f9be55_kurento.PlayerEndpoint","tags":[],"timestamp":"1550245076","type":"INVALID_URI"},"object":"131bb24e-8d00-4a3f-9686-076645457884_kurento.MediaPipeline/a795a08e-87c1-4d8c-a084-30acd9f9be55_kurento.PlayerEndpoint","type":"Error"}}}, sessionId: e76efda0-dbe4-49c2-9efd-acf12d685c1b

 


If I enter the rtsp unicast of the ip camera I can see the video stream, but with the multicast tells me that invalid uri.

 

Why can I connect by unicast and not by multicast? From VLC I can connect with both rtsp uri: unicast and multicast..


 

I also put wireshark frames:

 

    OPTIONS rtsp://10.107.1.68/stream1m RTSP/1.0

        User-Agent: GStreamer/1.8.1.1

        User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)

        ClientChallenge: 9e26d33f2984236010ef6253fb1887f7

        CompanyID: KnKV4M4I/B2FjJ1TToLycw==

        GUID: 00000000-0000-0000-0000-000000000000

        RegionData: 0

        PlayerStarttime: [28/03/2003:22:50:23 00:00]

        ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586

        Date: Fri, 15 Feb 2019 16:02:00 GMT

 

 

    DESCRIBE rtsp://10.107.1.68/stream1m RTSP/1.0

        CSeq: 2

        User-Agent: GStreamer/1.8.1.1

        Accept: application/sdp

        Date: Fri, 15 Feb 2019 16:02:00 GMT

 

 

    SETUP rtsp://10.107.1.68/h264_m/track1 RTSP/1.0

        CSeq: 3

        User-Agent: GStreamer/1.8.1.1

        Transport: RTP/AVP;multicast

        Date: Fri, 15 Feb 2019 16:02:00 GMT

 

 

    PLAY rtsp://10.107.1.68/h264_m/ RTSP/1.0

        CSeq: 4

        User-Agent: GStreamer/1.8.1.1

        Range: npt=0-

        Session: 235383

        Date: Fri, 15 Feb 2019 16:02:00 GMT

 

 

   The camera starts to send data to the multicast address but kurento does not visualize the flow, it gives the error of invalid uri and executes the teardown..


Captura1.JPG




  TEARDOWN rtsp://10.107.1.68/h264_m/ RTSP/1.0   

        User-Agent: GStreamer/1.8.1.1

        Session: 235383



Best regards!!

Juan Navarro

unread,
Feb 19, 2019, 9:36:33 AM2/19/19
to kurento
Hi, you can try with this debug log configuration:

export GST_DEBUG="${GST_DEBUG:-3},playerendpoint:5,uridecodebin:5,rtspsrc*:5"

(on top of the default line).

You can use that on console if launching KMS by hand, or adding that line to /etc/default/kurento-media-server

Luis Alfredo Pérez Medina

unread,
Feb 20, 2019, 9:24:47 AM2/20/19
to kurento
This question is also in Stackoverflow and Github

- https://stackoverflow.com/questions/54751486/cannot-connect-kurento-kms-to-a-rtsp-multicast-uri

I don't know which is the best channel to post question :S

Juan Navarro

unread,
Feb 21, 2019, 8:05:06 AM2/21/19
to kurento
This is not a question, so stack overflow is not the place. It looks more to me like a bug, so the bug tracker is the correct channel to track investigations / progress on solving the issue. It doesn't hurt writing here too, where other users might be able to share their experiences with streaming RTSP Multicast.

Please reply to the bug tracker issue with requested actions, in this case to indicate if this command works for you:
gst-launch-1.5 rtspsrc location="rtsp://xxxxx:xx...@xxx.xxx.xxx.xxx?multicast=1" ! decodebin ! autovideosink
Note the '1.5' instead of '1.0' in 'gst-launch-1.5'
Reply all
Reply to author
Forward
0 new messages