check if VLC is still showing the stream

Discuss your Lua playlist, album art and interface scripts.
joaopereiraztech
New Cone
New Cone
Posts: 4
Joined: 17 May 2019 12:33

check if VLC is still showing the stream

Postby joaopereiraztech » 17 May 2019 12:39

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

unidan
Developer
Developer
Posts: 1494
Joined: 25 Mar 2018 01:00

Re: check if VLC is still showing the stream

Postby unidan » 17 May 2019 14:58

Hi, can you post the verbose application logs (-vv) first ?

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

joaopereiraztech
New Cone
New Cone
Posts: 4
Joined: 17 May 2019 12:33

Re: check if VLC is still showing the stream

Postby joaopereiraztech » 17 May 2019 16:15

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 :)

joaopereiraztech
New Cone
New Cone
Posts: 4
Joined: 17 May 2019 12:33

Re: check if VLC is still showing the stream

Postby joaopereiraztech » 22 May 2019 11:46

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

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: check if VLC is still showing the stream

Postby mederi » 22 May 2019 15:13

First things first.
Hi, can you post the verbose application logs (-vv) first ?

joaopereiraztech
New Cone
New Cone
Posts: 4
Joined: 17 May 2019 12:33

Re: check if VLC is still showing the stream

Postby joaopereiraztech » 28 May 2019 18:08

Ok, I will try to get the log. Its hard because VLC can work for 1 or 2 hours without problems before it stops

unidan
Developer
Developer
Posts: 1494
Joined: 25 Mar 2018 01:00

Re: check if VLC is still showing the stream

Postby unidan » 29 May 2019 15:26

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.

smw
New Cone
New Cone
Posts: 4
Joined: 01 Oct 2019 06:04

Re: check if VLC is still showing the stream

Postby smw » 02 Oct 2019 05:51

Can you use dbus? That way it can be a separate process checking on vlc.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 2 guests