Changes between Version 4 and Version 5 of Hardware/VAAPI
- Timestamp:
- Sep 30, 2017, 11:56:28 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hardware/VAAPI
v4 v5 197 197 Capture the screen from the first active KMS plane: 198 198 {{{ 199 ffmpeg _g-device /dev/dri/card0 -f kmsgrab -i - -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' -c:v h264_vaapi -qp 24 output.mp4199 ffmpeg -device /dev/dri/card0 -f kmsgrab -i - -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' -c:v h264_vaapi -qp 24 output.mp4 200 200 }}} 201 201 Compared to capturing through X as in the previous examples, this should use much less CPU (all surfaces stay on the GPU side) and can work outside X (on VTs or in Wayland), but can only capture whole planes and requires DRM master or CAP_SYS_ADMIN to run.
