AMF icon indicating copy to clipboard operation
AMF copied to clipboard

Neither "PPAdaptiveFilterEnable" or "EnablePreEncodeFilter" enable the AMF Pre-Processing Component

Open Sinfull-snake opened this issue 3 years ago • 4 comments

Describe the bug AMF says "AMF_INVALID_ARG" when "PPAdaptiveFilterEnable" or "EnablePreEncodeFilter" are attempted to be enabled

To Reproduce Steps to reproduce the behavior in OBS Studio 28.1.2:

  1. Set the following properties for the "AMD HW H.264" encoder
  • CBR, 4000Kbps, 2s, Quality, High, 1 B-frames

RateControlPreanalysisEnable=1 BReferenceEnable=true EnablePreAnalysis=true PASceneChangeDetectionEnable=false PAHighMotionQualityBoostMode=1 PAPerceptualAQMode=1 PACAQStrength=2 PAFrameSadEnable=true DeBlockingFilter=true EnablePreEncodeFilter=true

or

RateControlPreanalysisEnable=1 BReferenceEnable=true EnablePreAnalysis=true PASceneChangeDetectionEnable=false PAHighMotionQualityBoostMode=1 PAPerceptualAQMode=1 PACAQStrength=2 PAFrameSadEnable=true DeBlockingFilter=true PPAdaptiveFilterEnable=true

  1. Set OBS Studio's canvas in Settings -> Video to 1080p at 30fps
  2. Start Encoding
  3. End Encoding
  4. Check OBS Studio Current Log File for:
  • "[texture-amf-h264: 'advanced_video_recording'] Failed to set property 'EnablePreEncodeFilter': AMF_INVALID_ARG"

or

  • "[texture-amf-h264: 'advanced_video_recording'] Failed to set property 'PPAdaptiveFilterEnable': AMF_INVALID_ARG"

Setup (please complete the following information):

  • OS: Windows 11 21H2
  • Driver Version 22.11.1
  • GPU: AMD Radeon RX 6900XT
  • Which component has the issue: AMD HW H.264 Debug Log (please upload or paste):

"EnablePreEncodeFilter=True" Log: EnablePreEncodeFilter=true .txt

"PPAdaptiveFilterEnable=true" Log: PPAdaptiveFilterEnable=true.txt

Expected behavior I expect the Pre-Processing Component to enable but it appears neither command from Pre-Processing Document or Pre-Processing Components Page appears valid

Additional context I've also tried switching the commands' "Enable" portion from their original positions to see if maybe the documentation and commands page were incorrect to no avail.

Sinfull-snake avatar Dec 03 '22 19:12 Sinfull-snake

The pre-encode filter is not currently integrated into OBS. Please stay tuned.

PreAnalysis is embedded in the encoder and can be set via a string option in OBS but the PreProcessing component is separate and needs to be integrated explicitly.

rhutsAMD avatar Dec 05 '22 16:12 rhutsAMD

Will stay tuned, thank you for the response.

Sinfull-snake avatar Dec 05 '22 16:12 Sinfull-snake

Are there still any plans for implementing this in OBS? currently still unable to use the component on OBS 30.

Johl7 avatar Dec 08 '23 00:12 Johl7

Sorry for the delay. Included into plans.

MikhailAMD avatar Dec 08 '23 16:12 MikhailAMD