Stereo Tool
https://forums.stereotool.com/

µMPX decoder: execute command on silence
https://forums.stereotool.com/viewtopic.php?f=16&t=25598
Page 1 of 1

Author:  Minetti [ Sun Nov 04, 2018 6:33 pm ]
Post subject:  µMPX decoder: execute command on silence

I've seen the µMPX decoder can play a file when silence is detected. I'd like to have an option to execute a command when this happens instead. And even better, when signal comes back, execute another command.

Idea is to trigger some action on silence / signal return.

Author:  Mathijsco [ Mon Nov 05, 2018 10:32 am ]
Post subject:  Re: µMPX decoder: execute command on silence

Yep, good idea. A small nuance: it's not silence detection, it's signal detection. So if you are streaming silence it will not kick in, only when the stream drops out completely.

Author:  Minetti [ Mon Nov 05, 2018 10:44 pm ]
Post subject:  Re: µMPX decoder: execute command on silence

That's ok, silence detector is at the studio. So a signal detector is exactly what's needed.

Author:  Bojcha [ Tue Nov 06, 2018 1:32 pm ]
Post subject:  Re: µMPX decoder: execute command on silence

Since anyway ST is used, that should be IN ST (like i requested long time ago). Also to be available to someone who is not using uMPX.

Silence level detection (A), Wait Time to play backup file[s] (B), Wait time to return to main (C) with fade-in for niceness.

Author:  Mathijsco [ Tue Nov 06, 2018 1:58 pm ]
Post subject:  Re: µMPX decoder: execute command on silence

You can use input #2 in ST to fade to that input in case the first one falls silent. It can not play files though, but you could have something running on that second input that plays "something" all the time.

Attachments:
Schermafbeelding 2018-11-06 om 13.57.23.png
Schermafbeelding 2018-11-06 om 13.57.23.png [ 16.71 KiB | Viewed 24748 times ]

Author:  Bojcha [ Tue Nov 06, 2018 5:07 pm ]
Post subject:  Re: µMPX decoder: execute command on silence

Yes i know. But two things. i need to have non-stop something on that input. And second, It does not turn off completely input1 when it is switched to input2

Author:  Mathijsco [ Thu Nov 15, 2018 2:14 pm ]
Post subject:  Re: µMPX decoder: execute command on silence

We've implemented this in a slightly different way. Directly executing commands from µMPX proved to be too much of a security issue, since then any command could more or less be invoked at will from the web interface, and be executed with the same rights as the running µMPX process.

Instead it can now write a file (e.g. "micrompx_receiving_no_stream.notify") to indicate its stream status. The appearance of the file can be monitored from a bash script or other program which can take action whenever the file appears.

In the future we also hope to add SNMP support for easier integration in professional environments but that's not there right now.

Author:  Minetti [ Thu Nov 15, 2018 7:46 pm ]
Post subject:  Re: µMPX decoder: execute command on silence

Great, thank you. That'll certainly do.

Author:  ddonais73 [ Thu Sep 28, 2023 4:29 pm ]
Post subject:  Re: µMPX decoder: execute command on silence

I know this is an old thread, but has there been any progress made on the SNMP side of things for the uMpx decoder/encoder? Or even the triggering of rPi GPIO pins on selected events.

Thanks
Daryll Donais
Broadcast Engineer

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/