VLC is unable to open the MRL In ubuntu 20.04

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
qlzcl
New Cone
New Cone
Posts: 2
Joined: 27 Nov 2024 07:34

VLC is unable to open the MRL In ubuntu 20.04

Postby qlzcl » 27 Nov 2024 07:57

OS: Ubuntu 20.04 in VBox;
SDK:Dotnet 8.0
and
apt install libvlc-dev
apt install vlc

the code like this:
UI:

Code: Select all

<Panel> <vlc:VideoView MediaPlayer="{Binding MediaPlayer}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> </Panel>
ViewModel:

Code: Select all

private readonly LibVLC _libVlc = new LibVLC(enableDebugLogs:true); public MainWindowViewModel() { MediaPlayer = new MediaPlayer(_libVlc); } public void Play() { var uri = @"rtsp://admin:Admin12345@192.168.1.91:554/cam/realmonitor?channel=1&subtype=1"; using var media = new Media(_libVlc, new Uri(uri) ); // var uri = "/home/zcl/Videos/s0709.mp4"; // using var media = new Media(_libVlc, uri); MediaPlayer.Play(media); }
it play file right.
if I reboot ubuntu,It play rtsp in a popup windows(ignore it now),but if run secnod time or third
report Error as:
[00005614b713c4c0] main libvlc debug: VLC media player - 3.0.9.2 Vetinari
[00005614b713c4c0] main libvlc debug: Copyright © 1996-2020 the VideoLAN team
[00005614b713c4c0] main libvlc debug: revision 3.0.9.2-0-gd4c1aefe4d
[00005614b713c4c0] main libvlc debug:
[00005614b713c4c0] main libvlc debug: searching plug-in modules
[00005614b713c4c0] main libvlc debug: loading plugins cache file /usr/lib/x86_64-linux-gnu/vlc/plugins/plugins.dat
[00005614b713c4c0] main libvlc debug: recursively browsing `/usr/lib/x86_64-linux-gnu/vlc/plugins'
[00005614b713c4c0] main libvlc debug: plug-ins loaded: 521 modules
[00005614b7135a80] main logger debug: looking for logger module matching "any": 4 candidates
[00005614b7135a80] main logger debug: using logger module "console"
[00005614b713c4c0] main libvlc debug: translation test: code is "C"
[00005614b71dfe50] main keystore debug: looking for keystore module matching "memory": 4 candidates
[00005614b71dfe50] main keystore debug: using keystore module "memory"
[00005614b713c4c0] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU
[00005614b70f0830] main generic debug: creating audio output
[00005614b710dc40] main audio output debug: looking for audio output module matching "any": 6 candidates
[00005614b710dc40] vlcpulse audio output debug: using library version 13.99.0
[00005614b710dc40] vlcpulse audio output debug: (compiled with version 13.99.0, protocol 33)
[00005614b710dc40] vlcpulse audio output debug: connected locally to /run/user/1000/pulse/native as client #9
[00005614b710dc40] vlcpulse audio output debug: using protocol 33, server protocol 33
[00005614b710dc40] pulse audio output debug: adding sink 1: alsa_output.pci-0000_00_05.0.analog-stereo (Built-in Audio Analog Stereo)
[00005614b710dc40] main audio output debug: using audio output module "pulse"
[00005614b70f0830] main generic debug: keeping audio output
[00005614b7329070] main input debug: Creating an input for 'rtsp://192.168.1.91:554/cam/realmonitor'
[00005614b7329070] main input debug: using timeshift granularity of 50 MiB
[00005614b7329070] main input debug: using default timeshift path
[00005614b7329070] main input debug: `rtsp://admin:Admin12345@192.168.1.91:554/cam/realmonitor?channel=1&subtype=1' gives access `rtsp' demux `any' path `admin:Admin12345@192.168.1.91:554/cam/realmonitor?channel=1&subtype=1'
[00007f925c000fc0] main input source debug: creating demux: access='rtsp' demux='any' location='admin:Admin12345@192.168.1.91:554/cam/realmonitor?channel=1&subtype=1' file='(null)'
[00007f925c001180] main demux debug: looking for access_demux module matching "rtsp": 17 candidates
[00007f925c001180] live555 demux debug: version 2020.01.19
[00007f925c001180] main demux warning: Password in a URI is DEPRECATED
Created new TCP socket 149 for connection
Connecting to 192.168.1.91, port 554 on socket 149...
[00007f925c001180] live555 demux debug: connection timeout
[00007f925c001180] live555 demux error: Failed to connect with rtsp://192.168.1.91:554/cam/realmonitor?channel=1&subtype=1
[00007f925c001180] main demux debug: no access_demux modules matched
[00007f925c004b40] main stream debug: creating access: rtsp://admin:Admin12345@192.168.1.91:554/cam/realmonitor?channel=1&subtype=1
[00007f925c004b40] main stream debug: looking for access module matching "rtsp": 28 candidates
[00007f925c004b40] satip stream debug: try to open 'rtsp://admin:Admin12345@192.168.1.91:554/cam/realmonitor?channel=1&subtype=1'
[00007f925c004b40] satip stream debug: connect to host '192.168.1.91'
[00007f925c004b40] main stream debug: net: connecting to 192.168.1.91 port 554
[00007f925c004b40] main stream debug: connection succeeded (socket = 149)
[00007f925c004b40] main stream debug: net: opening 0.0.0.0 datagram port 9448
[00007f925c004b40] main stream debug: net: opening 0.0.0.0 datagram port 9449
[00007f925c004b40] satip stream error: Failed to setup RTSP session
[00007f925c004b40] main stream debug: net: connecting to 192.168.1.91 port 554
[00007f925c004b40] main stream debug: connection succeeded (socket = 149)
[00007f925c004b40] access_realrtsp stream warning: Cseq mismatch, got 1, assumed 0
[00007f925c004b40] access_realrtsp stream debug: rtsp connected
[00007f925c004b40] access_realrtsp stream warning: only real/helix rtsp servers supported for now
[00007f925c004b40] main stream debug: no access modules matched
[00005614b7329070] main input error: Your input can't be opened
[00005614b7329070] main input error: VLC is unable to open the MRL 'rtsp://admin:Admin12345@192.168.1.91:554/cam/realmonitor?channel=1&subtype=1'. Check the log for details.

I don't know why this happend,I do nothing .
please tell me how to fix it ,and how to play video in window not in a popup Window。

thanks lot.

qlzcl
New Cone
New Cone
Posts: 2
Joined: 27 Nov 2024 07:34

Re: VLC is unable to open the MRL In ubuntu 20.04

Postby qlzcl » 27 Nov 2024 07:58

more from debug:
[00005614b713c4c0] main libvlc debug: configured with ./configure '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-debug' '--config-cache' '--disable-update-check' '--enable-fast-install' '--docdir=/usr/share/doc/vlc' '--with-binary-version=3.0.9.2-1' '--enable-a52' '--enable-aa' '--enable-aom' '--enable-aribsub' '--enable-avahi' '--enable-bluray' '--enable-caca' '--enable-chromaprint' '--enable-chromecast' '--enable-dbus' '--enable-dca' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gles2' '--enable-gnutls' '--enable-harfbuzz' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-matroska' '--enable-mod' '--enable-mpc' '--enable-mpg123' '--enable-mtp' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-sdl-image' '--enable-sftp' '--enable-shine' '--enable-shout' '--enable-skins2' '--enable-sndio' '--enable-soxr' '--enable-spatialaudio' '--enable-speex' '--enable-srt' '--enable-svg' '--enable-svgdec' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vdpau' '--enable-vnc' '--enable-vorbis' '--enable-x264' '--enable-x265' '--enable-zvbi' '--with-kde-solid=/usr/share/solid/actions/' '--disable-crystalhd' '--disable-d3d11va' '--disable-decklink' '--disable-directx' '--disable-dsm' '--disable-dxva2' '--disable-fdkaac' '--disable-fluidlite' '--disable-freerdp' '--disable-goom' '--disable-gst-decode' '--disable-libtar' '--disable-macosx' '--disable-macosx-avfoundation' '--disable-macosx-qtkit' '--disable-microdns' '--disable-mfx' '--disable-opencv' '--disable-projectm' '--disable-schroedinger' '--disable-sparkle' '--disable-telx' '--disable-vpx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-dc1394' '--enable-dv1394' '--enable-libplacebo' '--enable-linsys' '--enable-nfs' '--enable-omxil' '--enable-udev' '--enable-v4l2' '--enable-wayland' '--enable-libva' '--enable-vcd' '--enable-smbclient' '--disable-oss' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-sUx6OI/vlc-3.0.9.2=. -fstack-protector-strong -Wformat -Werror=format-security ' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-sUx6OI/vlc-3.0.9.2=. -fstack-protector-strong -Wformat -Werror=format-security ' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-sUx6OI/vlc-3.0.9.2=. -fstack-protector-strong -Wformat -Werror=format-security'

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

Re: VLC is unable to open the MRL In ubuntu 20.04

Postby Rémi Denis-Courmont » 27 Nov 2024 12:04

If it works once and then not the second time, then it's most certainly a problem with live555 or with the server.

But in any case, VLC 3.0.9 is way out of date, so you're on your own.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests