AMF icon indicating copy to clipboard operation
AMF copied to clipboard

[Bug]: AMF not working on Ubuntu 24.04.3

Open Oblivic opened this issue 1 month ago • 6 comments

Describe the bug AMF encode/decode not woking on Ubuntu 24.04.3

To Reproduce Steps to reproduce the behavior:

  1. update ubuntu 24.04.3
  2. download Radeon™ Software for Linux® version 25.10.4 for Ubuntu 24.04.3 HWE(https://repo.radeon.com/amdgpu-install/6.4.4/ubuntu/noble/amdgpu-install_6.4.60404-1_all.deb)
  3. try CapabilityManager demo

Setup (please complete the following information):

  • OS: Ubuntu 24.04.3
  • Driver Version [e.g. 25.10.4]
  • GPU [e.g. RX 7900 XTX]
  • Which component has the issue [e.g. Encoder, Decoder]

Debug Log (please upload or paste):

[CapabilityManager]   Error: AMF version (header):                                                                 0
AMF version (runtime):                                                           250000
0125-10-03 18:06:45 F7E8E740 [DeviceVulkan] Warning: Extension VK_KHR_video_queue is not available. Some Vulkan features may not work correctly.
0125-10-03 18:06:45 F7E8E740 [DeviceVulkan] Warning: Extension VK_KHR_video_decode_queue is not available. Some Vulkan features may not work correctly.
0125-10-03 18:06:45 F7E8E740 [DeviceVulkan] Warning: Extension VK_KHR_video_decode_h264 is not available. Some Vulkan features may not work correctly.
0125-10-03 18:06:45 F7E8E740 [DeviceVulkan] Warning: Extension VK_KHR_video_decode_h265 is not available. Some Vulkan features may not work correctly.

Vulkan
-------------------------
Querying video decoder capabilities...
0125-10-03 18:06:45 F7E8E740 [AMFDecodeEngineImplVulkan]   Error: ../../../../../runtime/src/components/DecoderUVD/DecodeEngines/Vulkan/DecodeEngineVulkan.cpp(108):InitDecoder() Vulkan decode extension is not loaded
        Codec AMFVideoDecoderUVD_H264_AVC is Not supported
                Decoder input:
                Decoder output:
                SmartAccess Video: false
        Codec AMFVideoDecoderHW_H265_HEVC is Not supported
                Decoder input:
                Decoder output:
                SmartAccess Video: false
        Codec AMFVideoDecoderHW_AV1 is Not supported
                Decoder input:
                Decoder output:
                SmartAccess Video: false

Querying video encoder capabilities...
        Codec AMFVideoEncoderVCE_AVC
0125-10-03 18:06:45 F7E8E740 +50
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/vcn4commandpacker.cpp(108):system VCN FW Encode interface version=1.19 and expected version=1.23 are not compatiable
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/h264config.cpp(421):H264Config::CheckFirmwareVersion(): FirmwareVersion mismatch!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreH264]   Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(162):Assertion failed:Failed to create service!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreImpl] Warning: Failed to create encode service!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreH264] Warning: CreateServices failed.
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreH264] Warning: *****Failed to create H264 encoder component.
Not supported
        Codec AMFVideoEncoderVCE_SVC
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/vcn4commandpacker.cpp(108):system VCN FW Encode interface version=1.19 and expected version=1.23 are not compatiable
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/h264config.cpp(421):H264Config::CheckFirmwareVersion(): FirmwareVersion mismatch!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreH264]   Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(162):Assertion failed:Failed to create service!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreImpl] Warning: Failed to create encode service!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreH264] Warning: CreateServices failed.
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreH264] Warning: *****Failed to create H264 encoder component.
Not supported
        Codec AMFVideoEncoderHW_HEVC
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/vcn4commandpacker.cpp(108):system VCN FW Encode interface version=1.19 and expected version=1.23 are not compatiable
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/hevcconfig.cpp(261):HevcConfig::CheckFirmwareVersion(): FirmwareVersion mismatch!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreHevc]   Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreHevcImpl.cpp(177):Assertion failed:Failed to create service!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreImpl] Warning: Failed to create encode service!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreHevc] Warning: CreateServices failed.
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreHevc] Warning: *****Failed to create HEVC encoder component.
Not supported
        Codec AMFVideoEncoderHW_AV1
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/vcn4commandpacker.cpp(108):system VCN FW Encode interface version=1.19 and expected version=1.23 are not compatiable
0125-10-03 18:06:45 F7E8E740 [EncodeCore]   Error: ./sources/drivers/enc_core/cmn/av1config.cpp(201):Av1Config::CheckFirmwareVersion(): FirmwareVersion mismatch!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreAv1] Warning:  AMFEncoderCoreAv1Impl::CreateEncodeService() not supported VCN instance 0! 
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreImpl] Warning: Failed to create encode service!
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreAv1] Warning: CreateServices failed.
0125-10-03 18:06:45 F7E8E740 [AMFEncoderCoreAv1] Warning: *****Failed to create AV1 encoder component.
Not supported

