Opened 5 years ago

Last modified 5 years ago

#8558 new enhancement

Expose AMD AMF library adapterID, EnumerateAdapters?

Reported by: NormallyOpen Owned by:
Priority: wish Component: avcodec
Version: unspecified Keywords: AMF
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

nvenc_h264, nvenc_h265 has gpu option, and list available devices option.

AMD AMF library exposes options to select an adapter other than the first one in the underlying code.

I'm gradually familiarising myself with the code, but perhaps someone with better knowledge can advise?

Change History (2)

comment:1 by Carl Eugen Hoyos, 5 years ago

Keywords: AMD removed

in reply to:  description comment:2 by NormallyOpen, 5 years ago

Looks like hwcontext d3d11va and dxva2 code in libavutil has a lot of similarity, at least with initialising the devices needed for the current amf initialisation code, that takes in d3d/dxva devices, rather than windows' gpu numbers?

Would specifying a hardware decoder then keep the hardware encode on the same device?

My use case involves passing raw video so i don't think it's universal?

It doesn't look like there's an option for specifying a device to an encoder? (just a decoder?) The "amfenc" code appears to look for if (avctx->hw_frames_ctx) is non zero?

Replying to NormallyOpen:

Summary of the bug:
How to reproduce:

nvenc_h264, nvenc_h265 has gpu option, and list available devices option.

AMD AMF library exposes options to select an adapter other than the first one in the underlying code.

I'm gradually familiarising myself with the code, but perhaps someone with better knowledge can advise?

Note: See TracTickets for help on using tickets.