RTSP streaming suddenly ends after 60 secs.

About encoding, codec settings, muxers and filter usage
dario-
New Cone
New Cone
Posts: 5
Joined: 03 Dec 2012 21:31

RTSP streaming suddenly ends after 60 secs.

Postby dario- » 21 Jan 2013 14:22

Hello everyone,
i'm exeperiencing the following problem using VLC 2.0.5 32 bit on windows7:
  • I'm running 2 instance of VLC on the same machine.
  • The 1st VLC instance connects to an IP camera using RTSP/h264 then re-streams it (without transcoding) using the following SOUT string: :sout=#rtp{sdp=rtsp://:8554/0.ts} :sout-keep
  • The 2nd instance connects to the output of the 1st instance. Everything is ok and the video streams flawlessly until about 60 secs are passed, then the stream closes suddenly with the following log:
    live555 debug: StreamClose
    main debug: EOF reached
    main debug: waiting decoder fifos to empty
    main debug: waiting decoder fifos to empty
    main debug: waiting decoder fifos to empty
    main debug: waiting decoder fifos to empty
    main debug: finished input
    main debug: removing module "avcodec"
    avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
    main debug: killing decoder fourcc `h264', 0 PES in FIFO
    main debug: saving a free vout
    main debug: reusing provided vout
    main debug: removing module "packetizer_h264"
    main debug: removing module "live555"
    main debug: Program doesn't contain anymore ES
    main debug: dead input
    main debug: changing item without a request (current 2/3)
    main debug: nothing to play
    main debug: destroying useless vout
    qt4 debug: IM: Deleting the input
    main debug: removing module "direct3d"
    direct3d debug: Direct3D scene released successfully
    main debug: TIMER input launching for 'rtsp://127.0.0.1:8554/0.ts' : 153.518 ms - Total 153.518 ms / 1 intvls (Avg 153.518 ms)
    direct3d debug: DirectXEventThread terminating
    direct3d debug: DirectXCloseWindow
    direct3d debug: WinProc WM_DESTROY
    qt4 debug: releasing video...
    qt4 debug: Video is not needed anymore
    main debug: removing module "freetype"
    main debug: removing module "yuvp"
    main debug: removing module "swscale"
  • The 1st instance is STILL up and running and it continues serving the stream (i can even reconnect to it), so i think its definitely a problem between the 2 VLC instances.
This exact scenario on the same configuration was running fine on VLC 2.0.3.
If i use HTTP instead of RTSP in the 1st VLC instance the abrupt quit disappear, so maybe its something RTSP-related..

Any help would be appreciated, thanks.

dario-
New Cone
New Cone
Posts: 5
Joined: 03 Dec 2012 21:31

Re: RTSP streaming suddenly ends after 60 secs.

Postby dario- » 21 Jan 2013 15:32

Ok i found the issue..that was the RTSP timeout setting equals to 60 secs. It appears the VLC client doesent keep alive the RTSP connection, so i had to disable it.
Now i wonder why this was working in 2.0.3 with the timeout setting enabled?

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

Re: RTSP streaming suddenly ends after 60 secs.

Postby Sébastien Escudier » 07 Feb 2013 14:56

will be fixed in 2.0.6


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 52 guests