Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3503 closed enhancement (fixed)

Patch that uses "schedruntime" column in jobqueue to defer automatic transcoding of recordings

Reported by: anonymous Owned by: cpinkham
Priority: trivial Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords: transcode jobqueue
Cc: Ticket locked: no


This is a quick patch to make use of the schedruntime functionality recently added to the jobqueue logic; it allows you to schedule automatic transcode jobs X number of days after the recording is finished instead of having them run immediately after commflagging.

This basically just replaces a cron job I had to do the same, but allows me to pick and choose which recordings to transcode based on the autotranscode flag, instead of just blindly transcoding everything older than a certain date, so i though it might be useful enough to submit the patch. There's currently no GUI for setting the database options, as I'm not really all that familiar with the GUI code.

Attachments (1)

jobdefer (2.9 KB) - added by patrickhdonnelly@… 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by patrickhdonnelly@…

Attachment: jobdefer added

comment:1 Changed 14 years ago by cpinkham

Owner: changed from Isaac Richards to cpinkham

comment:2 Changed 14 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [13517]) Add a way to defer auto-transcode jobs so that they can be automatically scheduled for days after the original recording completes rather than immediately after.

You can now specify auto-transcode jobs to run from 0-365 days after the recording completes, so you can for instance watch the HD version of a show if you watch it within 7 days, but after 7 days have it automatically transcoded down to a lower-resolution and smaller file on disk. If the setting is left at the default of 0, then auto-transcode jobs are run as soon as possible like they currently are.

Modified patch by Patrick Donnelly. I added the GUI portion and reworked the JobQueue? settings page in mythfrontend to make things fit better as well as modifying the patch to use a single DB setting instead of two.

Closes #3503.

comment:3 Changed 14 years ago by nick.rosier@…

Defered jobs are not started, they just stay in the Q. Do I have to make any other changes? I'm running r13971, defer time is set to 10 days.

Note: See TracTickets for help on using tickets.