VLC stopping playing network stream

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
sleah1968
New Cone
New Cone
Posts: 4
Joined: 04 May 2023 08:31

VLC stopping playing network stream

Postby sleah1968 » 04 May 2023 09:38

Hello folks,
I'm using VLC to play a network stream to create a point to point audio link over the internet for a remote link for a community radio station.
The stream is from an Icecast server.
I set it up and working fine, however after about 20 hours it appeared to have just stopped. It manually restarted fine.
I guess it could have been a 'blip' with the internet connection or does VLC 'time-out' after a certain time? I.E. can it play a stream indefinately?
If it was caused by a 'blip', can VLC not try and auto reconnect?

Any suggestions for making this work indefinately, reliably and unattended most welcome!

Simon

Lotesdelere
Cone Master
Cone Master
Posts: 9963
Joined: 08 Sep 2006 04:39
Location: Europe

Re: VLC stopping playing network stream

Postby Lotesdelere » 04 May 2023 10:58

Some streams are using a redirection which may expire after some time.

sleah1968
New Cone
New Cone
Posts: 4
Joined: 04 May 2023 08:31

Re: VLC stopping playing network stream

Postby sleah1968 » 04 May 2023 11:19

Some streams are using a redirection which may expire after some time.
Good point, but this is a direct link.

http://radio.canstream.co.uk:8029/live.mp3 if you fancy a listen!

Lotesdelere
Cone Master
Cone Master
Posts: 9963
Joined: 08 Sep 2006 04:39
Location: Europe

Re: VLC stopping playing network stream

Postby Lotesdelere » 05 May 2023 10:21

Then we need the log when the stream stops :?

sleah1968
New Cone
New Cone
Posts: 4
Joined: 04 May 2023 08:31

Re: VLC stopping playing network stream

Postby sleah1968 » 05 May 2023 11:43

I don't think it's a 'time-out' issue after all. I think there was an internet blip at the transmit end causing VLC to stop.

I can't see any setting for 'auto reconnect'. :-|

Lotesdelere
Cone Master
Cone Master
Posts: 9963
Joined: 08 Sep 2006 04:39
Location: Europe

Re: VLC stopping playing network stream

Postby Lotesdelere » 06 May 2023 11:42

You can try to run VLC with the --http-reconnect option.

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

Re: VLC stopping playing network stream

Postby skuwakin » 09 May 2023 12:00

In the development of the topic. Please explain the difference between --loop and --http-reconnect

sleah1968
New Cone
New Cone
Posts: 4
Joined: 04 May 2023 08:31

Re: VLC stopping playing network stream

Postby sleah1968 » 09 May 2023 13:03

Please could you explain to a numpty how to use --http-reconnect ?
Thanks!

Lotesdelere
Cone Master
Cone Master
Posts: 9963
Joined: 08 Sep 2006 04:39
Location: Europe

Re: VLC stopping playing network stream

Postby Lotesdelere » 10 May 2023 10:54

Run VLC from the command line prompt with the option:
vlc.exe --http-reconnect

I don't know more about this option, let's hope a dev will help you.

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

Re: VLC stopping playing network stream

Postby Rémi Denis-Courmont » 10 May 2023 13:15

VLC 3.0 automatically reconnects if the OS detects the connection failure and if the stream can be reconnected transparently. There are no settings.

If it doesn't work, there's nothing to set or fix. You need to restart the stream.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

windowshopr
New Cone
New Cone
Posts: 1
Joined: 13 Jan 2024 05:39

Re: VLC stopping playing network stream

Postby windowshopr » 13 Jan 2024 05:55

Found this thread from a google search and i experience similar behavior. Running latest VLC version on windows 10. I use VLC currently to stream IPTV services, but what's making it unusable is this habit it has of just stopping the stream every few minutes. It doesn't happen all the time, but when it does it's usually pretty rhythmic, like it crashes every few minutes on the dot, and I'm forced to manually click the play button again, then scroll through the timeline to find the spot in the show where it died. What I mean by crash is you get UI you see when you first load VLC, black screen kinda thing. Very annoying.

Now i have gigabit fiber internet with a consistent connection so it's not a bandwidth issue, i thought maybe it might have been due to poor VPN connection but it does the same thing when not behind a VPN too. I don't run VLC from command prompt, just the GUI so having to test different CLI parameters isn't feasible.

It seems to be an issue with how VLC handles buffering is my guess because I've used services like tivimate on the firesticks/androids before with zero issues from the same service and internet. Its like if the buffer reaches the end, AND there's no connection to the streaming service, it just dies and forces the user to restart the stream.

Would be cool for a dev to look into that a bit more because i think there could be a solution in here somewhere, like have a separate thread monitor the connection to the streaming service and probe it if buffering has stopped for too long, or something like that. Plus when i restart the stream manually, it connects again right away, so its not like the connection is offline or down for literally any length of time. Seems like something VLC should be able to manage in the background? Keep the buffer flowing and keep the connection alive?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 53 guests