On Thu, 2007-01-04 at 11:27 +0100, FoX wrote:
> It optimizes the generation through adding 2 parameters to mplayer command :
> -nocache : to avoid the caching delay

No caching is the default, but I guess it can't hurt to specify this
explicitly in case the user has caching set in his ~/.mplayer/config

> -osdlevel 0 : to remove the timebar osd display

Can't hurt, but I doubt this affects performance in any measurable way.


> I also decreases the number of captured frames to 1, which is IMHO enough.

Did you test this?  The first frame is always wrong: it is the first
frame of the video itself, not the first frame we are seeking to.  

-frames 2 would be a bare minimum, but I've encountered videos where
mplayer ends up writing nothing even with -frames 5 (for reasons I've
never been able to determine). 10 was empirically determined to be a
safe minimum value for all cases.

One possible optimization might be, if we determine that -frames 2 works
reliable for the common case (even if not every case), we try -frames 2
first, and if that doesn't yield a good result (and if it's possible to
determine if a result is good programmatically), then we try again with
-frames 10.

I have committed the -nocache and -osdlevel 0 options; thanks for your
patch.

Cheers,
Jason.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to