Problem with VLC disconnecting from live streams

10 respostas [Última entrada]
Christianity
Desconectado
Joined: 10/09/2012

I've tried checking the boxes for "Continuous stream" and "Auto re-connect" in the options, but I still find VLC disconnects me from http live streams somewhat frequently and I have to manually reload every time. Does anyone have any suggestions (for vlc options or other players I could try)?

jxself
Desconectado
Joined: 09/13/2010

It may not actually be a VLC problem but in other areas like networking.

lembas
Desconectado
Joined: 05/13/2010

Try totem or mplayer. If it's a networking problem, you could point e.g. wget to start getting the file and then after it has gotten a chunk of it as a buffer start watching the file as it downloads.

GNUser
Desconectado
Joined: 07/17/2013

How to do that with a live streaming? Like an m3u8 or something like that?

lembas
Desconectado
Joined: 05/13/2010

Well, a m3u(8) is but an ascii list of files, local or remote. So, acquire the m3u file and feed it to wget -i to get the contents and then point your media player of choice to the downloaded file(s). (You could parse the m3u to make a local playlist for the media player.)

GNUser
Desconectado
Joined: 07/17/2013

I have read the manual but don't understand how that will work with a live stream. Do you think curl has a similar option?

Thanks!

lembas
Desconectado
Joined: 05/13/2010

For example go here (random example) https://www.internet-radio.com/stations/80s/

Note the channel called "Easy Hits Florida"? One of the playlist formats they offer is M3U. Right click the link, copy link location.

Pop open a terminal, mkdir you a new folder and cd into it. Then run wget -i "paste the link here". Quotes included.

Now wget will start sucking in the stream, in this case to index.html file. Looks like totem is too dumb to handle the file. VLC on the other hand will play it nicely.

GNUser
Desconectado
Joined: 07/17/2013

Thanks! Any idea if curl can do the same? I really could use it, and have tried in the past but never got it to work.

SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014

>Thanks! Any idea if curl can do the same? I really could use it, and have tried in the past but never got it to work.

curl -b /tmp/c -c /tmp/c "http://87.118.84.56:9984/listen.pls" > radio_show.flv

right click on the generated flv file and open with vlc

lembas
Desconectado
Joined: 05/13/2010

I haven't used curl but expect it would also be able to use lists.

onpon4
Desconectado
Joined: 05/30/2012

One thing you can do to alleviate such problems is put VLC on repeat. In the case of live streams, "repeating" is just reconnecting.