Add video grab for wayland
This commit is contained in:
@@ -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
|
## Grab video from screen
|
||||||
```bash
|
```bash
|
||||||
|
# For X11
|
||||||
ffmpeg -s 1920x1080 -framerate 10 -f x11grab -i :0 -qscale 6 out.mkv
|
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
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user