HTTP stream does not disconnect if internet fails.

About encoding, codec settings, muxers and filter usage
secaro
Blank Cone
Blank Cone
Posts: 13
Joined: 25 Feb 2008 17:53

HTTP stream does not disconnect if internet fails.

Postby secaro » 25 Feb 2008 18:25

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: HTTP stream does not disconnect if internet fails.

Postby Rémi Denis-Courmont » 28 Feb 2008 22:24

There is the --http-reconnect option (HTTP / auto-reconnect).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

holgy72
Blank Cone
Blank Cone
Posts: 12
Joined: 18 Mar 2008 23:28

Re: HTTP stream does not disconnect if internet fails.

Postby holgy72 » 18 Mar 2008 23:37

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.

secaro
Blank Cone
Blank Cone
Posts: 13
Joined: 25 Feb 2008 17:53

Re: HTTP stream does not disconnect if internet fails.

Postby secaro » 20 Mar 2008 17:53

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.

holgy72
Blank Cone
Blank Cone
Posts: 12
Joined: 18 Mar 2008 23:28

Re: HTTP stream does not disconnect if internet fails.

Postby holgy72 » 20 Mar 2008 17:59

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.

holgy72
Blank Cone
Blank Cone
Posts: 12
Joined: 18 Mar 2008 23:28

Re: HTTP stream does not disconnect if internet fails.

Postby holgy72 » 20 Mar 2008 18:01

I think the thing you tested could be a solution for our use.

holgy72
Blank Cone
Blank Cone
Posts: 12
Joined: 18 Mar 2008 23:28

Re: HTTP stream does not disconnect if internet fails.

Postby holgy72 » 28 Mar 2008 03:07

Could you explain me how this works exactly?

secaro
Blank Cone
Blank Cone
Posts: 13
Joined: 25 Feb 2008 17:53

Re: HTTP stream does not disconnect if internet fails.

Postby secaro » 04 Sep 2008 16:38

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests