Page 1 of 1

Can't play RTSP stream since Ubuntu 21.04 update?

Posted: 09 Dec 2022 17:59
by ibrewster
I am using libvlc with Qt 6.4 under Ubuntu to play a RTSP stream. Until recently, it was working, but apparently when I updated Ubuntu to 21.04, something broke. Now attempts to play the same RTSP stream give me a "access_realrtsp stream error: rtsp session can not be established" error. Trying to play the same stream directly using VLC player, with verbose mode enabled gives me the same error, but with more detail:

Code: Select all

[00007fa038001630] main stream debug: connection succeeded (socket = 21) [00007fa038001630] main stream debug: net: opening 0.0.0.0 datagram port 9210 [00007fa038001630] main stream debug: net: opening 0.0.0.0 datagram port 9211 [0000560c608505c0] qt interface debug: IM: Setting an input [00007fa038001630] satip stream error: Failed to setup RTSP session [00007fa038001630] main stream debug: net: connecting to 10.27.81.62 port 554 [00007fa038001630] main stream debug: connection succeeded (socket = 21) [00007fa038001630] access_realrtsp stream warning: Cseq mismatch, got 1, assumed 0 [00007fa038001630] access_realrtsp stream debug: rtsp connected [00007fa038001630] access_realrtsp stream debug: found a real/helix rtsp server [00007fa038001630] access_realrtsp stream warning: server did not reply with RealChallenge1, aborting! [00007fa038001630] access_realrtsp stream error: rtsp session can not be established [00007fa038001630] main stream debug: no access modules matched [0000560c60808460] main playlist debug: dead input [0000560c60808460] main playlist debug: changing item without a request (current 0/1) [0000560c60808460] main playlist debug: nothing to play
How might I solve this? The only thing I found online was this post from a year ago: https://askubuntu.com/questions/1338420 ... layer-does, but the only solutions deal directly with VLC player, not libvlc, so I'm not convinced they will help?

Re: Can't play RTSP stream since Ubuntu 21.04 update?

Posted: 10 Dec 2022 18:15
by Rémi Denis-Courmont
Ubuntu removed RTSP support in their VLC builds. Tou need to install the Snap version or build VLC with RTSP suppoet yourself.

Re: Can't play RTSP stream since Ubuntu 21.04 update?

Posted: 10 Dec 2022 19:59
by ibrewster
...install the Snap version or build VLC with RTSP suppoet yourself.
So if I install the snap version, how do I use libVNC in my app? If I build myself, how do I make sure it includes RTSP - is that a configure flag?

Re: Can't play RTSP stream since Ubuntu 21.04 update?

Posted: 11 Dec 2022 12:24
by Rémi Denis-Courmont
The Snap is only for VLC, not for LibVLC. The configure flag is --enable-live555.

Re: Can't play RTSP stream since Ubuntu 21.04 update?

Posted: 11 Dec 2022 23:41
by ibrewster
The configure flag is --enable-live555.
Thanks. I was able to get a VLC build completed, and RTSP is now working again in my application.