GPUOpen-LibrariesAndSDKs / AMF

The Advanced Media Framework (AMF) SDK provides developers with optimal access to AMD devices for multimedia processing
Other
596 stars 148 forks source link

[Question]: How to I install AMF? #480

Open ffuentesm opened 3 months ago

ffuentesm commented 3 months ago

I got a RX 580 and I wanted to record using OBS. I noticed that there is a .zip and a .tar.gz file under the release tab. I tried to follow the wiki, but I have zero clue on how to install AMF. Outside .exe or .msi files, unless I have a visual guide, I am clueless on how to handle this installation.

MikhailAMD commented 3 months ago

AMF runtime is installed with AMD graphics driver: https://www.amd.com/en/support/download/drivers.html. This is all you need for OBS encoding.

ffuentesm commented 3 months ago

Really? Because I got the latest driver and I get this log error. image image image

10:09:31.389: [texture-amf-h264: 'simple_video_recording'] B-Frames set to 3 but b-frames are not supported by this device 10:09:31.389: [texture-amf-h264: 'simple_video_recording'] Failed to set property 'QvbrQualityLevel': AMF_INVALID_ARG 10:09:31.389: [texture-amf-h264: 'simple_video_recording'] Failed to set property 'HighMotionQualityBoostEnable': AMF_INVALID_ARG 10:09:31.389: [texture-amf-h264: 'simple_video_recording'] settings: 10:09:31.389: rate_control: CQP 10:09:31.389: bitrate: 2500 10:09:31.389: cqp: 20 10:09:31.389: keyint: 250 10:09:31.389: preset: quality 10:09:31.389: profile: high 10:09:31.389: b-frames: 0 10:09:31.389: width: 1152 10:09:31.389: height: 720 10:09:31.389: params: (none) 10:09:40.424: [texture-amf-h264] amf_avc_create_texencode: AMFComponent::Init failed: AMF_FAIL 10:09:40.450: [fallback-amf-h264: 'simple_video_recording'] B-Frames set to 3 but b-frames are not supported by this device 10:09:40.450: [fallback-amf-h264: 'simple_video_recording'] Failed to set property 'QvbrQualityLevel': AMF_INVALID_ARG 10:09:40.450: [fallback-amf-h264: 'simple_video_recording'] Failed to set property 'HighMotionQualityBoostEnable': AMF_INVALID_ARG 10:09:40.450: [fallback-amf-h264: 'simple_video_recording'] settings: 10:09:40.450: rate_control: CQP 10:09:40.450: bitrate: 2500 10:09:40.450: cqp: 20 10:09:40.450: keyint: 250 10:09:40.450: preset: quality 10:09:40.450: profile: high 10:09:40.450: b-frames: 0 10:09:40.450: width: 1152 10:09:40.450: height: 720 10:09:40.450: params: (none) 10:09:49.498: [fallback-amf-h264] amf_avc_create_fallback: AMFComponent::Init failed: AMF_FAIL

So I am not sure what settings I should be using to enable it.

MikhailAMD commented 3 months ago

Noted. Seems new default OBS parameters broke compatibility with older GPUs/Drivers. Working on solution.

morgan008 commented 3 months ago

So I am not sure what settings I should be using to enable it.

@ffuentesm set Output Mode to Advanced, Video Encoder - AMD, Rate Control - CBR, VBR or CQP, not Q/HQ variant, Max B-frames 0. Should work.