Hi all!
First of all great library, using it is infinitely more convenient compared to the old VLC libs.
My question is, in its current state does this library support RTSP streaming on iOS? From the README.md file I gather that the answer would be yes because RTSP is specifically mentioned in the supported formats of the showcase app. However so far I could not get RTSP to work neither in my own app nor the showcase app.
What I am doing is just giving a local rtsp url to the player without any special stuff and my expectation is that the stream plays. However all I get in the logs are these "Failed to play RTSP session" messages. When I enabled verbose logging this is the output I get back:
[libvlc libvlc] Creating an input for playback'rtsp://CAMERA_HOST:8554/live'
[libvlc libvlc] creating audio output
[libvlc libvlc] looking for audio output module matching "any": 2 candidates
[libvlc libvlc] using audio output module "avsamplebuffer"
[libvlc libvlc] keeping audio output
[libvlc libvlc] Creating an input for playback'rtsp://CAMERA_HOST:8554/live'
[libvlc libvlc] using timeshift granularity of 50 MiB
[libvlc libvlc] using default timeshift path
[libvlc libvlc] rtsp://CAMERA_HOST:8554/live' gives access rtsp' demux any' path CAMERA_HOST:8554/live'
[libvlc libvlc] creating access: rtsp://CAMERA_HOST:8554/live
[libvlc libvlc] looking for access module matching "rtsp": 1 candidates
[libvlc libvlc] try to open 'rtsp://CAMERA_HOST:8554/live'
[libvlc libvlc] connect to host 'CAMERA_HOST'
[libvlc libvlc] removing "audio output" module "avsamplebuffer"
[libvlc libvlc] connection succeeded (socket = 17)
[libvlc libvlc] net: opening 0.0.0.0 datagram port 9278
[libvlc libvlc] net: opening 0.0.0.0 datagram port 9279
[libvlc libvlc] Failed to play RTSP session
[libvlc libvlc] Failed to teardown RTSP session
[libvlc libvlc] no access modules matched with name rtsp
According to my all knowing AI agent the issue is that its trying to open the RTSP stream using satip which is not an RTSP client. The real RTSP client module would be live555 which is missing from this libVLC build. I have no clue about the inner workings of VLC so take this diagnosis with a grain of salt, might be total nonsense.
Anyhow I would greatly appreciate any information about RTSP support, I have not posted code yet since I am not sure if this issue is known or not but let me know if you do not experience the same thing on your end and then I will try to provide a repro project.
Cheers,
Paul
Hi all!
First of all great library, using it is infinitely more convenient compared to the old VLC libs.
My question is, in its current state does this library support RTSP streaming on iOS? From the README.md file I gather that the answer would be yes because RTSP is specifically mentioned in the supported formats of the showcase app. However so far I could not get RTSP to work neither in my own app nor the showcase app.
What I am doing is just giving a local rtsp url to the player without any special stuff and my expectation is that the stream plays. However all I get in the logs are these "Failed to play RTSP session" messages. When I enabled verbose logging this is the output I get back:
[libvlc libvlc] Creating an input for playback'rtsp://CAMERA_HOST:8554/live'
[libvlc libvlc] creating audio output
[libvlc libvlc] looking for audio output module matching "any": 2 candidates
[libvlc libvlc] using audio output module "avsamplebuffer"
[libvlc libvlc] keeping audio output
[libvlc libvlc] Creating an input for playback'rtsp://CAMERA_HOST:8554/live'
[libvlc libvlc] using timeshift granularity of 50 MiB
[libvlc libvlc] using default timeshift path
[libvlc libvlc]
rtsp://CAMERA_HOST:8554/live' gives accessrtsp' demuxany' pathCAMERA_HOST:8554/live'[libvlc libvlc] creating access: rtsp://CAMERA_HOST:8554/live
[libvlc libvlc] looking for access module matching "rtsp": 1 candidates
[libvlc libvlc] try to open 'rtsp://CAMERA_HOST:8554/live'
[libvlc libvlc] connect to host 'CAMERA_HOST'
[libvlc libvlc] removing "audio output" module "avsamplebuffer"
[libvlc libvlc] connection succeeded (socket = 17)
[libvlc libvlc] net: opening 0.0.0.0 datagram port 9278
[libvlc libvlc] net: opening 0.0.0.0 datagram port 9279
[libvlc libvlc] Failed to play RTSP session
[libvlc libvlc] Failed to teardown RTSP session
[libvlc libvlc] no access modules matched with name rtsp
According to my all knowing AI agent the issue is that its trying to open the RTSP stream using satip which is not an RTSP client. The real RTSP client module would be live555 which is missing from this libVLC build. I have no clue about the inner workings of VLC so take this diagnosis with a grain of salt, might be total nonsense.
Anyhow I would greatly appreciate any information about RTSP support, I have not posted code yet since I am not sure if this issue is known or not but let me know if you do not experience the same thing on your end and then I will try to provide a repro project.
Cheers,
Paul