Supported Edit Lists
Edit lists can be imported and exported. Currentliy the following
formats are supported:
If there are other popular formats around, please tell me, give
me examples, and I may add support for them.
Look at preferences for different ways how to impor edit lists.
MTV Edit Lists
The first character is the entry type:
- F - file name of the
source mpg
- A - add point time (punch
in)
- D - delete point time
(punch out)
- E - end editing
Time point is of the form FFFFFFFF
(frame number)
like in the following example:
FMaking the Video - Lindsay Lohan.mp
A00001528
D00005799
A00009080
D00014115
A00016513
D00017697
E
For each 'F' line the mpeg file is opened and clips are taken from this
file until another 'F' line or the end 'E'. All the clips are
concatenated together provided all the mpeg files have the same format.
Otherwise the behaviour is not defined. When exporting filename entries
are
generated, so you can use the editlist for other tools. As the tool is
only GOP accurate, usually cuts won't be exactly at these frames,
but rounded to some near GOP.
The rounding process can be influenced by the 2 options rounda and roundb
for 'A' and 'D' lines respectively. If the value is
- 0 - then the frame is
rounded to the nearest GOP (the default value)
- > 0 - then the frame
is rounded to the smallest GOP, that is larger than the frame - the
value of round(a|b)
- < 0 - then the frame
is rounded to the largest GOP that is smaller than the frame - the
value of round(a|b)
Frame numbers are calculated from time markers inside the videostream.
For the conversion between time points and frames a frame rate value is
necessary. Usually the mpeg stream contains a framerate, which can by
used for that purpose. This value seems to be perfectly ok with PAL
mpeg files (25 frames per second). In the case of NTSC files, I noticed
a framerate of 29.97 frames per second. But timemarkers seemed to
assume a framerate of 30 frames per second for a correct conversion.
Therefore there is another option framerate
for setting the appropriate value for conversion.
gopdit -x
-t MTV <editlist> <mpegout>
reads an editlist, and rounds the frames in the 'A' and 'D' lines to
the frames of the nearest GOPs, which might be either before or after
the actual frame.
gopdit -x
-t MTV --rounda=-1 --roundd=+1 --framerate=30 <editlist>
<mpegout>
could be used for NTSC files. 'A' lines are rounded to the nearest GOP
before and 'D' lines to the nearest GOP after the actual frame.
gopdit -x
-t MTV --rounda=-3 --roundd=+3 --framerate=30 <editlist>
<mpegout>
is a bit more fuzzy. 'A' lines are rounded to the nearest GOP
before or up to 2 frames after the actual frame and 'D' lines to the
nearest GOP after or up to 2 frames before the actual frame.
RTV Edit Lists
The first character is the entry type:
- F - file name of the
source mpg (from an RTV set, .mpg/.evt/.ndx)
- A - add point time (punch
in)
- D - delete point time
(punch out)
- E - end editing
Time point is of the form MMM:SS.msc
(M minutes, S seconds, msc milliseconds)
like in the following example:
FMaking the Video - Lindsay Lohan.mpg
A000:16.088
D007:32.122
A012:10.571
D014:25.000
E
For each 'F' line the mpeg file is opened and clips are taken from this
file until another 'F' line or the end 'E'. All the clips are
concatenated together provided all the mpeg files have the same format.
Otherwise the behaviour is not defined. When exporting filename entries
are
generated, so you can use the editlist for other tools. As the tool is
only GOP accurate, usually cuts won't be exactly at these time
points, but rounded to the next GOP.
RAW Edit Lists
This is a very simple propriety format, the file contains simply pairs
of byte offsets. Currently there are no tests, if the offsets really
point to PS headers, so it is only reasonable to import RAW lists
exported by gopdit.
Example:
80158720 240048128
400070656 719888384
799967232 1119780864
1439633408 2159566848