[MPlayer-users] Mencoder and HuffYUV

Levente Novakák Levente lnovak at dragon.unideb.hu
Sat Feb 12 00:15:02 CET 2005


Replying to my own question, the following command -- issued as root --  
did the job under Linux:

# update -S -s 1

This flushes the file cache with sync() every seconds instead of the  
default 5 secs.
It makes the transfers small enough to allow for smooth motion in  
captures.

On 02/05/05 02:13:47, Loren Merritt wrote:
> On Fri, 4 Feb 2005, [iso-8859-1] Levente Novákák Levente wrote:
> 
>> I would like to encode into HuffYUV (colorspace 422P) for quality  
>> reasons.
>> However, while grabbing, frame rate drops below 23 periodically,  
>> when
>> mencoder transfers the frames onto disk. It only lasts a 2-3  
>> seconds, but
>> makes the captured video jerky. Is there a way to flush the cache  
>> more
>> often? If the chunks transferred onto the disk would be smaller,  
>> there
>> wouldn't be such slowdown during disk transfers.
> 
> AFAIK mencoder doesn't flush at all, it's just up to your fwrite and/ 
> or filesystem.
> 
> If you haven't already, you could try ffvhuff instead of huffyuv, for  
> better compression. (Assuming you don't have enough CPU for ffv1.)
> -lavcopts vcodec=ffvhuff:vstrict=-1:pred=2:context=1:format=422p
> 
> You could try a bigger input buffer (-cache) instead of smaller  
> output. (But this won't help if it has to wait 3 seconds for the  
> disk.)
> 
> --Loren Merritt






More information about the MPlayer-users mailing list