I'm using the following command to render a video of a chrome browser running inside a virtual frame buffer (using xvfb
):
ffmpeg -f x11grab -i :5 -s `DISPLAY=:5 xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 30 tests.mpg
When I omit the DISPLAY=:5 xdpyinfo | grep 'dimensions:'|awk '{print $2}'
, it will render at about 1024x768
, so I invoked xdpyinfo to get the resolution of the display and tell ffmpeg about it.
But when I use the command, it shows the same cropped area, only stretched to fit the resolution I gave ffmpeg.
I would like to be able to record the whole virtual frame buffer without cropping or stretching. Is there a way to do so?
I have compiled ffmpeg from source just this morning, running v2.8.git