[mythtv-users] New script to apply cutlist to HD and maybe other recordings

John Pilkington J.Pilk at tesco.net
Fri Jul 6 14:35:09 UTC 2012

On 05/07/12 10:49, John Pilkington wrote:
> On 04/07/12 18:48, John Pilkington wrote:
>> Hi: I have a script that works in a similar way to mythcutprojectx but
>> works on recordings in formats for which Project-X cannot be used. I'm
>> not sure if it duplicates the function of other packages, and it sounds
>> like a throwback to the early days of digital tv, but I get the
>> impression that it would be useful.
>> It just cuts at the keyframe nearest to each edit point, concatenates
>> the wanted segments and fixes the database to match. Unlike Project-X it
>> makes no corrections for transmission or other errors, and it does
>> nothing about AV sync. This doesn't seem to be a problem for dvb
>> recordings, where I believe the TS format does that job. The log file
>> identifies the edit points in the output file, and sometimes there are
>> brief audio glitches there. For dvb recordings, but maybe not for
>> locally-encoded ones, keyframes often occur at or near natural edit
>> points.
>> It comes in two parts; a python module and a bash script that calls it.
>> It isn't set up as a real 'user job' script; I run it from a terminal,
>> and since I have only used it on my stand-alone laptop it isn't set up
>> to use Storage Groups. I don't think it would be difficult to convert it
>> to do that, but that isn't how I've used it.
>> Please note that I'm not a full-time programmer and the usual caveats
>> and lack of guarantee will apply.
> It's now on the wiki:
> http://www.mythtv.org/wiki/Mythpycutter
> I hope it's useful.
> John P

I've just added a warning: the Bash script uses mythutils, from 0.25, 
which has replaced some forms used in earlier versions.  The changes are 
small but inconvenient!  Sorry.

More information about the mythtv-users mailing list