[SOLVED] Stopping a RTSP stream make VLC hangs

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Maloupi
Blank Cone
Blank Cone
Posts: 25
Joined: 06 Apr 2011 14:34
VLC version: 2.1.0-git
Operating System: Windows / Linux
Location: Lyon (France)

[SOLVED] Stopping a RTSP stream make VLC hangs

Postby Maloupi » 06 Apr 2011 14:57

Hi.

When i stop a rtsp video stream, the video freeze and i cannot close VLC. I have to kill it.
I tried the nightybuild of tonight (06/04/2011) but it is the same as in 1.1.8.
(Win 7 x64)


here is the debug log :

Code: Select all

main debug: adding item `rtsp://82.246.69.68:1501/mpeg4/media.amp' ( rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp ) qt4 debug: Adding a new MRL to recent ones: rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp main debug: rebuilding array of current - root Liste de lecture main debug: rebuild done - 1 items, index -1 main debug: processing request item rtsp://82.246.69.68:1501/mpeg4/media.amp node null skip 0 main debug: resyncing on rtsp://82.246.69.68:1501/mpeg4/media.amp main debug: rtsp://82.246.69.68:1501/mpeg4/media.amp is at 0 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'rtsp://82.246.69.68:1501/mpeg4/media.amp' main debug: no fetch required for (null) (art currently (null)) main debug: thread (input) created at priority 1 (input/input.c:220) main debug: thread started main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\Users\Damien\AppData\Local\Temp' main debug: `rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp' gives access `rtsp' demux `' path `root:test@82.246.69.68:1501/mpeg4/media.amp' main debug: creating demux: access='rtsp' demux='' path='root:test@82.246.69.68:1501/mpeg4/media.amp' main debug: looking for access_demux module: 1 candidate qt4 debug: IM: Setting an input live555 debug: RTP subsession 'video/MP4V-ES' main debug: selecting program id=0 live555 debug: setup start: 0.000000 stop:0.000000 live555 debug: We have a timeout of 60 seconds live555 debug: spawned timeout thread live555 debug: play start: 0.000000 stop:0.000000 main debug: using access_demux module "live555" main debug: TIMER module_need() : 380.000 ms - Total 380.000 ms / 1 intvls (Avg 380.000 ms) main debug: looking for decoder module: 34 candidates avcodec debug: libavcodec initialized (interface 0x346c00) avcodec debug: trying to use direct rendering avcodec debug: ffmpeg codec (MPEG-4 Video) started main debug: using decoder module "avcodec" main debug: TIMER module_need() : 15.000 ms - Total 15.000 ms / 1 intvls (Avg 15.000 ms) main debug: thread (decoder) created at priority 0 (input/decoder.c:301) main debug: thread started main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Users\Damien\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in D:\temp\vlc-1.1.9-git-win32\vlc-1.1.9-git\lua\meta\reader lua debug: Trying Lua playlist script D:\temp\vlc-1.1.9-git-win32\vlc-1.1.9-git\lua\meta\reader\filename.lua lua debug: Trying Lua playlist script D:\temp\vlc-1.1.9-git-win32\vlc-1.1.9-git\lua\meta\reader\filename.luac main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: `rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp' successfully opened live555 warning: no data received in 10s. Switching to TCP main debug: thread times: real 0m10.742665s, kernel 0m0.000000s, user 0m0.000000s avcodec debug: ffmpeg codec (MPEG-4 Video) stopped main debug: removing module "avcodec" main debug: killing decoder fourcc `mp4v', 0 PES in FIFO main debug: Program doesn't contain anymore ES live555 debug: RTP subsession 'video/MP4V-ES' main debug: looking for decoder module: 34 candidates avcodec debug: libavcodec already initialized avcodec debug: trying to use direct rendering avcodec debug: ffmpeg codec (MPEG-4 Video) started main debug: using decoder module "avcodec" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: thread started main debug: thread (decoder) created at priority 0 (input/decoder.c:301) live555 debug: setup start: 0.000000 stop:0.000000 live555 debug: play start: 0.000000 stop:0.000000 main debug: Buffering 0% main debug: no usable vout present, spawning one main debug: looking for text renderer module: 2 candidates freetype debug: Building font databases. freetype debug: Took 8000 microseconds freetype debug: Using Arial as font from file C:/Windows/fonts/arial.ttf freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: TIMER module_need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) main debug: looking for video filter2 module: 18 candidates swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) main debug: looking for video filter2 module: 18 candidates yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) main debug: window size: 640x480 main debug: Deinterlacing available main debug: deinterlace 0, mode blend, is_needed 0 main debug: looking for video output module: 1 candidate vout_wrapper debug: Opening vout display wrapper main debug: looking for vout display module: 8 candidates direct3d debug: creating Vout EventThread direct3d debug: DirectXCreateWindow main debug: looking for vout window hwnd module: 3 candidates qt4 debug: requesting video... main debug: Buffering 5% main debug: Buffering 13% qt4 debug: Video was requested 0, 0 qt4 debug: embedded video ready (handle 00190786) main debug: using vout window hwnd module "qt4" main debug: TIMER module_need() : 17.000 ms - Total 17.000 ms / 1 intvls (Avg 17.000 ms) direct3d debug: created video sub-window direct3d debug: Vout EventThread running direct3d debug: disabling screen saver main debug: VoutDisplayEvent 'resize' 656x518 window direct3d debug: DirectXUpdateRects image_dst_clipped coords: 0,0,656,492 direct3d debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 direct3d warning: trying surface pixel format: YV12 direct3d debug: selected surface pixel format is YV12 direct3d debug: Direct3D scene created successfully direct3d debug: Direct3D device adapter successfully initialized main debug: using vout display module "direct3d" main debug: TIMER module_need() : 43.000 ms - Total 43.000 ms / 1 intvls (Avg 43.000 ms) main debug: using video output module "vout_wrapper" main debug: TIMER module_need() : 43.000 ms - Total 43.000 ms / 1 intvls (Avg 43.000 ms) main debug: got 1 direct buffer(s) main debug: pic render sz 640x480, of (0,0), vsz 640x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: pic in sz 640x480, of (0,0), vsz 640x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: pic out sz 640x480, of (0,0), vsz 640x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: direct render, mapping render pictures 0-23 to system pictures 1-24 main debug: VoutDisplayEvent 'resize' 640x480 window direct3d debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 direct3d debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 avcodec debug: using direct rendering main debug: End of video preroll main debug: Received first picture main debug: Post-processing available main warning: vlc_object_find_name(postproc) is not safe! main debug: Buffering 25% main debug: Buffering 38% main debug: Buffering 50% main debug: Buffering 61% main debug: Buffering 72% main debug: Buffering 86% main debug: Buffering 97% freetype debug: using fontsize: 30 main debug: looking for video blending module: 1 candidate blend debug: chroma: YUVA -> I420 main debug: using video blending module "blend" main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: Stream buffering done (1300 ms in 1123 ms) main debug: Decoder buffering done in 0 ms main debug: auto hidding mouse live555 debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() main debug: ES_OUT_RESET_PCR called main warning: early picture skipped main debug: Buffering 0% main debug: End of video preroll main debug: Received first picture main debug: Buffering 13% main debug: Buffering 25% main debug: Buffering 36% main debug: Buffering 50% main debug: Buffering 61% main debug: Buffering 72% main debug: Buffering 83% main debug: Buffering 97% main debug: Stream buffering done (1300 ms in 1310 ms) main debug: Decoder buffering done in 0 ms main debug: incoming request - stopping current input main debug: dying input main debug: control type=0 main debug: control: stopping input main debug: thread times: real 0m17.830273s, kernel 0m0.031200s, user 0m0.078000s avcodec debug: ffmpeg codec (MPEG-4 Video) stopped main debug: removing module "avcodec" main debug: killing decoder fourcc `mp4v', 0 PES in FIFO main debug: [0] 0 0 main debug: [1] 0 0 main debug: [2] 0 0 main debug: [3] 0 0 main debug: [4] 0 0 main debug: [5] 0 0 main debug: [6] 0 0 main debug: [7] 0 0 main debug: [8] 0 0 main debug: [9] 0 0 main debug: [10] 0 0 main debug: [11] 4 0 main debug: [12] 4 0 main debug: [13] 2 0 main debug: [14] 2 0 main debug: [15] 2 0 main debug: [16] 2 0 main debug: [17] 4 0 main debug: [18] 4 0 main debug: [19] 2 0 main debug: [20] 2 0 main debug: [21] 2 0 main debug: [22] 2 0 main debug: [23] 0 0 main debug: saving a free vout main debug: dying input main debug: auto hidding mouse main debug: deactivating the playlist main debug: Deactivate main debug: dying input main debug: auto hidding mouse
You can try the stream at this address :

