[mythtv] [mythtv-commits] Ticket #6373: DefaultStartOffset DefaultEndOffset not used in database
Michael T. Dean
mtdean at thirdcontact.com
Thu Mar 19 18:33:08 UTC 2009
On 03/19/2009 10:03 AM, MythTV wrote:
> #6373: DefaultStartOffset DefaultEndOffset not used in database
>
>
> Comment(by williams):
>
> I'm happy to be wrong if it helps my understanding.
>
> This is the SQL from the frontend as it changed the settings table:
>
> 2009-03-19 10:32:18.301 MSqlQuery::exec() "SELECT * FROM settings WHERE
> value = 'RecordPreRoll';"
> 2009-03-19 10:32:18.302 MSqlQuery::exec() "UPDATE settings SET value =
> 'RecordPreRoll', data = '180' WHERE value = 'RecordPreRoll';"
> 2009-03-19 10:32:18.303 MSqlQuery::exec() "SELECT * FROM settings WHERE
> value = 'RecordOverTime';"
> 2009-03-19 10:32:18.304 MSqlQuery::exec() "UPDATE settings SET value =
> 'RecordOverTime', data = '180' WHERE value = 'RecordOverTime';"
>
> 180 is the number I chose as I filled in:
>
> Utilities/Setup ->
> TV Settings ->
> General ->
> Time to record before start of show (seconds)
> and
> Time to record past end of show (seconds)
>
> My edit works for me in 20063. Maybe it will revert back...
>
You're confusing two completely different (and unrelated) sets of
settings. There are the settings you /want/ to change:
Default 'Start Early' minutes for new recording rules
Set this to '0' unless you expect that the majority of your show times
will not match your TV listings. This sets the initial start early or
start late time when rules are created. These can then be adjusted per
recording rule.
Default 'End Late' minutes for new recording rules
Set this to '0' unless you expect that the majority of your show times
will not match your TV listings. This sets the initial end late or end
early time when rules are created. These can then be adjusted per
recording rule.
Note that these settings ("DefaultStartOffset" and "DefaultEndOffset")
take a value in minutes and the frontend /does/ set the right values for
them. The settings can be found at: Utilities/Setup|Setup|TV
Settings|Recording Priorities.
The purpose of these values is to pre-populate the "Start Early" and
"End Late" values when you create a brand-new recording rule. They have
absolutely no effect on already-created recording rules. MythWeb uses
them appropriately (as does mythfrontend).
The settings you changed in mythfrontend, however, are:
Time to record before start of show (in seconds)
This global setting allows the recorder to start before the scheduled
start time. It does not affect the scheduler. It is ignored when two
shows have been scheduled without enough time in between.
Time to record past end of show (in seconds)
This global setting allows the recorder to record beyond the scheduled
end time. It does not affect the scheduler. It is ignored when two shows
have been scheduled without enough time in between.
Note that these settings (the unfortunately-named "RecordPreRoll" and
"RecordOverTime") take a value in seconds and the frontend /does/ set
the right values for them. The settings can be found at:
Utilities/Setup|Setup|TV Settings|General. These settings are never
referenced in MythWeb, with the one exception that "RecordPreRoll" is
added to the user-specified offset for preview images when MythWeb
requests a thumbnail of a recording.
The purpose of these settings is to allow mythbackend to start (only)
the first recording of any back-to-back recordings on a capture card a
few seconds early to account for "spin-up" time for, i.e., hard drives,
capture cards, tuners, STB's, ... It is not applied to all recordings
(only the first in a back-to-back series) and it is not honored by the
scheduler.
Neither group of settings is meant to say, "Always record this much
extra before/after my recordings." For that you /must/ specify a
per-recording-rule Start Early/End Late. The purpose of
"DefaultStartOffset" and "DefaultEndOffset" is simply to pre-populate
those values for any recording rule you create /after/ specifying values
for "DefaultStartOffset" and "DefaultEndOffset".
Mike
More information about the mythtv-dev
mailing list