I am using the following command to capture video being played in my browser.

ffmpeg -f x11grab -s 768x576 -r 30 -i :0.0+300,150 ~/output.mpg -ab 64k

I can capture the video but there are two problems
* Video quality is too poor how can i improve it ?
* Sound is not being recorded, perhaps i have not mentioned the sound capture device. But i do not have much idea abt it.

Can any one plz help me with this ?

.