Code: Select all

rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp
Last edited by Maloupi on 07 Apr 2011 14:45, edited 1 time in total.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Stopping a RTSP stream make VLC hangs

Postby Sébastien Escudier » 06 Apr 2011 15:05

I tested your stream, but I do not receive any data, probably firewall issue...

Could you reproduce the freeze with vlc 1.2, and full vlc logs, including rtsp communication
To do it, please run vlc with -vv in a console (on windows, use mingw rxvt)

Maloupi
Blank Cone
Blank Cone
Posts: 25
Joined: 06 Apr 2011 14:34
VLC version: 2.1.0-git
Operating System: Windows / Linux
Location: Lyon (France)

Re: Stopping a RTSP stream make VLC hangs

Postby Maloupi » 06 Apr 2011 16:24

Thank you, here is what i get with rxvt :

Code: Select all

[00731428] main libvlc debug: VLC media player - 1.1.9-git The Luggage [00731428] main libvlc debug: Copyright © 1996-2011 the VideoLAN team [00731428] main libvlc debug: revision 1.1.8-27-g3f47a0d [00731428] main libvlc debug: configured with ././configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-dirac' '--enable-mkv' '--enable-taglib' '--enable-debug' '--enable-projectm' '--without-contrib' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--enable-dvdread' '--with-dvdnav-config-path=/usr/win32/bin' '--enable-shout' '--enable-goom' '--enable-caca' '--enable-portaudio' '--enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--enable-qt4' '--enable-mozilla' '--with-mozilla-sdk-path=/usr/win32/gecko-sdk' '--enable-activex' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--disable-dvb' '--disable-sqlite' '--disable-upnp' '--enable-peflags' 'build_alias=i386-linux' 'host_alias=i586-mingw32msvc' 'CC=i586-mingw32msvc-gcc' 'LDFLAGS=-L/usr/win32/lib' 'CPPFLAGS=-I/usr/win32/include -I/usr/win32/include/ebml' 'CXX=i586-mingw32msvc-g++' 'PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig' [00731428] main libvlc debug: translation test: code is "fr" [00731428] main libvlc debug: opening config file (C:\Users\Damien\AppData\Roaming\vlc\vlcrc) [00731428] main libvlc debug: loading config for module "main" [00731428] main libvlc debug: checking plugin modules [00731428] main libvlc debug: loading plugins cache file C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\plugins\plugins-04041e-fe8.dat [00731428] main libvlc debug: recursively browsing `C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\plugins' [00731428] main libvlc debug: saving plugins cache C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\plugins\plugins-04041e-fe8.dat [00731428] main libvlc debug: module bank initialized (372 modules) [00731428] main libvlc debug: opening config file (C:\Users\Damien\AppData\Roaming\vlc\vlcrc) [00731428] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [00731428] main libvlc debug: looking for memcpy module: 4 candidates [00731428] main libvlc debug: using memcpy module "memcpymmxext" [0238c9c0] main input debug: Creating an input for 'Bibliothèque' [0238c9c0] main input debug: Input is a meta file: disabling unneeded options [0238c9c0] main input debug: using timeshift granularity of 50 MiB [0238c9c0] main input debug: using timeshift path 'C:\Users\Damien\AppData\Local\Temp' [0238c9c0] main input debug: `file/xspf-open:///C:/Users/Damien/AppData/Roaming/vlc/ml.xspf' gives access `file' demux `xspf-open' path `C:\Users\Damien\AppData\Roaming\vlc\ml.xspf' [0238c9c0] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Users\Damien\AppData\Roaming\vlc\ml.xspf' [023cb628] main demux debug: looking for access_demux module: 2 candidates [023cb628] main demux debug: no access_demux module matching "file" could be loaded [023cb628] main demux debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [0238c9c0] main input debug: creating access 'file' path='C:\Users\Damien\AppData\Roaming\vlc\ml.xspf' [023a3c80] main access debug: looking for access module: 2 candidates [023a3c80] filesystem access debug: opening file `C:\Users\Damien\AppData\Roaming\vlc\ml.xspf' [023a3c80] main access debug: using access module "filesystem" [023a3c80] main access debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [023cfeb8] main stream debug: Using AStream*Stream [023cfeb8] main stream debug: pre buffering [023cfeb8] main stream debug: received first data after 0 ms [023cfeb8] main stream debug: pre-buffering done 304 bytes in 0s - 296875 KiB/s [023cff78] main stream debug: looking for stream_filter module: 2 candidates [023cff78] main stream debug: no stream_filter module matching "any" could be loaded [023cff78] main stream debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [023cff78] main stream debug: looking for stream_filter module: 1 candidate [023cff78] main stream debug: using stream_filter module "stream_filter_record" [023cff78] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0238c9c0] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Users\Damien\AppData\Roaming\vlc\ml.xspf' [023a5ec0] main demux debug: looking for demux module: 1 candidate [023a5ec0] playlist demux debug: using XSPF playlist reader [023a5ec0] main demux debug: using demux module "playlist" [023a5ec0] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [02367ee0] main demux meta debug: looking for meta reader module: 2 candidates [02367ee0] lua demux meta debug: Trying Lua scripts in C:\Users\Damien\AppData\Roaming\vlc\lua\meta\reader [02367ee0] lua demux meta debug: Trying Lua scripts in C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\meta\reader [02367ee0] lua demux meta debug: Trying Lua playlist script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\meta\reader\filename.lua [02367ee0] lua demux meta debug: Trying Lua playlist script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\meta\reader\filename.luac [02367ee0] main demux meta debug: no meta reader module matching "any" could be loaded [02367ee0] main demux meta debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) [0238c9c0] main input debug: `file/xspf-open:///C:/Users/Damien/AppData/Roaming/vlc/ml.xspf' successfully opened [02367ee0] main xml debug: looking for xml module: 2 candidates [02367ee0] main xml debug: using xml module "xml" [02367ee0] main xml debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [023a5ec0] playlist demux debug: parsed 0 tracks successfully [02367ee0] main xml debug: removing module "xml" [0238c9c0] main input debug: EOF reached [023a5ec0] main demux debug: removing module "playlist" [023cff78] main stream debug: removing module "stream_filter_record" [023a3c80] main access debug: removing module "filesystem" [0238c9c0] main input debug: Destroying the input for 'Bibliothèque' [0238c9c0] main input debug: TIMER input launching for 'Bibliothèque' : 7.000 ms - Total 7.000 ms / 1 intvls (Avg 7.000 ms) [022f6840] main interface debug: looking for interface module: 1 candidate [022f6840] main interface debug: using interface module "hotkeys" [022f6840] main interface debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [023a8a50] main playlist debug: Activated [023a8a50] main playlist debug: rebuilding array of current - root Liste de lecture [023a8a50] main playlist debug: rebuild done - 0 items, index -1 [023a8a50] main playlist debug: adding item `rtsp://82.246.69.68:1501/mpeg4/media.amp' ( rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp ) [023cb6d8] main interface debug: looking for interface module: 1 candidate [023cb6d8] main interface debug: using interface module "globalhotkeys" [023cb6d8] main interface debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) [00731428] main libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface. [023cb788] main interface debug: looking for interface module: 4 candidates [034a6bf0] main generic debug: looking for extension module: 1 candidate [034a6bf0] lua generic debug: Opening EXPERIMENTAL Lua Extension module [034a6bf0] lua generic debug: Trying Lua scripts in C:\Users\Damien\AppData\Roaming\vlc\lua\extensions [034a6bf0] lua generic debug: Trying Lua scripts in C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions [034a6bf0] lua generic debug: Trying Lua playlist script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\allocine-fr.lua [034a6bf0] lua generic debug: Scanning Lua script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\allocine-fr.lua [034a6bf0] lua generic debug: Script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\allocine-fr.lua has the following capability flags: 0xc [034a6bf0] lua generic debug: Trying Lua playlist script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\allocine-fr.luac [034a6bf0] lua generic debug: Scanning Lua script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\allocine-fr.luac [034a6bf0] lua generic debug: Script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\allocine-fr.luac has the following capability flags: 0xc [034a6bf0] lua generic debug: Trying Lua playlist script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\imdb.lua [034a6bf0] lua generic debug: Scanning Lua script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\imdb.lua [034a6bf0] lua generic debug: Script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\extensions\imdb.lua has the following capability flags: 0x4 [034a6bf0] main generic debug: using extension module "lua" [034a6bf0] main generic debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) [023cb788] main interface debug: using interface module "qt4" [023cb788] main interface debug: TIMER module_need() : 63.000 ms - Total 63.000 ms / 1 intvls (Avg 63.000 ms) [023a8a50] main playlist debug: rebuilding array of current - root Liste de lecture [023a8a50] main playlist debug: rebuild done - 1 items, index -1 [023a8a50] main playlist debug: processing request item null node Liste de lecture skip 0 [023a8a50] main playlist debug: starting new item [023a8a50] main playlist debug: creating new input thread [0238d210] main input debug: Creating an input for 'rtsp://82.246.69.68:1501/mpeg4/media.amp' [0238d210] main input debug: thread (input) created at priority 1 (input/input.c:220) [0238d210] main input debug: thread started [0238d210] main input debug: using timeshift granularity of 50 MiB [0238d210] main input debug: using timeshift path 'C:\Users\Damien\AppData\Local\Temp' [0238d210] main input debug: `rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp' gives access `rtsp' demux `' path `root:test@82.246.69.68:1501/mpeg4/media.amp' [0238d210] main input debug: creating demux: access='rtsp' demux='' path='root:test@82.246.69.68:1501/mpeg4/media.amp' [034d62b0] main demux debug: looking for access_demux module: 1 candidate Opening connection to 82.246.69.68, port 1501... [023cb788] qt4 interface debug: IM: Setting an input ...remote connection opened Sending request: OPTIONS rtsp://82.246.69.68:1501/mpeg4/media.amp RTSP/1.0 CSeq: 2 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Received 106 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN Sending request: DESCRIBE rtsp://82.246.69.68:1501/mpeg4/media.amp RTSP/1.0 CSeq: 3 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Accept: application/sdp Received 73 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 401 Unauthorized CSeq: 3 WWW-Authenticate: Basic realm="/" Resending... Sending request: DESCRIBE rtsp://82.246.69.68:1501/mpeg4/media.amp RTSP/1.0 CSeq: 4 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Accept: application/sdp Received 834 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 200 OK CSeq: 4 Content-Base: rtsp://192.168.0.90:554/mpeg4/media.amp/ Content-Type: application/sdp Content-Length: 698 v=0 o=- 178984866522200 178984866522213 IN IP4 192.168.0.90 s=Media Presentation e=NONE c=IN IP4 0.0.0.0 b=AS:8000 t=0 0 a=control:* a=range:npt=now- a=mpeg4-iod: "data:application/mpeg4-iod;base64,AoDUAE8BAf/1AQOAbwABQFBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBUjBCR3dVZkF4Y0F5U1FBWlFRTklCRUVrK0FBZWhJQUFIb1NBQVlCQkE9PQQNAQUABAAAAAAAAAAAAAYJAQAAAAAAAAAAAzoAAkA2ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTWVFTSVVFVUZQd0E9BBICDQAAAgAAAAAAAAAABQMAAEAGCQEAAAAAAAAAAA==" m=video 0 RTP/AVP 96 b=AS:8000 a=framerate:7.0 a=control:trackID=1 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=245; config=000001B0F5000001B509000001000000012008D48D88032514043C14440F a=mpeg4-esid:201 [034d62b0] live555 demux debug: RTP subsession 'video/MP4V-ES' Sending request: SETUP rtsp://192.168.0.90:554/mpeg4/media.amp/trackID=1 RTSP/1.0 CSeq: 5 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Transport: RTP/AVP;unicast;client_port=53554-53555 Received 162 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 5 Session: 0160827632;timeout=60 Transport: RTP/AVP;unicast;client_port=53554-53555;server_port=50054-50055;ssrc=7607B177;mode="PLAY" [0238d210] main input debug: selecting program id=0 [034d62b0] live555 demux debug: setup start: 0.000000 stop:0.000000 Sending request: PLAY rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 6 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Session: 0160827632 Range: npt=0.000- Received 120 new bytes of response data. Received a complete PLAY response: RTSP/1.0 200 OK CSeq: 6 Session: 0160827632 Range: npt=now- RTP-Info: url=trackID=1;seq=17368;rtptime=2990133061 [034d62b0] live555 demux debug: We have a timeout of 60 seconds [034d62b0] live555 demux debug: spawned timeout thread [034d62b0] live555 demux debug: play start: 0.000000 stop:0.000000 [034d62b0] main demux debug: using access_demux module "live555" [034d62b0] main demux debug: TIMER module_need() : 377.000 ms - Total 377.000 ms / 1 intvls (Avg 377.000 ms) [023b9330] main decoder debug: looking for decoder module: 34 candidates [023b9330] avcodec decoder debug: libavcodec initialized (interface 0x346c00) [023b9330] avcodec decoder debug: trying to use direct rendering [023b9330] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) started [023b9330] main decoder debug: using decoder module "avcodec" [023b9330] main decoder debug: TIMER module_need() : 17.000 ms - Total 17.000 ms / 1 intvls (Avg 17.000 ms) [023b9330] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [023b9330] main decoder debug: thread started [02368378] main demux meta debug: looking for meta reader module: 2 candidates [02368378] lua demux meta debug: Trying Lua scripts in C:\Users\Damien\AppData\Roaming\vlc\lua\meta\reader [02368378] lua demux meta debug: Trying Lua scripts in C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\meta\reader [02368378] lua demux meta debug: Trying Lua playlist script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\meta\reader\filename.lua [02368378] lua demux meta debug: Trying Lua playlist script C:\MinGW\msys\1.0\home\Damien\vlc-1.1.9-git\lua\meta\reader\filename.luac [02368378] main demux meta debug: no meta reader module matching "any" could be loaded [02368378] main demux meta debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) [0238d210] main input debug: `rtsp://root:test@82.246.69.68:1501/mpeg4/media.amp' successfully opened Sending request: GET_PARAMETER rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 7 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Session: 0160827632 Received 49 new bytes of response data. Received a complete GET_PARAMETER response: RTSP/1.0 200 OK CSeq: 7 Session: 0160827632 [034d62b0] live555 demux warning: no data received in 10s. Switching to TCP Sending request: TEARDOWN rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 8 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Session: 0160827632 Received 49 new bytes of response data. Received a complete TEARDOWN response: RTSP/1.0 200 OK CSeq: 8 Session: 0160827632 [023b9330] main decoder debug: thread times: real 0m10.643851s, kernel 0m0.000000s, user 0m0.000000s [023b9330] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) stopped [023b9330] main decoder debug: removing module "avcodec" [023b9330] main decoder debug: killing decoder fourcc `mp4v', 0 PES in FIFO [0238d210] main input debug: Program doesn't contain anymore ES Opening connection to 82.246.69.68, port 1501... ...remote connection opened Sending request: OPTIONS rtsp://82.246.69.68:1501/mpeg4/media.amp RTSP/1.0 CSeq: 2 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Received 106 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN Sending request: DESCRIBE rtsp://82.246.69.68:1501/mpeg4/media.amp RTSP/1.0 CSeq: 3 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Accept: application/sdp Received 73 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 401 Unauthorized CSeq: 3 WWW-Authenticate: Basic realm="/" Resending... Sending request: DESCRIBE rtsp://82.246.69.68:1501/mpeg4/media.amp RTSP/1.0 CSeq: 4 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Accept: application/sdp Received 834 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 200 OK CSeq: 4 Content-Base: rtsp://192.168.0.90:554/mpeg4/media.amp/ Content-Type: application/sdp Content-Length: 698 v=0 o=- 178984877557453 178984877557466 IN IP4 192.168.0.90 s=Media Presentation e=NONE c=IN IP4 0.0.0.0 b=AS:8000 t=0 0 a=control:* a=range:npt=now- a=mpeg4-iod: "data:application/mpeg4-iod;base64,AoDUAE8BAf/1AQOAbwABQFBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBUjBCR3dVZkF4Y0F5U1FBWlFRTklCRUVrK0FBZWhJQUFIb1NBQVlCQkE9PQQNAQUABAAAAAAAAAAAAAYJAQAAAAAAAAAAAzoAAkA2ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTWVFTSVVFVUZQd0E9BBICDQAAAgAAAAAAAAAABQMAAEAGCQEAAAAAAAAAAA==" m=video 0 RTP/AVP 96 b=AS:8000 a=framerate:7.0 a=control:trackID=1 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=245; config=000001B0F5000001B509000001000000012008D48D88032514043C14440F a=mpeg4-esid:201 [034d62b0] live555 demux debug: RTP subsession 'video/MP4V-ES' Sending request: SETUP rtsp://192.168.0.90:554/mpeg4/media.amp/trackID=1 RTSP/1.0 CSeq: 5 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Received 122 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 5 Session: 1191563494;timeout=60 Transport: RTP/AVP/TCP;unicast;interleaved=38-39;mode="PLAY" [053bff58] main decoder debug: looking for decoder module: 34 candidates [053bff58] avcodec decoder debug: libavcodec already initialized [053bff58] avcodec decoder debug: trying to use direct rendering [053bff58] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) started [053bff58] main decoder debug: using decoder module "avcodec" [053bff58] main decoder debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [053bff58] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [053bff58] main decoder debug: thread started [034d62b0] live555 demux debug: setup start: 0.000000 stop:0.000000 Sending request: PLAY rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 6 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Session: 1191563494 Range: npt=0.000- Received a complete PLAY response: RTSP/1.0 200 OK CSeq: 6 Session: 1191563494 Range: npt=now- RTP-Info: url=trackID=1;seq=21037;rtptime=1719326815 [034d62b0] live555 demux debug: play start: 0.000000 stop:0.000000 [0238d210] main input debug: Buffering 0% [0238d210] main input debug: Buffering 11% [0238d210] main input debug: no usable vout present, spawning one [05398480] main spu text debug: looking for text renderer module: 2 candidates [05398480] freetype spu text debug: Building font databases. [05398480] freetype spu text debug: Took 3000 microseconds [05398480] freetype spu text debug: Using Arial as font from file C:/Windows/fonts/arial.ttf [05398480] freetype spu text debug: using fontsize: 2 [05398480] main spu text debug: using text renderer module "freetype" [05398480] main spu text debug: TIMER module_need() : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms) [0545d8d0] main scale debug: looking for video filter2 module: 18 candidates [0545d8d0] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) [0545d8d0] main scale debug: using video filter2 module "swscale" [0545d8d0] main scale debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) [0545de50] main scale debug: looking for video filter2 module: 18 candidates [0545de50] yuvp scale debug: YUVP to YUVA converter [0545de50] main scale debug: using video filter2 module "yuvp" [0545de50] main scale debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) [05459bf0] main video output debug: window size: 640x480 [05459bf0] main video output debug: Deinterlacing available [05459bf0] main video output debug: deinterlace 0, mode blend, is_needed 0 [05459bf0] main video output debug: looking for video output module: 1 candidate [05459bf0] vout_wrapper video output debug: Opening vout display wrapper [035bce58] main generic debug: looking for vout display module: 8 candidates [035bce58] direct3d generic debug: creating Vout EventThread [035bce58] direct3d generic debug: DirectXCreateWindow [023cba48] main window debug: looking for vout window hwnd module: 3 candidates [023cba48] qt4 window debug: requesting video... [023cb788] qt4 interface debug: Video was requested 0, 0 [023cb788] qt4 interface debug: embedded video ready (handle 000d081e) [023cba48] main window debug: using vout window hwnd module "qt4" [023cba48] main window debug: TIMER module_need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) [035bce58] direct3d generic debug: created video sub-window [035bce58] direct3d generic debug: Vout EventThread running [035bce58] direct3d generic debug: disabling screen saver [035bce58] main generic debug: VoutDisplayEvent 'resize' 656x518 window [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,656,492 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic warning: trying surface pixel format: YV12 [035bce58] direct3d generic debug: selected surface pixel format is YV12 [035bce58] direct3d generic debug: Direct3D scene created successfully [035bce58] direct3d generic debug: Direct3D device adapter successfully initialized [035bce58] main generic debug: using vout display module "direct3d" [035bce58] main generic debug: TIMER module_need() : 45.000 ms - Total 45.000 ms / 1 intvls (Avg 45.000 ms) [05459bf0] main video output debug: using video output module "vout_wrapper" [05459bf0] main video output debug: TIMER module_need() : 46.000 ms - Total 46.000 ms / 1 intvls (Avg 46.000 ms) [05459bf0] main video output debug: got 1 direct buffer(s) [05459bf0] main video output debug: pic render sz 640x480, of (0,0), vsz 640x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 [05459bf0] main video output debug: pic in sz 640x480, of (0,0), vsz 640x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 [05459bf0] main video output debug: pic out sz 640x480, of (0,0), vsz 640x480, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 [05459bf0] main video output debug: direct render, mapping render pictures 0-23 to system pictures 1-24 [035bce58] main generic debug: VoutDisplayEvent 'resize' 640x480 window [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [053bff58] avcodec decoder debug: using direct rendering [053bff58] main decoder debug: End of video preroll [053bff58] main decoder debug: Received first picture [05459bf0] main video output debug: Post-processing available [05459bf0] main video output warning: vlc_object_find_name(postproc) is not safe! [0238d210] main input debug: Buffering 22% [0238d210] main input debug: Buffering 36% [0238d210] main input debug: Buffering 47% [0238d210] main input debug: Buffering 58% [0238d210] main input debug: Buffering 69% [0238d210] main input debug: Buffering 83% [05398480] freetype spu text debug: using fontsize: 30 [03564d88] main blend debug: looking for video blending module: 1 candidate [03564d88] blend blend debug: chroma: YUVA -> I420 [03564d88] main blend debug: using video blending module "blend" [03564d88] main blend debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [0238d210] main input debug: Buffering 94% [0238d210] main input debug: Stream buffering done (1266 ms in 1078 ms) [0238d210] main input debug: Decoder buffering done in 0 ms [035bce58] main generic debug: auto hidding mouse [034d62b0] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0238d210] main input debug: ES_OUT_RESET_PCR called warning: first frame is no keyframe [0238d210] main input debug: Buffering 0% [053bff58] main decoder debug: End of video preroll [053bff58] main decoder debug: Received first picture [0238d210] main input debug: Buffering 11% [0238d210] main input debug: Buffering 25% [0238d210] main input debug: Buffering 36% [0238d210] main input debug: Buffering 47% [0238d210] main input debug: Buffering 61% [0238d210] main input debug: Buffering 72% [0238d210] main input debug: Buffering 83% [0238d210] main input debug: Buffering 94% [0238d210] main input debug: Stream buffering done (1300 ms in 1306 ms) [0238d210] main input debug: Decoder buffering done in 0 ms [035bce58] main generic debug: auto hidding mouse [035bce58] main generic debug: auto hidding mouse [023a8a50] main playlist debug: incoming request - stopping current input [023a8a50] main playlist debug: dying input [0238d210] main input debug: control type=0 [0238d210] main input debug: control: stopping input [023a8a50] main playlist debug: dying input [053bff58] main decoder debug: thread times: real 0m30.412862s, kernel 0m0.000000s, user 0m0.109200s [053bff58] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) stopped [053bff58] main decoder debug: removing module "avcodec" [053bff58] main decoder debug: killing decoder fourcc `mp4v', 0 PES in FIFO [05459bf0] main video output debug: [0] 0 0 [05459bf0] main video output debug: [1] 0 0 [05459bf0] main video output debug: [2] 0 0 [05459bf0] main video output debug: [3] 0 0 [05459bf0] main video output debug: [4] 0 0 [05459bf0] main video output debug: [5] 0 0 [05459bf0] main video output debug: [6] 0 0 [05459bf0] main video output debug: [7] 0 0 [05459bf0] main video output debug: [8] 0 0 [05459bf0] main video output debug: [9] 0 0 [05459bf0] main video output debug: [10] 0 0 [05459bf0] main video output debug: [11] 2 0 [05459bf0] main video output debug: [12] 2 0 [05459bf0] main video output debug: [13] 2 0 [05459bf0] main video output debug: [14] 4 0 [05459bf0] main video output debug: [15] 4 0 [05459bf0] main video output debug: [16] 2 0 [05459bf0] main video output debug: [17] 2 0 [05459bf0] main video output debug: [18] 2 0 [05459bf0] main video output debug: [19] 2 0 [05459bf0] main video output debug: [20] 2 0 [05459bf0] main video output debug: [21] 0 0 [05459bf0] main video output debug: [22] 0 0 [05459bf0] main video output debug: [23] 0 0 [0238d210] main input debug: saving a free vout Sending request: TEARDOWN rtsp://192.168.0.90:554/mpeg4/media.amp/ RTSP/1.0 CSeq: 7 Authorization: Basic cm9vdDp0ZXN0 User-Agent: LibVLC/1.1.9-git (LIVE555 Streaming Media v2011.01.06) Session: 1191563494 [035bce58] main generic debug: auto hidding mouse [035bce58] main generic debug: auto hidding mouse [035bce58] main generic debug: auto hidding mouse [035bce58] main generic debug: auto hidding mouse [00731428] main libvlc debug: deactivating the playlist [023a8a50] main playlist debug: Deactivate [023a8a50] main playlist debug: dying input [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_dst_clipped coords: 0,0,640,480 [035bce58] direct3d generic debug: DirectXUpdateRects image_src_clipped coords: 0,0,640,480 [035bce58] main generic debug: auto hidding mouse [035bce58] main generic debug: auto hidding mouse
In windows task manager i can see the memories still growing even after the stop button or the close button were pushed
At the end, i killed vlc
Last edited by Maloupi on 06 Apr 2011 16:31, edited 1 time in total.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Stopping a RTSP stream make VLC hangs

Postby Sébastien Escudier » 06 Apr 2011 16:29

ok...
looks like your camera does not respond to the TEARDOWN request, that's why vlc 1.1 hangs. (you tried 1.1.9)

It should work better with vlc 1.2, you can find it in the nightly builds.

Maloupi
Blank Cone
Blank Cone
Posts: 25
Joined: 06 Apr 2011 14:34
VLC version: 2.1.0-git
Operating System: Windows / Linux
Location: Lyon (France)

Re: Stopping a RTSP stream make VLC hangs

Postby Maloupi » 06 Apr 2011 16:43

I tried the last nighty build by the date, i didn't see there was the 1.2 trunk.
It works with 1.2.

Thank you very much, you were very quick !


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 82 guests