<div dir="ltr">Hi Jan,<div><br></div><div>Yes, I can reproduce the problem.</div><div><br></div><div>When a recording is scheduled <b>after</b> the start time of the program, including the preroll time, then the recording starts immediately.</div><div>This is when you get a REC_PENDING with a negative SECS value and also the REC_PENDING comes after the REC_START.</div><div>The correct behaviour here is that the REC_PENDING comes with a SECS value of 0 (or small positive) followed by the REC_START.</div><div>This will be fixed.</div><div><br></div><div>About why you see a REC_PENDING with a value of 5 seconds.</div><div>The REC_PENDING logic is only activated after the WakeUpThreshold is passed so if your WakeUpThreshold is 5 seconds then the earliest REC_PENDING that you can get is 5 seconds before the recording starts.</div><div>I think there is some confusion about minutes vs. seconds. The default value for WakeUpThreshold, when not defined in the database, is 5 minutes.</div><div>My understanding is that the value in the database is in seconds.</div><div>I recommend removing the value from the database or setting it to 300 seconds.</div><div><br></div><div>Hope this helps and thanks for all the testing and reporting!<br></div><div>Klaas.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 5 Feb 2023 at 17:24, 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 17:01, Klaas de Waal wrote:<br>
> Looking at this log, I suspect that you have numeric value 5 for<br>
> WakeUpThreshold in the database.<br>
> Can you check the values for both WakeUpThreshold and RecordPreRoll in<br>
> the database, e.g. <br>
> select * from settings where value like "Wake%";<br>
> and<br>
> select * from settings where value like "Rec%";<br>
<br>
mysql> select * from settings where value like "Wake%";<br>
+------------------+------------------+----------+<br>
| value | data | hostname |<br>
+------------------+------------------+----------+<br>
| WakeUpThreshold | 5 | NULL |<br>
| WakeupTimeFormat | hh:mm yyyy-MM-dd | NULL |<br>
+------------------+------------------+----------+<br>
2 rows in set (0.00 sec)<br>
<br>
mysql> select * from settings where value like "Rec%";<br>
+--------------------+----------------------------------------+----------+<br>
| value | data | hostname |<br>
+--------------------+----------------------------------------+----------+<br>
| RecGroupsFocusable | 0 | bajor |<br>
| RecGroupsFocusable | 0 | dracor |<br>
| RecGroupsFocusable | 0 | fe4 |<br>
| RecGroupsFocusable | 0 | hobbiton |<br>
| RecGroupsFocusable | 0 | mordor |<br>
| recommend_enabled | | NULL |<br>
| recommend_key | REQUIRED | NULL |<br>
| recommend_server | <a href="http://myth-recommendations.aws.af.cm/" rel="noreferrer" target="_blank">http://myth-recommendations.aws.af.cm/</a> | NULL |<br>
| RecordFilePrefix | /mnt/disk1/mythtv | dracor |<br>
| RecordOverTime | 1200 | NULL |<br>
| RecordPreRoll | 250 | NULL |<br>
+--------------------+----------------------------------------+----------+<br>
11 rows in set (0.00 sec)<br>
<br>
<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>