Page 1 of 1

check if VLC is still showing the stream

Posted: 17 May 2019 12:39
by joaopereiraztech
Im using VLC as stream client, to show this stream in a full screen TV (using Ubuntu 12.04):
http://live.impresa.pt/live/sicnot/sicnot540p.m3u8

The problem is that sometimes VLC goes black, maybe because of networks issues, and the stream visualization stops working.
Its possible to create a VLC LUA script to check if the stream is still being shown, and reload it in case of failure?

Thanks
Joao Pereira

Re: check if VLC is still showing the stream

Posted: 17 May 2019 14:58
by unidan
Hi, can you post the verbose application logs (-vv) first ?

Btw, ubuntu 12.04 is very old, you should consider upgrading it.

Re: check if VLC is still showing the stream

Posted: 17 May 2019 16:15
by joaopereiraztech
Yes, I can upgrade to a newer Ubuntu version.
But this problem will always occur in unicast streaming clients. For some reason, the stream is cut... and I need VLC to be aware of it, and reload the streaming content from the server.
Im sure there is a LUA script to do this task :)

Re: check if VLC is still showing the stream

Posted: 22 May 2019 11:46
by joaopereiraztech
dahm, its being hard to create a lua script to check vlc status.
Does someone have a lua sample to check if vlc is showing the stream in standard output?
Thanks
Joao Pereira

Re: check if VLC is still showing the stream

Posted: 22 May 2019 15:13
by mederi
First things first.
Hi, can you post the verbose application logs (-vv) first ?

Re: check if VLC is still showing the stream

Posted: 28 May 2019 18:08
by joaopereiraztech
Ok, I will try to get the log. Its hard because VLC can work for 1 or 2 hours without problems before it stops

Re: check if VLC is still showing the stream

Posted: 29 May 2019 15:26
by unidan
But this problem will always occur in unicast streaming clients. For some reason, the stream is cut... and I need VLC to be aware of it, and reload the streaming content from the server.
It's unicast UDP streaming ? except by doing your own timeout setting, you can't know with udp if the stream has failed or not. You might want to use a streaming method which has a control connexion.

Re: check if VLC is still showing the stream

Posted: 02 Oct 2019 05:51
by smw
Can you use dbus? That way it can be a separate process checking on vlc.