[MPlayer-dev-eng] [PATCH] changing playback speed (live Fast Forward/Slow Motion)
Frank Scherthan
t.a.r.o.s at gmx.de
Sat Aug 28 12:34:08 CEST 2004
Hi list,
about one year ago, Steven Mueller submitted a patch for changing the
playback speed while watching: live fast-forward and slow-motion
How to use:
When pressing [ or ] you can de/increase the playback speed by 10%.
When pressing { or } you can half/double the playback speed.
When presing "Backspace" you can set playback speed back to 1.
This patch nearly made it into CVS, but Steven should implement some
kind of OSD, to show the changes of the speed, but he never ever did, so
the patch never made it into CVS.
I now have implemented an OSD call, so you can see the changes of the
playback-speed in the OSD and did some minor patches to the original
patch, so it applies to latest CVS and compiles.
I limited the max playback speed to 4x, 'cause higher values kill the
alsa driver and my Athlon 2000XP can't handle higher playback speeds anyway.
I limited min playback speed to 0.05: mplayer reads keypresses at every
frame. At 25FPS Material with playback speed x 0.01 it takes 4(!)
seconds for every keypress. With 0.05 it takes less than a second for a
key to be recognized.
I tested this patch with mpeg1, mpeg2, divx and xvid material - with
alsa, oss, sdl, arts audio-out and xv, x11, gl, gl2, svga, vesa, dxr3,
aa, caca video-out (yes, I think I overtested a bit...)
With all these drivers there seem to no problems... (well I didn't test
ALL combinations!)
I also updated the man-pages for englisch and german and the Authors file.
Wether this patch makes it into CVS or not: I will never live without
this feature. Big thanx to Steven Mueller!!! And thanx to the list for
this great m(ovie)player ...
Frank aka Taros666 on some places
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_live_change_playback_speed.patch
Type: text/x-patch
Size: 8819 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040828/301c7ff8/attachment.bin>
More information about the MPlayer-dev-eng
mailing list