[mythtv-users] removing cutlist and ffwd/rev

John Pilkington J.Pilk at tesco.net
Tue Jan 27 20:09:50 UTC 2009


Michael T. Dean wrote:
> On 01/27/2009 01:06 PM, Brad DerManouelian wrote:
>> On Jan 27, 2009, at 9:59 AM, Johan Reinalda wrote:
>>> We have a large number of recordings with lots of extra space before
>>> and after shows (due to irregular starttimes on a FTA channel.)  We
>>> hand-create cutlists for these show to not show the extra recorded
>>> sections. However, now diskspace is starting to fill up with this
>>> extra space (currently in the order of 75GB, due to the large number
>>> of most kids shows that we keep)
>>>
>>> I wrote a script to find those programs with cutlists, and remove
>>> these sections from the underlying mpg files to save drive space,
>>> using the following commands (mostly copied from the wiki entries at
>>> http://www.mythtv.org/wiki/index.php/Removing_Commercials)
>>>
>>> mythtranscode -c <chan> -s <starttime> --showprogress --mpeg2
>>> --honorcutlist -k
>>> <move temp files around>
>>> mythcommflag -c <chan> -s <starttime> --rebuild
>>> mythcommflag -c <chan> -s <starttime> --clearcutlist
>>> <set database recorded entry to proper file size>
>>>
>>> The shows now play perfectly (if you let them play), but
>>> forward/backward behaves strangely. Eg. On a 10 min. recording,
>>> pressing fwd (set for 60 secs) most of the time goes to the end of
>>> the program. Sometimes only goes forward a few seconds (seems to be
>>> in the first minute only)
>>>
>>> While this is not a huge thing, I wonder if anyone has any ideas what
>>> I am missing? My guess is, something in the 'recorded' table that
>>> still needs to be adjusted ?
>> Try rebuilding the seektable again. I have a feeling --clearcutlist
>> might have mucked with it and it's out of sorts. 
> 
> Not to mention that you need to read the page on rebuilding the
> seektable, as mythcommflag --rebuild is definitely not what you want to
> use.  http://www.mythtv.org/wiki/Repairing_the_Seektable
> 
> Note, also, that mythtranscode should clear the cutlist for you when it
> finishes.
> 
> Mike

The wiki suggests:

> mythtranscode --mpeg2 --buildindex --allkeys --showprogress --infile <filepath> 

but I'm not clear why --allkeys is in there: perhaps to improve 
editability.  I find that:

>  nice nice mythtranscode --mpeg2 --buildindex --showprogress --chanid $1 --starttime $2

works well as a final step and doesn't hog the processor.  I don't 
recollect that --showprogress does much, either.

John P


More information about the mythtv-users mailing list