[mythtv-users] Recording Pending System Event triggering 4 times?
Klaas de Waal
klaas.de.waal at gmail.com
Wed Feb 26 22:33:39 UTC 2025
On Wed, 26 Feb 2025 at 22:16, Alan W. Bak <alan at cinebyte.com> wrote:
> Hi
>
> I am using the recording pending System Event to launch a Perl program
> to change the channel on a STB. The program writes messages to a log
> file and the output shows that the program is launched 4 times for each
> pending recording (every 30 seconds starting 2 minutes before recording).
>
> 2025-02-26 19:58:00 recording pending, mapping 10208 -> 384 ->
> /usr/Q_event/0384.sh
> 2025-02-26 19:58:30 recording pending, mapping 10208 -> 384 ->
> /usr/Q_event/0384.sh
> 2025-02-26 19:59:00 recording pending, mapping 10208 -> 384 ->
> /usr/Q_event/0384.sh
> 2025-02-26 19:59:30 recording pending, mapping 10208 -> 384 ->
> /usr/Q_event/0384.sh
>
> Any idea on why this is happening and how I can reduce it to a single
> run? Also, can I set the lead time for a recording pending event?
>
> How it works can be found in the following commit:
https://github.com/MythTV/mythtv/commit/55a7d8293004b0cadb921a383b44a0fb9954a287
The events come before the actual program start time so that there is time
to start the set-top-box or whatever device the stream comes from.
The number of seconds before the recording starts is part of the event
message so you can use that to select actions.
For instance, you can power on the set-top-box at 120 seconds and then
start the recording at 30 seconds before the program start time.
Hope this helps,
Klaas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250226/73c2afb6/attachment.htm>
More information about the mythtv-users
mailing list