[mythtv-users] Record, flag commercials, then move to NAS

Michael T. Dean mtdean at thirdcontact.com
Fri Feb 10 20:03:45 UTC 2012


On 02/10/2012 02:37 PM, Pieter De Wit wrote:
> On 11/02/2012 08:27, Marco Quezada wrote:
>> I have a small setup comprised of a combined backend/frontend using a
>> HDHR tuner and directly connected to my TV. This machine mounts
>> through NFS its mythTV storage directories on a small NAS machine. So
>> when a show is recorded mythTV writes it directly to the NAS. However,
>> once the recording ends, then the commercial flagging task begins and
>> that means that the BE/FE has to read the video back through the
>> network, do the flagging and write back to the NAS.
>>
>> What I would like instead is to have mythTV record locally on the
>> BE/FE machine and do its commercial flagging locally, then once the
>> task is complete the flagged recording should be moved to the NAS for
>> storage thus minimizing the amount of times the recordings are moved
>> across the network. I thought that a user job that includes flagging
>> the commercials and then moving the recording is a way to solve this
>> but I am not sure how to update the data base so that myth can find
>> the recording in its new location after it has been moved.
>>
>> Does anyone have a script or can suggest a setting that can help me
>> accomplish this?
> Hey Marco,
>
> See my script that I posted to the list:
>
> http://www.mythtv.org/pipermail/mythtv-users/2012-January/325763.html
>
> You could use that and reduce the number of days to 1 (or 2 as 1 is
> untested :) )

Marco and Pieter,

There are no DB updates required.  You should just set up MythTV such 
that you have a Storage Group (say, Default) with one or more local 
directories and set up your recording rules to record to that Storage 
Group.  Have another Storage Group (say, Archived) which contains only 
your NFS-mounted directories and do not ever choose that Storage Group 
for any recording rules.

Whenever you desire, simply move a recording to one of the directories 
in the Archived Storage Group.  There is no need to change anything in 
the database (and, really, there's no benefit to doing so--only a danger 
of breaking something).  MythTV will still find the file, because 
Storage Groups were designed  to allow any local movement of recordings 
(within directories of a single Storage Group or even between Storage 
Groups with no overlapping directories).

Mike


More information about the mythtv-users mailing list