[mythtv-users] Events at the beginning of a recording
Klaas de Waal
klaas.de.waal at gmail.com
Sun Feb 5 17:27:25 UTC 2023
Hi Jan,
Yes, I can reproduce the problem.
When a recording is scheduled *after* the start time of the program,
including the preroll time, then the recording starts immediately.
This is when you get a REC_PENDING with a negative SECS value and also the
REC_PENDING comes after the REC_START.
The correct behaviour here is that the REC_PENDING comes with a SECS value
of 0 (or small positive) followed by the REC_START.
This will be fixed.
About why you see a REC_PENDING with a value of 5 seconds.
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.
I think there is some confusion about minutes vs. seconds. The default
value for WakeUpThreshold, when not defined in the database, is 5 minutes.
My understanding is that the value in the database is in seconds.
I recommend removing the value from the database or setting it to 300
seconds.
Hope this helps and thanks for all the testing and reporting!
Klaas.
On Sun, 5 Feb 2023 at 17:24, Jan Ceuleers <jan.ceuleers at gmail.com> wrote:
> On 05/02/2023 17:01, Klaas de Waal wrote:
> > Looking at this log, I suspect that you have numeric value 5 for
> > WakeUpThreshold in the database.
> > Can you check the values for both WakeUpThreshold and RecordPreRoll in
> > the database, e.g.
> > select * from settings where value like "Wake%";
> > and
> > select * from settings where value like "Rec%";
>
> mysql> select * from settings where value like "Wake%";
> +------------------+------------------+----------+
> | value | data | hostname |
> +------------------+------------------+----------+
> | WakeUpThreshold | 5 | NULL |
> | WakeupTimeFormat | hh:mm yyyy-MM-dd | NULL |
> +------------------+------------------+----------+
> 2 rows in set (0.00 sec)
>
> mysql> select * from settings where value like "Rec%";
> +--------------------+----------------------------------------+----------+
> | value | data | hostname |
> +--------------------+----------------------------------------+----------+
> | RecGroupsFocusable | 0 | bajor |
> | RecGroupsFocusable | 0 | dracor |
> | RecGroupsFocusable | 0 | fe4 |
> | RecGroupsFocusable | 0 | hobbiton |
> | RecGroupsFocusable | 0 | mordor |
> | recommend_enabled | | NULL |
> | recommend_key | REQUIRED | NULL |
> | recommend_server | http://myth-recommendations.aws.af.cm/ | NULL |
> | RecordFilePrefix | /mnt/disk1/mythtv | dracor |
> | RecordOverTime | 1200 | NULL |
> | RecordPreRoll | 250 | NULL |
> +--------------------+----------------------------------------+----------+
> 11 rows in set (0.00 sec)
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20230205/b4f357ab/attachment.htm>
More information about the mythtv-users
mailing list