[MPlayer-users] recording at slow frame rate

The Wanderer inverseparadox at comcast.net
Wed Jul 9 13:43:35 CEST 2008


Jeremy Sanders wrote:

> Hi - I'm using a vga2usb input device to grab output to a projector
> to a linux box, along with audio from a microphone. vga2usb has a v4l
> device which supplies video at a variable frame rate depending on the
> screen resolution, etc.
> 
> How can I can mencoder to record the video at a constant (slow)
> framerate so that the video and audio are in sync and in real time?
> What happens is that it records the incoming ~10 frame/s input
> frame-by-frame with a constant playback frame rate. I'd like mencoder
> to drop incoming frames so that a constant input and output framerate
> is achieved.
> 
> Currently I have this command line:
> 
> mencoder -ovc x264 -x264encopts bitrate=100 -oac lavc -lavcopts 
> acodec=ac3:abitrate=128 -vf scale=1024:768 -o out.avi -tv 
> driver=v4l:outfmt=bgr24:device=/dev/video0:adevice=/dev/dsp1:forceaudio
> -fps 2 tv://

Have you tried specifying the input FPS as part of the '-tv' option,
rather than specifying the output FPS as a separate option?

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.



More information about the MPlayer-users mailing list