[FFmpeg-trac] #8558(avcodec:new): Expose AMD AMF library adapterID, EnumerateAdapters?

FFmpeg trac at avcodec.org
Mon Mar 9 02:56:55 EET 2020


#8558: Expose AMD AMF library adapterID, EnumerateAdapters?
--------------------------------------+-----------------------------------
             Reporter:  NormallyOpen  |                    Owner:
                 Type:  enhancement   |                   Status:  new
             Priority:  wish          |                Component:  avcodec
              Version:  unspecified   |               Resolution:
             Keywords:  AMF           |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+-----------------------------------

Comment (by NormallyOpen):

 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 [ticket:8558 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?
 >
 >

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8558#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list