Am 02.09.2010 00:44, schrieb François Revol:
Le 1 sept. 2010 à 23:51, superstippi@xxxxxx a écrit :Author: stippi Date: 2010-09-01 23:51:56 +0200 (Wed, 01 Sep 2010) New Revision: 38506 Changeset: http://dev.haiku-os.org/changeset/38506 Modified: haiku/trunk/src/apps/mediaplayer/supplier/ProxyVideoSupplier.cpp Log: Don't try to decode more than 5 frames at a time to reach the seek frame. It's just not such a good strategy, since it appears to be faster to just wait until the next keyframe is reached naturally.Hmm I recall seeing files with like 2 keyframes only (1 start, 1 in the middle)... Though it might be possible to use some "fast" flags in codecs like ffmpeg to speed up things.
One could use a timeout again. If your 2 key-frame media file is a full length HD movie, you would be pretty screwed if you seeked anywhere but near one of those key-frames.
Best regards, -Stephan