Pira.cz Technical Forum

Utilities => Silence Detector => Topic started by: rogerB on September 12, 2021, 10:27:37 pm

Title: Restarting an http audio stream
Post by: rogerB on September 12, 2021, 10:27:37 pm
I'm trying to use Pira to detect loss of an internet radio stream I am recording (logging) on the same PC.
I want to detect when it goes silent, usually caused by a disconnection of the audio webstream (e.g. wifi or incoming internet stopping).
The webstream URL will play in any browser or a player such as VLC or MPlayer, so ideally when Pira detects loss of audio, it relaunches the webstream.   However, when VLC or MPlayer (or a browser) goes silent, Pira need to close and relaunch the browser/player and go straight to the webstream address.  Any ideas how I can get it to do this?
Thanks   
Title: Re: Restarting an http audio stream
Post by: rogerB on September 13, 2021, 12:04:57 am
Ah. Worked it out.
Used a dedicated browser with home page set to the webstream
Pira set to kill the browser then restart it on silence.
Simples! 
Title: Re: Restarting an http audio stream
Post by: Atlanta Radio Guy on February 13, 2024, 03:30:49 am
Hi Roger,

I'm trying to do something similar to you, I think.  I'm playing an audio stream through Foobar2000.  On silence, I would like it to click the "play" button again.  I prefer the Foobar2000 media player but I could also use VLC.

Thanks for any tips you can provide!

Allen