[mythtv-users] gopdit, for MPEG-2 -> MPEG-2 cutting

David George david at thegeorges.us
Fri Mar 4 12:59:39 UTC 2005


On 3/4/2005 7:46 AM, Cory Papenfuss wrote:

>     I wasn't aware that he'd added the ability to deal with other 
> cutlist formats.  That's quite good because I belive that the MythTV 
> format is a combination of frame and file offset... someone correct me 
> if I'm wrong.  An exported .sql of an MPEG-2 .nuv with a cutlist says 
> something like this:
>
> INSERT INTO recorded (findid, programid, recgroup, hostname, 
> previouslyshown, lastmodified,cutlist, commflagged, starttime, 
> autoexpire, editing, preserve, endtime, category, deletepending, 
> originalairdate, stars, chanid, description, filesize, subtitle, 
> bookmark, recordid, title, seriesid) VALUES
>         ('0', 'EP1031150049', 'Default', 'mythtv.bogus.net', '1', 
> '20050304072930',
> '1375 -3537
> 19199 - 25270
> 39917 - 47141
> 62056 - 68987
> 77522 - 84335
> 110485 - 111395
> ', '1', '2005-02-09 06:58:00', '1', '0', '0', '2005-02-09 08:00:00', 
> 'Documentary', '0', '00
> 00-00-00', '0', '1049', 'The Alaska pipeline carries crude oil 800 
> miles across the state.',
>  '1669148608', 'The Alaskan Oil Pipeline', NULL, '703', 'Modern 
> Marvels', 'SH103115');
>
> <The big SNIP>
>
>       ('1373', '2005-02-09 06:58:00', '6', '1049', '300929062'),
>         ('1374', '2005-02-09 06:58:00', '6', '1049', '301137958'),
>         ('1375', '2005-02-09 06:58:00', '3', '1049', NULL),
>         ('1375', '2005-02-09 06:58:00', '4', '1049', NULL),
>         ('1375', '2005-02-09 06:58:00', '6', '1049', '301355046'),
>
>     If I'm not mistaken, the 1375-3537, etc are the frames in the 
> cutlist, and the '301355046' is the file offset.  What I don't 
> understand is that on the one hand the '6' in #1375 says it's a 
> MARK_GOP_START = 6, (from programinfo.h).  It's also a 
> MARK_BLANK_FRAME = 3 and MARK_COMM_START = 4.  How can it be a GOP 
> start point on one hand, but a frame count in the other?
>
>     Anyway, I would say that all the data is there (whether it be file 
> offset or frame number).  It shouldn't be a big deal to convert it 
> into gopdit.

Or we could add a command line option to gopdit to read directly from 
the database?  If only I had time... :-(

--
David



More information about the mythtv-users mailing list