Changes between Version 4 and Version 5 of Hardware/VAAPI


Ignore:
Timestamp:
Oct 1, 2017, 2:56:28 AM (3 months ago)
Author:
jkqxz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hardware/VAAPI

    v4 v5  
    197197Capture the screen from the first active KMS plane: 
    198198{{{ 
    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.mp4 
     199ffmpeg -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 
    200200}}} 
    201201Compared 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.