[mythtv] transcoding simply to cut commercials?
Brad Benson
bbenso1 at gmail.com
Tue May 17 01:56:48 UTC 2005
> > What I'd like to do is to be able to transcode from MPEG2 => MPEG2
> > without commercials, similar to how nuvexport does it, but integrated
> > with mythfrontend.
> > This is a feature that I'd like to code up, but I figure that there
> > must be a reason for this to not exist today. I was wondering what
> > were some of the pitfalls of this, and what people's thoughts were on
> > this. If it seems like something useful to people, I'll probably start
> > working on it.
I was thinking this same thing about a month ago. My thought was
that, since nuvexport can pretty much do this now and 0.18 introduced
the job queue allowing you to specify "user jobs", i.e. any job you
can run from the command line with no user interaction, why not just
make nuvexport play nicely with the job queue? That way you can just
create a user job that calls nuvexport with all the right settings
from the job queue and set up that job to run automatically for new
recordings.
I believe that pretty much the only thing stopping nuvexport from
playing nicely with the job queue is that it spits out a TON of
progress messages which will fill up your logs with useless info when
using the job queue. My initial solution to this was to hack up some
ugly-but-functional changes to nuvexport to make it recognize a
--quiet flag (that tells it not to spit out all that progress info)
and a --jobclass flag (that tells it which user job it's being run as
so that it can send that progress info to the comment field in the job
queue). I never submitted a patch for this because the code is very
ugly and really not done the right way. However, it's been working
great for me so I'm still using a month or so old version of nuvexport
with my changes.
If anyone else would like to use my version I'll post it here. Keep
in mind that I'm not using the mpeg2->mpeg2 cut option of nuvexport,
but rather the export to DVD option since my capture settings aren't
quite right for DVD and I get better cut accuracy by transcoding.
Anyway, I've tested it using export to DVD (both transcode and ffmpeg)
and export to xvid (ffmpeg). I believe that any export format should
work with ffmpeg, but I haven't test any others. I've also made zero
changes to the mpeg2->mpeg2cut section, but someone else is welcome to
look at my changes and duplicate them in that module.
Brad Benson
More information about the mythtv-dev
mailing list