VLC is unable to open the MRL In ubuntu 20.04
Posted: 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:
ViewModel:
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.
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>
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);
}
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.