Can't play RTSP stream since Ubuntu 21.04 update?

This forum is about all development around libVLC.
ibrewster
New Cone
New Cone
Posts: 8
Joined: 06 Jul 2021 17:05

Can't play RTSP stream since Ubuntu 21.04 update?

Postby ibrewster » 09 Dec 2022 17:59

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 10 Dec 2022 18:15

Ubuntu removed RTSP support in their VLC builds. Tou need to install the Snap version or build VLC with RTSP suppoet yourself.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ibrewster
New Cone
New Cone
Posts: 8
Joined: 06 Jul 2021 17:05

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

Postby ibrewster » 10 Dec 2022 19:59

...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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 11 Dec 2022 12:24

The Snap is only for VLC, not for LibVLC. The configure flag is --enable-live555.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ibrewster
New Cone
New Cone
Posts: 8
Joined: 06 Jul 2021 17:05

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

Postby ibrewster » 11 Dec 2022 23:41

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests