RSTP stream auto-reconnect

About encoding, codec settings, muxers and filter usage
Tchewy
New Cone
New Cone
Posts: 1
Joined: 20 Feb 2010 18:08

RSTP stream auto-reconnect

Postby Tchewy » 20 Feb 2010 18:15

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,

surfbox
New Cone
New Cone
Posts: 1
Joined: 03 Mar 2010 16:18

Re: RSTP stream auto-reconnect

Postby surfbox » 03 Mar 2010 16:42

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.

diafygi
Blank Cone
Blank Cone
Posts: 13
Joined: 07 Aug 2007 09:13

Re: RSTP stream auto-reconnect

Postby diafygi » 10 May 2010 20:57

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?

gentheaven
New Cone
New Cone
Posts: 1
Joined: 12 Aug 2010 02:44

Re: RSTP stream auto-reconnect

Postby gentheaven » 12 Aug 2010 02:49

used command line mode: add -R option. e.g.
vlc -R rtsp://your ip/file

dhowe01
New Cone
New Cone
Posts: 1
Joined: 20 Sep 2011 23:47

Re: RSTP stream auto-reconnect

Postby dhowe01 » 20 Sep 2011 23:50

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?

enfogar
New Cone
New Cone
Posts: 1
Joined: 11 Nov 2011 11:49

Re: RSTP stream auto-reconnect

Postby enfogar » 11 Nov 2011 11:59

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

str3tmonk
Blank Cone
Blank Cone
Posts: 40
Joined: 21 Jun 2009 04:43

Re: RSTP stream auto-reconnect

Postby str3tmonk » 14 Jan 2012 23:29

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!

urubullino
New Cone
New Cone
Posts: 3
Joined: 26 Aug 2012 02:02

Re: RSTP stream auto-reconnect

Postby urubullino » 26 Aug 2012 02:07

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

urubullino
New Cone
New Cone
Posts: 3
Joined: 26 Aug 2012 02:02

Re: RSTP stream auto-reconnect

Postby urubullino » 26 Aug 2012 09:18

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

buckshee
New Cone
New Cone
Posts: 1
Joined: 05 Dec 2017 18:27

Re: RSTP stream auto-reconnect

Postby buckshee » 05 Dec 2017 19:00

the solution for me was to exit the process and loop cvlc with --play-and-exit

BloodBlight
New Cone
New Cone
Posts: 2
Joined: 24 Apr 2022 17:21

Re: RSTP stream auto-reconnect

Postby BloodBlight » 24 Apr 2022 17:23

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! ^__^

skuwakin
Blank Cone
Blank Cone
Posts: 34
Joined: 07 Nov 2013 17:48

Re: RSTP stream auto-reconnect

Postby skuwakin » 20 Aug 2023 19:40

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 20 guests