Yet another post on AMD AMF SDK and hopefully a helpful tool reference. I updated one of the capability discovery applications (
MediaFoundationDxgiCapabilities) so that it includes a printout of
AMFVideoEncoderVCE_AVC related properties similarly as they are printed for Nvidia video adapters.
- runtime version (and its availability in first place!)
- maximal resolution, profile and level supported
- formats with respect to capabilities reported on Direct3D 11 initialized component; specifically the data show which surface formats the encoding component has internal capability to convert on the way to hardware encoder
It looks like this tool was not described in detail earlier so one could find other DXGI related information as well (such as, for example, order of enumeration of DXGI adapters depending on whether an app is running on iGPU or dGPU on a hybrid system; DXGI desktop duplication related information).
This is reported directly from AMF as opposed to information received from Media Foundation API (which is also partially included though). On video encoders reported via Media Foundation, not just H.264 ones, see MediaFoundationVideoEncoderTransforms: Detecting support for hardware H.264 video encoders.
# Display Devices * Radeon RX 570 Series * Instance: PCI\VEN_1002&DEV_67DF&SUBSYS_E3871DA2&REV_EF\4&2D78AB8F&0&0008 * DEVPKEY_Device_Manufacturer: Advanced Micro Devices, Inc. * DEVPKEY_Device_DriverVersion: 24.20.13017.5001 * DEVPKEY_Undocumented_LUID: 0.0x0000D1B8 [...] ##### AMD AMF SDK Specific * AMF SDK Version: 220.127.116.11 // https://gpuopen.com/gaming-product/advanced-media-framework/ * AMF Runtime Version: 18.104.22.168 ###### AMFVideoEncoderVCE_AVC * Acceleration Type: AMF_ACCEL_HARDWARE * AMF_VIDEO_ENCODER_CAP_MAX_BITRATE: 100,000,000 * AMF_VIDEO_ENCODER_CAP_NUM_OF_STREAMS: 16 * AMF_VIDEO_ENCODER_CAP_MAX_PROFILE: AMF_VIDEO_ENCODER_PROFILE_HIGH * AMF_VIDEO_ENCODER_CAP_MAX_LEVEL: 52 * AMF_VIDEO_ENCODER_CAP_BFRAMES: 0 * AMF_VIDEO_ENCODER_CAP_MIN_REFERENCE_FRAMES: 1 * AMF_VIDEO_ENCODER_CAP_MAX_REFERENCE_FRAMES: 16 * AMF_VIDEO_ENCODER_CAP_MAX_TEMPORAL_LAYERS: 1 * AMF_VIDEO_ENCODER_CAP_FIXED_SLICE_MODE: 0 * AMF_VIDEO_ENCODER_CAP_NUM_OF_HW_INSTANCES: 1 ####### Input * Width Range: 64 - 4,096 * Height Range: 64 - 2,160 * Vertical Alignment: 32 * Format Count: 6 * Format: AMF_SURFACE_NV12 Native * Format: AMF_SURFACE_YUV420P * Format: AMF_SURFACE_YV12 * Format: AMF_SURFACE_BGRA * Format: AMF_SURFACE_RGBA * Format: AMF_SURFACE_ARGB * Memory Type Count: 4 * Memory Type: AMF_MEMORY_DX11 Native * Memory Type: AMF_MEMORY_OPENCL * Memory Type: AMF_MEMORY_OPENGL * Memory Type: AMF_MEMORY_HOST * Interlace Support: 0 ####### Output * Width Range: 64 - 4,096 * Height Range: 64 - 2,160 * Vertical Alignment: 32 * Format Count: 1 * Format: AMF_SURFACE_NV12 Native * Memory Type Count: 4 * Memory Type: AMF_MEMORY_DX11 Native * Memory Type: AMF_MEMORY_OPENCL * Memory Type: AMF_MEMORY_OPENGL * Memory Type: AMF_MEMORY_HOST * Interlace Support: 0
Note that more detailed information can be obtained using amf\public\samples\CPPSamples\CapabilityManager application from the SDK itself, if you build and run it.