[FFmpeg-trac] #10385(undetermined:new): ddagrab fails on Windows if adapter ID is specified
FFmpeg
trac at avcodec.org
Thu May 25 16:21:22 EEST 2023
#10385: ddagrab fails on Windows if adapter ID is specified
-------------------------------------+-------------------------------------
Reporter: Jøger | Type: defect
Hansegård |
Status: new | Priority: normal
Component: | Version: 6.0
undetermined |
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Screen capturing on Windows with ddagrab fails if adapter id is specified
on non-UWP build. Root cause is likely that CreateDXGIFactory is used, not
CreateDXGIFactory1. Desktop duplication API appears to be incompatible
with DXGI factories prior to 1.1.
See also https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_2/nf-
dxgi1_2-idxgioutput1-duplicateoutput which specifies that
IDXGIOutput1::DuplicateOutput fails with E_INVALIDARG if the device was
not created from IDXGIFactory1 (or a later version of a DXGI factory
interface that inherits from IDXGIFactory1).
How to reproduce:
{{{
ffmpeg -init_hw_device d3d11va:0 -filter_complex ddagrab -c:v h264_nvenc
-cq:v 20 output.mkv -loglevel debug
ffmpeg version 6.0
built on Windows, MSYS2
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10385>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list