[MPlayer-dev-eng] [PATCH] Realtime EDL

Michael Halcrow mah69 at email.byu.edu
Tue Dec 17 04:44:03 CET 2002


Hi. I made a patch.

This is my first contribution to mplayer. I read through the
patches.txt; hope I followed all the rules. I tested the patch on a CVS
checkout, and it seemed to work fine (after adding "#define USE_EDL" in
config.h).

This is good for those who don't want their kids to see
sex/violence/etc. on a DVD (or for those who don't particularly care for
it themselves). Hey, it could even be used to edit out Jar-Jar. It
requires an edit decision list (EDL) with the format:

[start second] [end second] [action]

For now, I've only implemented skipping sections based on the number of
seconds passed (action ID 0). It's pretty braindead; those more familiar
with the functionality of mplayer may be able to find a better way to
implement it, but at least this is a start. I spent more time figuring
out how to add a new command-line option than actually implementing the
functionality. In the future, maybe this EDL file could be in XML
format, it could apply to mencoder (as a backend to a non-linear video
editing program), yadayada.

Example EDL:

3 15 0
20 30 0

This will skip from second 3 to second 15, and then from second 20 to
second 30 during playback. The EDL is enabled and the file specified
with an added "-e" flag, like "-e matrix.edl".

In the near future, I will probably implement a "EDL creation mode",
where whenever something naughty happens, the user can hit a key, and an
EDL will be generated from those keypresses.

There still needs to be added to the ./configure script a way to specify
that you want EDL (#define USE_EDL in config.h), so that the #ifdef's
relating to it work. Otherwise, EDL is never enabled ;-). Feedback
(suggestions, ideas, insults :-) is welcome.

Michael Halcrow
mhalcrow at byu.edu

-- 
---------------------------------------- | ------------------------
Michael Halcrow                          | mhalcrow at byu.edu    
Research Assistant, Network Security Lab | Dept. of Comp. Science  
                                         | Brigham Young University
Pound for pound, the amoeba is the most  |
vicious animal on earth.                 |
---------------------------------------- | ------------------------
GnuPG Keyprint:  05B5 08A8 713A 64C1 D35D  2371 2D3C FDDA 3EB6 601D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: edl.diff
Type: text/x-patch
Size: 4429 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021216/2d4e0e95/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021216/2d4e0e95/attachment.pgp>


More information about the MPlayer-dev-eng mailing list