So I have this Slackware 14.0 and via sbopkg, I installed ffmpeg including all dependencies (required and optional) and its dependencies required/optional dependencies. Its tough but here we go.
I just followed the simple command as described on LinuxQuestions.org forum.
ffmpeg -f x11grab -y -r 45 -s 1366x768 -i :0.0+0,0 -vcodec libx264 -sameq ~/screencast.avi
Its quite good, compared to my old laptop where same command would produce sluggish video performance, probably due to crappy graphics card. With my Intel HD 3000, it works great. By the way, recordmydesktop doesn’t work well for me.
Here is the unedited video.