VLC 1.1.11 freezes while attempting to read an RTSP stream
Posted: 24 Nov 2011 16:39
Hi everyone,
I've been struggling for several days with a problem. In fact while attemting to read an rtsp live feed from vlc (1.1.11) , via the standalone application or via vlcj in a java swing app, the viewer freezes or is more like in an active loop waiting for data. My guess is those data never come, but instead of stopping the loop (invoking an EOF, a no stream error or a timeout-like argument), vlc keeps waiting, using 100% of one of my computer's cores. When I check the logs, I get the entries below
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
qt4 warning: Input option: rtsp-caching=1200
main debug: adding item ' rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
main debug: rebuilding array of current - root Liste de lecture
main debug: rebuild done - 1 items, index -1
main debug: processing request item rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$ node null skip 0
main debug: resyncing on rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$
main debug: rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$ is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
qt4 debug: Adding a new MRL to recent ones:
main debug: thread (input) created at priority 1 (../.././src/input/input.c:220)
main debug: thread started
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path 'C:\Users\Ariel\AppData\Local\Temp'
main debug: `rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$' gives access `rtsp' demux `' path `192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
main debug: creating demux: access='rtsp' demux='' path='192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
main debug: looking for access_demux module: 1 candidate
qt4 debug: IM: Setting an input
live555 debug: RTP subsession 'audio/MPEG4-GENERIC'
main debug: selecting program id=0
live555 debug: RTP subsession 'video/H264'
live555 debug: setup start: 0.000000 stop:0.000000
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
And when I push the stop button, nothing happens. One core is still at 100% busy with vlc which seems to be still waiting for data to come. I get the logs below :
----------------------------------------------------------------------
main debug: incoming request - stopping current input
main debug: dying input
----------------------------------------------------------------------
Anyway i'm out of ideas, and would be happy someone could explain me what's really going on, and how to get vlc out of that state without having to shut it down from the task manager (and thus killing the wrapping app as well in the case of a java swing app).
I tried using several timeout options like rtsp-session-timeout, rtp-timeout, netsync-timeout, mms-timeout, ipv4-timeout, sap-timeout, but none of them seems to be working in this particular case.
Thanks
Ariel.
I've been struggling for several days with a problem. In fact while attemting to read an rtsp live feed from vlc (1.1.11) , via the standalone application or via vlcj in a java swing app, the viewer freezes or is more like in an active loop waiting for data. My guess is those data never come, but instead of stopping the loop (invoking an EOF, a no stream error or a timeout-like argument), vlc keeps waiting, using 100% of one of my computer's cores. When I check the logs, I get the entries below
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
qt4 warning: Input option: rtsp-caching=1200
main debug: adding item ' rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
main debug: rebuilding array of current - root Liste de lecture
main debug: rebuild done - 1 items, index -1
main debug: processing request item rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$ node null skip 0
main debug: resyncing on rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$
main debug: rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$ is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
qt4 debug: Adding a new MRL to recent ones:
main debug: thread (input) created at priority 1 (../.././src/input/input.c:220)
main debug: thread started
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path 'C:\Users\Ariel\AppData\Local\Temp'
main debug: `rtsp://192.168.1.10:1935/LiveRecord/0080F0B8EC36$$' gives access `rtsp' demux `' path `192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
main debug: creating demux: access='rtsp' demux='' path='192.168.1.10:1935/LiveRecord/0080F0B8EC36$$'
main debug: looking for access_demux module: 1 candidate
qt4 debug: IM: Setting an input
live555 debug: RTP subsession 'audio/MPEG4-GENERIC'
main debug: selecting program id=0
live555 debug: RTP subsession 'video/H264'
live555 debug: setup start: 0.000000 stop:0.000000
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
And when I push the stop button, nothing happens. One core is still at 100% busy with vlc which seems to be still waiting for data to come. I get the logs below :
----------------------------------------------------------------------
main debug: incoming request - stopping current input
main debug: dying input
----------------------------------------------------------------------
Anyway i'm out of ideas, and would be happy someone could explain me what's really going on, and how to get vlc out of that state without having to shut it down from the task manager (and thus killing the wrapping app as well in the case of a java swing app).
I tried using several timeout options like rtsp-session-timeout, rtp-timeout, netsync-timeout, mms-timeout, ipv4-timeout, sap-timeout, but none of them seems to be working in this particular case.
Thanks
Ariel.