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..
TEARDOWN rtsp://10.107.1.68/h264_m/ RTSP/1.0
User-Agent: GStreamer/1.8.1.1
Session: 235383
Best regards!!