Expected behavior vulkan decode/encode working success

Oblivic avatar Nov 03 '25 10:11 Oblivic

It looks like Vulkan may not be installed correctly. Could you please share the command line you used for amdgpu-install?

rhutsAMD avatar Nov 03 '25 17:11 rhutsAMD

sudo amdgpu-install -y --usecase=amf --vulkan=amdvlk,pro --accept-eula,There is also another problem,vulkaninfo cmd or vulkanCapsViewer,not has VK_KHR_video_queue ,VK_KHR_video_decode_xxx Extension ,on my demo,must call AMFContext1->GetVulkanDeviceExtensions before vkCreateInstance,otherwise Extension not has it;This issue has been fixed when update 25.20,but CPU 9700X AMD Radeon Graphics not working with AMF

Oblivic avatar Nov 04 '25 06:11 Oblivic

on 9700X GPU id = 1 (AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO)) mesa-va-drivers (25.0.7-0ubuntu0.24.04.2)。 mesa-vulkan-drivers (25.0.7-0ubuntu0.24.04.2)。

0125-10-04 15:07:39 F7E8D740 [AMFDevicePALImpl] Error: ../../../../../runtime/src/core/DevicePALImpl.cpp(465):Assertion failed:luid not found in devices returned by Pal::IPlatform::EnumerateDevices() 0125-10-04 15:07:39 F7E8D740 [AMFContextImpl] Error: ../../../../../runtime/src/core/ContextImpl.cpp(2021):GetDevicePAL() AMFDevicePAL::InitFromAdapterInfo() failed with res =1 0125-10-04 15:07:39 F7E8D740 [EncodeQueuePalImpl] Error: ../../../../../runtime/src/components/EncoderCore/EncodeQueuePalImpl.cpp(895):Assertion failed:Pal retuned zero instances 0125-10-04 15:07:39 F7E8D740 [EncodeQueueService] Warning: Failed to create encode queue serivce. 0125-10-04 15:07:39 F7E8D740 [AMFEncoderCoreBaseImpl] Warning: Failed to initialize EncodeQueueFactory. 0125-10-04 15:07:39 F7E8D740 [AMFEncoderCoreBaseImpl] Warning: Failed to create encode queue serivce. 0125-10-04 15:07:39 F7E8D740 [AMFEncoderCoreImpl] Warning: Encode Core dll not found 0125-10-04 15:07:39 F7E8D740 [AMFEncoderCoreH264] Warning: CreateServices failed. 0125-10-04 15:07:39 F7E8D740 [AMFEncoderCoreH264] Warning: *****Failed to create H264 encoder component.

Oblivic avatar Nov 04 '25 07:11 Oblivic

The 7900 XTX uses the RDNA 3 architecture while the APU inside the Ryzen 7 9700X uses the RDNA 2 architecture. These require different Radeon drivers. Please install Radeon™ Software for Linux® version 25.10.2.1 + AMF v1.4.37 for use with the APU inside the 9700X or Radeon™ Software for Linux® version 25.10.4 + AMF v1.5.0 for use with the 7900 XTX.

Please also view the related issue/response regarding these driver differences: https://github.com/GPUOpen-LibrariesAndSDKs/AMF/issues/575#issuecomment-3503511103

rhutsAMD avatar Nov 07 '25 20:11 rhutsAMD

is there any drivers both support 9700X and 7900 XTX?

Oblivic avatar Nov 07 '25 20:11 Oblivic

If the use of both devices in parallel is strictly desired, please try an older driver version from before the RDNA 3 and RDNA 2 Radeon driver support split. Normally, it is recommended to use the latest device with the latest available Radeon driver for recent improvements and bug fixes.

rhutsAMD avatar Dec 08 '25 16:12 rhutsAMD