Changes between Version 31 and Version 32 of Capture/Desktop


Ignore:
Timestamp:
Jun 15, 2025, 6:45:10 PM (13 months ago)
Author:
nyanmisaka
Comment:

add ddagrab zero-copy cli examples for intel qsv encoders.

Legend:

Unmodified
Added
Removed
Modified
  • Capture/Desktop

    v31 v32  
    109109FFmpeg implements support for it in the form of the [https://ffmpeg.org/ffmpeg-filters.html#ddagrab ddagrab] filter.
    110110
    111 It provides the user with on-gpu D3D11 textures, in the form of ffmpeg D3D11VA frames, which can then be directly encoded by a compatible hardware encoder:
     111It provides the user with on-gpu D3D11 textures, in the form of ffmpeg D3D11VA frames, which can then be directly encoded by a compatible hardware encoder, for example [[HWAccelIntro#NVENC|NVENC]] encoders:
    112112{{{
    113113ffmpeg -init_hw_device d3d11va -filter_complex ddagrab=0 -c:v h264_nvenc -cq:v 20 output.mkv
     114}}}
     115
     116For Intel GPUs that support [[Hardware/QuickSync|QuickSync]] (QSV) encoders, use the [https://ffmpeg.org/ffmpeg-filters.html#hwmap hwmap] filter to wrap D3D11 frames into QSV frames:
     117{{{
     118ffmpeg -init_hw_device d3d11va:,vendor_id=0x8086 -filter_complex ddagrab=0,hwmap=derive_device=qsv,format=qsv -c:v h264_qsv -global_quality 20 output.mkv
     119}}}
     120
     121To further adjust the video color properties using the [[Hardware/QuickSync|QuickSync]] VPP filters:
     122{{{
     123ffmpeg -init_hw_device d3d11va:,vendor_id=0x8086 -filter_complex ddagrab=0,hwmap=derive_device=qsv,vpp_qsv=format=nv12:out_color_matrix=bt709:out_color_primaries=bt709:out_color_transfer=bt709:out_range=tv -c:v hevc_qsv -global_quality 20 output.mkv
    114124}}}
    115125