[mythtv] New MPEG2 commercial-cut code ready for testing
    Geoffrey Hausheer 
    mythtv0368 at phracturedblue.com
       
    Sat Nov 12 21:41:21 EST 2005
    
    
  
Well, after a lot of work rewriting the code from c to c++, and time
spent figuring out how to do commercial cutting, I have the first
version available.
In theory, thei si the same app that I've been positing here, but
migrated to C++/Qt (no mythtv hookup yet), and with the added
commerical-cut code.
while it isn't yet ready to go into myth, the known work isn't too
difficult.  The big question is the unkown.  (A) while I've tested the
C->C++ migration code reasonably well, there are significant
differences, and more testing is needed.  (B)  I am not yet convinced
that the cutlist processing method I'm using will actually work, and
it certainly has bugs that need working out.
I had to disable the PTS discontinuity code because it won't work with
the commercial cutting code.  That'll definitely need to be fixed at
some point.  The commercial cuttng code hasn't seen very much testing
yet, mostly because it requires actually watching the video to see if
it works, and I haven't has access to an A/V output device much
lately.
So here we are:
http://www.pblue.org/myth/mpeg2fix-0.7.tgz
Anyway, the more feedback, the sooner this can get into svn.  Not sure
if there'll be time to get everything fixed up and included before
0.19.  I guess it all depends on how much testing it gets.
to use the cutlist stuff:
get the cutlist from mysql, and apply on the command line.
select chanid, starttime, cutlist from recorded;
if mysql said:
3000 - 6231
10510 - 15321
you would do something:
./mpeg2fix -i infile.nuv -o test.mog -c "3000 - 6231" -c "10510 - 15321"
you can still use the -t or -f switches, but don't necessarily need them.
.Geoff
    
    
More information about the mythtv-dev
mailing list