[mythtv-users] HD-PVR lossless transcode - smart naming script

Christopher Meredith chmeredith at gmail.com
Fri Jun 26 13:58:44 UTC 2009

On Wed, Jun 24, 2009 at 12:40 PM, Ian Forde <ian at duckland.org> wrote:

> On Sat, 2009-05-16 at 18:14 -0500, Christopher Meredith wrote:
> > What does this script do? It losslessly cuts commercials from HD-PVR
> > recordings and gives them smart names.
> >
> > So 1431_20090218195000.mpg
> >
> > becomes
> >
> > Lost.S03E03.Further Instructions.mkv
> >
> > It runs as a user job and can put the transcoded files anywhere you want.
> >
> > Project page here:
> http://monopedilos.com/dokuwiki/doku.php?id=hdpvrcutter.pl
> >
> > Special thanks to Robert McNamara. I welcome suggestions. As the page
> > explains, I'm hardly a perl programmer; this is largely a
> > copy-and-paste job. But it works. Please let me know your experiences
> > and if there are things I could do better.
> Apparently, the ticket containing the avidemux cutlist patch  -
> http://svn.mythtv.org/trac/ticket/5809 - is now closed as "wontfix".
> (Which, in all fairness, Robert has historically stated that he was
> going to eventually do.)  There is a reference to "better, cleaner ways
> of handling this".  Unless I missed something (which is quite possible)
> I'm not sure what any of them are...
> Anyone?

I would also like to know this. In my experience, the avidemux hack only
works reliably on 6-channel AC3 audio. It dies completely on AAC and the
audio get cut at random points on 2-channel AC3. I've got a messy workaround
that converts the audio to 6-channel AC3 first if it isn't already.

I've been working on a version of this script that uses mencoder but it is
only reliable if you're re-encoding the video (which is obviously not
lossless). Even so, the mencoder EDL method also doesn't like AAC audio so I
have to end up converting it twice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090626/c5782dde/attachment.htm>

More information about the mythtv-users mailing list