ffmpeg screen capture linux

You can record desktop screen using ffmpeg from a linux machine.
Compile ffmpeg with following options

./configure --enable-libx264  --enable-x11grab --enable-gpl --enable-version3 --enable-nonfree --enable-shared
make -j9
make install

Then grab screen using following command

ffmpeg -video_size 1366x768 -framerate 30 -f x11grab -i :0.0 -c:v libx264 output.flv

checked with ffmpeg version 2.1 in ubuntu 12.04

ffmpeg screen capture linux