Page 1 of 1
RSTP stream auto-reconnect
Posted: 20 Feb 2010 18:15
by Tchewy
Hi everyone,
I am trying to make a cctv with vlc using Mosaic.
The cameras provide RSTP streams.
Everything works great ... Except when the connection goes down.
As my cams are streaming over WiFi, there may be a few hicups.
The problem is, when the link is down for more than a few seconds, it doesn't get back into the mosaic (no reconnection to the cam) :
vvv gives THE EOF MESSAGE :
[0x81068b0] main input debug: EOF reached
And doesn't try to reconnect
.
I have tried a lot of options, including http reconnect, loop, repeat.
By the way I REALLY need that to work !
With regards,
Re: RSTP stream auto-reconnect
Posted: 03 Mar 2010 16:42
by surfbox
Hi Tchewy,
Did you (or anyone else) find a solution to this problem? I have also encountered the same problem with an RTSP feed from an IP camera. I have tried with VLM to add a broadcast with loop enabled, and a schedule with repeat set to 0 (i.e. play endlessly). But I still see the same problem as you do, i.e. if the camera disconnects for whatever reason, VLC does not reconnect and restart the stream.
Apologies if this question has been answered elsewhere, but while I have found previous posts on the subject, I haven't seen a solution. Any help would be much appreciated.
Re: RSTP stream auto-reconnect
Posted: 10 May 2010 20:57
by diafygi
Has anyone found a solution to this problem?
I guess it's kind of expected behavior since VLC thinks the end of the stream has been reached. Is there a setting where you can override that behavior and make VLC try to reconnect when a stream is lost?
Re: RSTP stream auto-reconnect
Posted: 12 Aug 2010 02:49
by gentheaven
used command line mode: add -R option. e.g.
vlc -R rtsp://your ip/file
Re: RSTP stream auto-reconnect
Posted: 20 Sep 2011 23:50
by dhowe01
the R parm doesn't work for me.
I am receiving rtsp streams displayed to a mosaic, and transposed.
When connectivity is lost to the input the video is dropped, and does not reconnect when connectivity is restored.
tried --http-continuous, --repeat, --loop, -R, --http-reconnect
nothing seems to work.
Does anyone have a solution to this?
Re: RSTP stream auto-reconnect
Posted: 11 Nov 2011 11:59
by enfogar
I'm wondering if anyone solve this issue ?
Tried
Code: Select all
vlc.exe -vvv --loop --repeat --http-reconnect --http-continuous http://10.0.0.1:8081 --sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=1,samplerate=44100}:std{access=file,dst="stream.mp3"}
whith no result
Re: RSTP stream auto-reconnect
Posted: 14 Jan 2012 23:29
by str3tmonk
Having the same issue but with HTTP source instead of RTSP. Tried "http-reconnect" and "http-continuous" but no use.
Please can someone tell us how to go about fixing this?
Thank you!
Re: RSTP stream auto-reconnect
Posted: 26 Aug 2012 02:07
by urubullino
Could you resolve the problem.
I have rtsp camera and if the connection goes down more than 10 sec, VLC cant reconnect it.
I have tried --loop --repeat --http-reconnect --http-continuous but I couldnt .
Please, is very impostant!
Any halp will be appreciated
Thanks
Re: RSTP stream auto-reconnect
Posted: 26 Aug 2012 09:18
by urubullino
I have used this config :
http://ycsoftware.net/enable-auto-recon ... streaming/
The streaming reconnects only in VLC. My client page with flowplayer doesnt reconnects, it freeze when the streaming goes down and doesnt reconnect when vlc reconnects this streaming.
What can I do ?
Thanks
Re: RSTP stream auto-reconnect
Posted: 05 Dec 2017 19:00
by buckshee
the solution for me was to exit the process and loop cvlc with --play-and-exit
Re: RSTP stream auto-reconnect
Posted: 24 Apr 2022 17:23
by BloodBlight
Was looking for a fix to this and I found one!
Open your stream, then save it as a play list. When you open the playlist, just be sure to select loop. Works perfectly! ^__^
Re: RSTP stream auto-reconnect
Posted: 20 Aug 2023 19:40
by skuwakin
Was looking for a fix to this and I found one!
Open your stream, then save it as a play list. When you open the playlist, just be sure to select loop. Works perfectly! ^__^
And you can go into more detail ... I have collected all the necessary documents.m3u
Code: Select all
#EXTM3U
#EXTINF:60,Change http://192.168.1.254:9999
#EXTVLCOPT:network connection=1000
#EXTVLCOPT:sout=#http{mux=ffmpeg{mux=flv},dst=:8181/}
#EXTVLCOPT:everything is here
#EXTVLCOPT:saut-save
http://192.168.1.254:9999
Created a batch file
Code: Select all
start vlc --loop --sout "iptv channel address" --sout=#standard{access=http,mux=ts,dst=0.0.0.0:9999}
start vlc --loop Documents.m3u
start vlc --loop http://192.168.1.254:81 81
The last vlc normally shows the stream.
I remove the first vlc, run it again and the stream stops showing at this point.