VLC unable to open RTSP from IP Cam

Hi,

I’m running Manjaro i3, I’ve used VLC in the past to open RTSP streams from my IP Cams but now it doesn’t work either on my old computer (where it has previously worked) or in the new one I just setup. The rtsp opens from a MacBook and from Android.

$ cvlc "rtsp://192.168.1.36:554/onvif1"
VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055b7028af470] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[000055b7028e6a50] dummy interface: using the dummy interface module...
[00007f12b40015f0] satip stream error: Failed to setup RTSP session
[00007f12b0000c90] main input error: Your input can't be opened
[00007f12b0000c90] main input error: VLC is unable to open the MRL 'rtsp://192.168.1.36:554/onvif1'. Check the log for details.

MRL ‘rtsp://192.168.1.36:554/onvif1’ works on MacBook and Android.

I’ve tried installing x264-152, aribb24 and then aribb25 but it didn’t made any difference.

Changing log to DEBUG:

main debug: starting playback of new item
main debug: resyncing on rtsp://192.168.1.36:554/onvif1
main debug: rtsp://192.168.1.36:554/onvif1 is at 0
main debug: creating new input thread
main debug: Creating an input for 'rtsp://192.168.1.36:554/onvif1'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `rtsp://192.168.1.36:554/onvif1' gives access `rtsp' demux `any' path `192.168.1.36:554/onvif1'
main debug: creating demux: access='rtsp' demux='any' location='192.168.1.36:554/onvif1' file='(null)'
main debug: looking for access_demux module matching "rtsp": 18 candidates
main debug: no access_demux modules matched
main debug: creating access: rtsp://192.168.1.36:554/onvif1
main debug: looking for access module matching "rtsp": 29 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
satip debug: try to open 'rtsp://192.168.1.36:554/onvif1'
satip debug: connect to host '192.168.1.36'
main debug: net: connecting to 192.168.1.36 port 554
main debug: no art finder modules matched
main debug: looking for meta fetcher module matching "any": 1 candidates
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
main debug: no art finder modules matched
main debug: connection succeeded (socket = 7)
main debug: net: opening 0.0.0.0 datagram port 9114
main debug: net: opening 0.0.0.0 datagram port 9115
satip error: Failed to setup RTSP session
main debug: net: connecting to 192.168.1.36 port 554
main debug: connection succeeded (socket = 7)
access_realrtsp warning: Cseq mismatch, got 1, assumed 0
access_realrtsp debug: rtsp connected
access_realrtsp warning: only real/helix rtsp servers supported for now
main debug: no access modules matched
main error: Your input can't be opened
main error: VLC is unable to open the MRL 'rtsp://192.168.1.36:554/onvif1'. Check the log for details.
main debug: dead input
main debug: changing item without a request (current 0/1)
main debug: nothing to play

Hi @toxicafunk,

From this page:

First launch the vlc:

vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0:5554

where:

  • 12 is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).
  • telnet launches the telnet interface of the vlc.
  • videolan is the password to connect to the telnet interface.
  • 0.0.0.0 is the host address.
  • 5554 is the port on which you stream.

Then connect to the vlc telnet interface and create the vod object:

new Test vod enabled
setup Test input my_video.mpg

You can access to the stream with:

vlc rtsp://server:5554/Test

where server is the address of the streaming server (IP or DNS)

If you already did this, I apologize. It wasn’t clear from your OP.

Thanks for the tip. In the page you linked I found this command that actually worked:

$ ffplay rtsp://192.168.1.46:554/onvif1

I still can’t play rtsp on VLC but ffplay works and I discovered te stream is broadcasted over UDP.

Thanks!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.