<div dir="ltr">Hi Jan,<div><br></div><div>What are your values for the settings <span style="color:rgb(163,21,21);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-size:14px;white-space:pre">RecordPreRoll </span>and<span style="color:rgb(163,21,21);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-size:14px;white-space:pre"> </span><span style="color:rgb(163,21,21);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-size:14px;white-space:pre">WakeUpThreshold?</span></div><div><br></div><div>The RecordPreRoll is configured in mythfrontend with Setup / Video / General / General (Advanced) / Time to record before start of show (secs).<br></div><div>In my system the RecordPreRoll is 180 seconds.</div><div><br></div><div>I am not aware of a GUI option to configure the value of WakeUpThreshold.</div><div>If it is not defined then a default value of 5 minutes is used.</div><div>If it is defined directly in the database then I think that the value should be in seconds.</div><div>In my system the WakeUpThreshold is not defined so the default is used.<br></div><div><br></div><div>To show the events you can add the "-v network" option for mythbackend.</div><div>Then use "grep -e REC_PENDING -e REC_STARTED" to filter the log.</div><div><br></div><div>Thanks,</div><div>Klaas.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 5 Feb 2023 at 13:22, Jan Ceuleers <<a href="mailto:jan.ceuleers@gmail.com">jan.ceuleers@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 05/02/2023 12:27, Paul Harrison wrote:<br>
> Can you please show us what events you get and in what order without any<br>
> other logging so we can see what you mean?<br>
> <br>
> <br>
> It's possible the mythexternrecorder does things differently and messes<br>
> with the timings?<br>
<br>
Here's an example from earlier today. As you requested I removed all<br>
logging other than the events:<br>
<br>
Feb 5 07:55:50 mythtv[1161172]:<br>
/home/mythtv/system-events/recording-started called with parameters 32<br>
20230205075600 by PID 1161172<br>
Feb 5 07:55:55 mythtv[1161379]:<br>
/home/mythtv/system-events/recording-pending called with parameters 32<br>
20230205075600 -246 by PID 1161379<br>
<br>
In this instance the recording pending event arrived 5 seconds after the<br>
recording started event, but earlier examples (if you ignore all of the<br>
non-event logging) showed that sometimes the recording pending event<br>
arrives within a second of the recording started event.<br>
<br>
In order to test your theory that mythexternrecorder might have<br>
something to do with this I also ran a test recording with an HDHR (i.e.<br>
not using mythexternrecorder). Here are the events:<br>
<br>
Feb 5 13:07:50 mythtv[1740022]:<br>
/home/mythtv/system-events/recording-started called with parameters 10<br>
20230205130800 by PID 1740022<br>
Feb 5 13:07:50 mythtv[1740026]:<br>
/home/mythtv/system-events/recording-pending called with parameters 10<br>
20230205130800 -241 by PID 1740026<br>
<br>
So the order is the same in this case, although as described earlier the<br>
events are less than a second apart.<br>
<br>
Here's how the events have been set up:<br>
<br>
mysql> select * from settings where value like "Event%"\G<br>
*************************** 1. row ***************************<br>
value: EventCmdLivetvStarted<br>
data:<br>
hostname: dracor<br>
*************************** 2. row ***************************<br>
value: EventCmdPlayChanged<br>
data:<br>
hostname: dracor<br>
*************************** 3. row ***************************<br>
value: EventCmdRecFinished<br>
data: /home/mythtv/system-events/recording-finished %DIR% %FILE%<br>
%CARDID% %CHANID% %STARTTIMEUTC"<br>
hostname: dracor<br>
*************************** 4. row ***************************<br>
value: EventCmdRecPending<br>
data: /home/mythtv/system-events/recording-pending %CARDID%<br>
%STARTTIME% %SECS%<br>
hostname: dracor<br>
*************************** 5. row ***************************<br>
value: EventCmdRecStarted<br>
data: /home/mythtv/system-events/recording-started %CARDID% %STARTTIME%<br>
hostname: dracor<br>
5 rows in set (0.00 sec)<br>
<br>
So as you can see, the "-246" or "-241" passed to recording-pending is<br>
the SECS parameter.<br>
<br>
Thanks, Jan<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>