Add video grab for wayland

This commit is contained in:
root
2024-06-26 20:43:41 +03:00
parent 0057397e6a
commit 87a1175a3e

View File

@@ -8,5 +8,9 @@ ffi in.mov -vf "crop=720:520:0:280" -c:v libx264 -c:a copy -b:v 1200k out.mp4
## Grab video from screen
```bash
# For X11
ffmpeg -s 1920x1080 -framerate 10 -f x11grab -i :0 -qscale 6 out.mkv
# For Wayland
ffmpeg -y -f kmsgrab -i - -filter_complex 'hwmap=derive_device=vaapi,hwdownload,format=bgr0,crop=1540:940:380:100' out2.mkv
```