I'm using this line to record from the desktop to a video file:
ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p out.mp4
But this will record the whole desktop. Is there any way to record in real time only specific area/part of the desktop ?