Buffer Deadlock Prevented trying to view RTSP
When I try to open a RTSP Stream I'm getting buffer deadlock prevented and the video doesn't play.
Code:
`this.VideoView.MediaPlayer = new MediaPlayer(this.libvlc);
this.media = new Media(this.libvlc, this.textBoxLink.Text, FromType.FromLocation);
this.VideoView.MediaPlayer.EncounteredError += this.MediaPlayer_EncounteredError;
this.media.AddOption(":rtsp-user=" + this.textBoxUsername.Text);
this.media.AddOption(":rtsp-pwd=" + this.textBoxPassword.Text);
this.media.AddOption(":no-audio");
this.media.AddOption(":-v");
this.VideoView.MediaPlayer.Play(this.media);`
Log:
06:52:30 Log started
06:52:30 VLC media player - 3.0.8 Vetinari
06:52:30 configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '-- enable-faad' '--enable-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable- shout' '--enable-goom' '--enable-caca' '--enable-qt' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=x86_64-w64-mingw32' '--with- breakpad=https://win.crashes.videolan.org' 'host_alias=x86_64-w64-mingw32' 'PKG_CONFIG_LIBDIR=/home/jenkins/workspace/vlc-release/windows/vlc-release-win32-x64/contrib/x86_64-w64- mingw32/lib/pkgconfig' 06:52:30 Copyright © 1996-2019 the VideoLAN team
06:52:30 revision 3.0.8-0-gf350b6b5a7
06:52:47 creating audio output
06:52:47 looking for audio output module matching "any": 6 candidates
06:52:47 cannot initialize COM (error 0x80010106)
06:52:47 using audio output module "directsound"
06:52:47 found 4 devices
06:52:47 keeping audio output
06:52:47 Creating an input for 'rtsp://192.168.0.125:34567/Streaming/channels/101'
06:52:47 using timeshift granularity of 50 MiB
06:52:47 using timeshift path: C:\Users\raffo\AppData\Local\Temp
06:52:47 rtsp://192.168.0.125:34567/Streaming/channels/101' gives access
rtsp' demux any' path
192.168.0.125:34567/Streaming/channels/101'
06:52:47 creating demux: access='rtsp' demux='any' location='192.168.0.125:34567/Streaming/channels/101'
file='\192.168.0.125:34567\Streaming\channels\101'
06:52:47 looking for access_demux module matching "rtsp": 15 candidates
06:52:47 version 2016.11.28
06:52:47 RTP subsession 'video/H264'
06:52:47 selecting program id=0
06:52:47 RTP subsession 'audio/PCMU'
06:52:47 setup start: 0.000000 stop:0.000000
06:52:47 We have a timeout of 60 seconds
06:52:47 play start: 0.000000 stop:0.000000
06:52:47 using access_demux module "live555"
06:52:47 looking for packetizer module matching "any": 25 candidates
06:52:47 found NAL_SPS (sps_id=0)
06:52:47 found NAL_PPS (pps_id=0 sps_id=0)
06:52:47 using packetizer module "h264"
06:52:47 looking for video decoder module matching "any": 19 candidates
06:52:47 using ffmpeg Lavc58.6.103
06:52:47 CPU flags: 0x000fd3db
06:52:47 allowing 6 thread(s) for decoding
06:52:47 codec (h264) started
06:52:47 using frame thread mode with 6 threads
06:52:47 using video decoder module "avcodec"
06:52:47 audio is disabled, not selecting ES 0x1
06:52:47 looking for meta reader module matching "any": 2 candidates
06:52:47 Trying Lua scripts in C:\Users\raffo\AppData\Roaming\vlc\lua\meta\reader
06:52:47 Trying Lua scripts in C:\Projects\Condor\192.168.0.125\RTSPLinkTester\RTSPLinkTester\bin\Debug\libvlc\win- x64\lua\meta\reader 06:52:47 Trying Lua playlist script C:\Projects\Condor\192.168.0.125\RTSPLinkTester\RTSPLinkTester\bin\Debug\libvlc\win-x64\lua\meta\reader\filename.luac
06:52:47 no meta reader modules matched
06:52:47 `rtsp://192.168.0.125:34567/Streaming/channels/101' successfully opened
06:52:47 Buffering 0%
06:52:47 Buffering 1%
06:52:48 Buffering 3%
06:52:48 Buffering 6%
06:52:48 Buffering 31%
06:52:48 Buffering 35%
06:52:48 Buffering 41%
06:52:48 Buffering 48%
06:52:48 Buffering 51%
06:52:48 Buffering 55%
06:52:48 Buffering 58%
06:52:48 Buffering 61%
06:52:48 Buffering 68%
06:52:48 Buffering 75%
06:52:48 Buffering 78%
06:52:48 Buffering 81%
06:52:48 Buffering 88%
06:52:48 Buffering 91%
06:52:48 Buffering 95%
06:52:48 Buffering 98%
06:52:48 buffer deadlock prevented
06:52:48 Stream buffering done (1083 ms in 956 ms)
06:52:48 Decoder wait done in 0 ms
06:53:38 no data received in 10s, eof ?
06:53:38 EOF reached
06:53:38 waiting decoder fifos to empty
06:53:38 killing decoder fourcc `h264'
06:53:38 removing module "avcodec"
06:53:38 removing module "h264"
06:53:38 removing module "live555"
06:53:38 Program doesn't contain anymore ES
edit: Any tips to format this?