[MPlayer-dev-eng] [PATCH] Start frame option

Axel axel at james-b.ch
Mon Aug 3 21:15:57 CEST 2009


Hello,

I'm new on (this) mailling list so please be indulgent.
So I developped at first for my needs a little patch to add a new option
only in mencoder at the moment named -startframe. It tells mencoder to
start the encoding only when the specified target frame number is
reached (skipping the frames before it). It looks like -ss and EDL but
it's more precise because you specify the frame number instead of an
approximative time.

I used a modified copy of the EDL function "slowseek" to read every
frame, count them and start the encoding when the target frame is
reached. It wasn't difficult at all because slowseek was adapted to do
that with a few changes. I tested it with the last snapshot of today
(20090803) and it's working. Note that you can specify a non-keyframe
when not in copy mode like EDL with hr-edl-seek.

Because I made a copy of slowseek (named frameseek) and then modified
it, should I modifiy and use slowseek instead ? And yes it is not a nice
patch because it's my first one :)
(And sorry for my bad english)

- Axel "Jamesb" ANGEL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: startframe-6.patch
Type: text/x-patch
Size: 5449 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090803/061b4210/attachment.bin>


More information about the MPlayer-dev-eng mailing list