Changes between Version 3 and Version 4 of Hardware/VAAPI


Ignore:
Timestamp:
Oct 1, 2017, 2:55:17 AM (2 months ago)
Author:
jkqxz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hardware/VAAPI

    v3 v4  
    195195}}} 
    196196 
     197Capture the screen from the first active KMS plane: 
     198{{{ 
     199ffmpeg_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 
     200}}} 
     201Compared 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. 
     202 
    197203 
    198204=== Transcode ===