il n'y a pas de notion de fenêtre mais de coordonnées et taille sur l'écran
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4
This will grab the image from desktop, starting with the upper-left corner at (x=100, y=200) with the width and height of 1024x768.
Quand on met une taille non valide car en fonction de l'extension, il y a un rapport hauteur/largeur à respecter, il l'indique clairement dans la console
Gérard