Page 1 of 1

HTTP stream does not disconnect if internet fails.

Posted: 25 Feb 2008 18:25
by secaro
Hello.

I have a little problem. Im trying to stream Tv from a capture card via internet. Everything works fine exept one thing. When the stream is beeing played on the client, it does not disconnect if the internet fails/drops. I live on Gran Canaria and the internet lines we have here is crappy. Once or twice a day the adsl gets disconnected from the central and i have to wait 1-2 minutes before its up again. I am currently using the h264 codec to transcode with and MPEG-TS as encapsulation.

When my internet gets disconnected i get this message from vlc: main error: recv failed (10054)

this message keeps coming up until i press "Stop" and manualy starts the stream again.

Is there any way i get the VLC client to disconnect when its not receiving anything ?
What i want is that VLC disconnects from the stream and then tries to reconnect or loop thru the playlist and try to start any of the same stream.

Re: HTTP stream does not disconnect if internet fails.

Posted: 28 Feb 2008 22:24
by RĂ©mi Denis-Courmont
There is the --http-reconnect option (HTTP / auto-reconnect).

Re: HTTP stream does not disconnect if internet fails.

Posted: 18 Mar 2008 23:37
by holgy72
I have the same problem. The option automatic reconnect under HTTP Input doesn't work.
I want to receive a aac+ stream with vlc that automatic reconnects to the stream if it get lossed.

Re: HTTP stream does not disconnect if internet fails.

Posted: 20 Mar 2008 17:53
by secaro
this is clearly a bug or something the VLC team has not figured out yet. You can solve the problem my making a visual basic application and then adding the vlc activex plugin. I wrote some lines that check if internet is connected. When the internet drops the stream restarts. But this does not work when you have a lot of package drops, then the video will stop anyway.

Im hoping for a solution in the near future.

Re: HTTP stream does not disconnect if internet fails.

Posted: 20 Mar 2008 17:59
by holgy72
Do you have such a plugin that i can check it out because i'm not really a programmer. Perhaps you can help me.
Its just needed for a aac+ audio stream. We would make sure that there is always a sound on the radio station.

Re: HTTP stream does not disconnect if internet fails.

Posted: 20 Mar 2008 18:01
by holgy72
I think the thing you tested could be a solution for our use.

Re: HTTP stream does not disconnect if internet fails.

Posted: 28 Mar 2008 03:07
by holgy72
Could you explain me how this works exactly?

Re: HTTP stream does not disconnect if internet fails.

Posted: 04 Sep 2008 16:38
by secaro
It does not work well. If the connection drop is on the server side the client will never restart the stream. Bug in vlc. We just have to wait until someone fix it.