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

Mario Mey mariomey at gmail.com
Mon Nov 16 15:37:52 CET 2015


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.



More information about the libav-tools mailing list