[libav-tools] Capturing and showing desktop with avconv/avplay.

Luca Barbato lu_zero at gentoo.org
Fri Nov 20 15:17:33 CET 2015

On 16/11/15 15:37, Mario Mey wrote:
> I have this working command:
> avconv -f x11grab -r 30 -s 1280x1024 -i :0.0 -c:v mpeg4 -b:v 1000k -vf
> "hflip" -vf "scale=640:480" -sws_flags "neighbor" -f avi - | avplay -i -
> (it capture the entire screen and shows it in a 640x480 30fps window,
> with neighbor interpolation and hflip effect,)
> But there's a problem. It starts capturing and showing at 30fps. I run
> another application (blenderplayer) and the avconv/avplay starts
> lowering the FPS up to get freeze. When I click in the window, it gets
> back to 30... and do it again. I did nice -20 to avconv and avplay, but
> there's no difference.
> I'm on Ubuntu 14.04.

Which version of libav are you using? how much cpu blenderplayer is taking?

You might get better results by switching to x264 in ultrafast mode.


More information about the libav-tools mailing list