Skip to content

Instantly share code, notes, and snippets.

@nico-lab
Last active June 21, 2025 02:09
Show Gist options
  • Save nico-lab/b7608e704841b6986b96a6f660f66ebd to your computer and use it in GitHub Desktop.
Save nico-lab/b7608e704841b6986b96a6f660f66ebd to your computer and use it in GitHub Desktop.

Revisions

  1. nico-lab revised this gist May 2, 2025. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions hevc_amf
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    Encoder hevc_amf [AMD AMF HEVC encoder]:
    General capabilities: dr1 delay hardware
    Threading capabilities: none
    Supported hardware devices: d3d11va d3d11va dxva2 dxva2
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld p010le
    Supported hardware devices: d3d11va d3d11va dxva2 dxva2 amf amf
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld p010le amf bgr0 rgb0 bgra argb rgba x2bgr10le rgbaf16le
    hevc_amf AVOptions:
    -usage <int> E..V....... Set the encoding usage (from -1 to 5) (default -1)
    transcoding 0 E..V....... Generic Transcoding
    @@ -11,6 +11,9 @@ hevc_amf AVOptions:
    webcam 3 E..V....... Webcam
    high_quality 4 E..V....... High quality usecase
    lowlatency_high_quality 5 E..V....... Low latency yet high quality usecase
    -bitdepth <int> E..V....... Set color bit deph (from 0 to 10) (default 0)
    8 8 E..V....... 8 bit
    10 10 E..V....... 10 bit
    -profile <int> E..V....... Set the profile (from -1 to 2) (default -1)
    main 1 E..V.......
    main10 2 E..V.......
    @@ -54,6 +57,7 @@ hevc_amf AVOptions:
    none 0 E..V.......
    gop 1 E..V.......
    idr 2 E..V.......
    -async_depth <int> E..V....... Set maximum encoding parallelism. Higher values increase output latency. (from 1 to 16) (default 16)
    -high_motion_quality_boost_enable <boolean> E..V....... Enable High motion quality boost mode (default auto)
    -gops_per_idr <int> E..V....... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 1)
    -preencode <boolean> E..V....... Enable preencode (default auto)
    @@ -72,7 +76,7 @@ hevc_amf AVOptions:
    -me_quarter_pel <boolean> E..V....... Enable ME Quarter Pixel (default auto)
    -forced_idr <boolean> E..V....... Force I frames to be IDR frames (default false)
    -aud <boolean> E..V....... Inserts AU Delimiter NAL unit (default auto)
    -log_to_dbg <boolean> E..V....... Enable AMF logging to debug output (default false)
    -smart_access_video <boolean> E..V....... Enable Smart Access Video to enhance performance by utilizing both APU and dGPU memory access (default auto)
    -preanalysis <boolean> E..V....... Enable preanalysis (default auto)
    -pa_activity_type <int> E..V....... Set the type of activity analysis (from -1 to 1) (default -1)
    y 0 E..V....... activity y
  2. nico-lab revised this gist Oct 2, 2024. 1 changed file with 26 additions and 19 deletions.
    45 changes: 26 additions & 19 deletions hevc_amf
    Original file line number Diff line number Diff line change
    @@ -2,18 +2,19 @@ Encoder hevc_amf [AMD AMF HEVC encoder]:
    General capabilities: dr1 delay hardware
    Threading capabilities: none
    Supported hardware devices: d3d11va d3d11va dxva2 dxva2
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld p010le
    hevc_amf AVOptions:
    -usage <int> E..V....... Set the encoding usage (from 0 to 5) (default transcoding)
    -usage <int> E..V....... Set the encoding usage (from -1 to 5) (default -1)
    transcoding 0 E..V....... Generic Transcoding
    ultralowlatency 1 E..V....... ultra low latency trancoding
    lowlatency 2 E..V....... low latency trancoding
    ultralowlatency 1 E..V....... Ultra low latency usecase
    lowlatency 2 E..V....... Low latency usecase
    webcam 3 E..V....... Webcam
    high_quality 4 E..V....... high quality trancoding
    lowlatency_high_quality 5 E..V....... low latency yet high quality trancoding
    -profile <int> E..V....... Set the profile (default main) (from 1 to 1) (default main)
    high_quality 4 E..V....... High quality usecase
    lowlatency_high_quality 5 E..V....... Low latency yet high quality usecase
    -profile <int> E..V....... Set the profile (from -1 to 2) (default -1)
    main 1 E..V.......
    -profile_tier <int> E..V....... Set the profile tier (default main) (from 0 to 1) (default main)
    main10 2 E..V.......
    -profile_tier <int> E..V....... Set the profile tier (default main) (from -1 to 1) (default -1)
    main 0 E..V.......
    high 1 E..V.......
    -level <int> E..V....... Set the encoding level (default auto) (from 0 to 186) (default auto)
    @@ -31,10 +32,15 @@ hevc_amf AVOptions:
    6.0 180 E..V.......
    6.1 183 E..V.......
    6.2 186 E..V.......
    -quality <int> E..V....... Set the encoding quality (from 0 to 10) (default speed)
    -quality <int> E..V....... Set the encoding quality preset (from -1 to 10) (default -1)
    quality 0 E..V.......
    balanced 5 E..V.......
    speed 10 E..V.......
    -preset <int> E..V....... Set the encoding quality preset (from -1 to 10) (default -1)
    quality 0 E..V.......
    balanced 5 E..V.......
    speed 10 E..V.......
    -latency <boolean> E..V....... enables low latency mode (default auto)
    -rc <int> E..V....... Set the rate control mode (from -1 to 6) (default -1)
    cqp 0 E..V....... Constant Quantization Parameter
    cbr 3 E..V....... Constant Bitrate
    @@ -44,27 +50,28 @@ hevc_amf AVOptions:
    hqvbr 5 E..V....... High Quality Variable Bitrate
    hqcbr 6 E..V....... High Quality Constant Bitrate
    -qvbr_quality_level <int> E..V....... Sets the QVBR quality level (from -1 to 51) (default -1)
    -header_insertion_mode <int> E..V....... Set header insertion mode (from 0 to 2) (default none)
    -header_insertion_mode <int> E..V....... Set header insertion mode (from -1 to 2) (default -1)
    none 0 E..V.......
    gop 1 E..V.......
    idr 2 E..V.......
    -high_motion_quality_boost_enable <boolean> E..V....... Enable High motion quality boost mode (default auto)
    -gops_per_idr <int> E..V....... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 1)
    -preencode <boolean> E..V....... Enable preencode (default false)
    -vbaq <boolean> E..V....... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V....... Enforce HRD (default false)
    -filler_data <boolean> E..V....... Filler Data Enable (default false)
    -max_au_size <int> E..V....... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -preencode <boolean> E..V....... Enable preencode (default auto)
    -vbaq <boolean> E..V....... Enable VBAQ (default auto)
    -enforce_hrd <boolean> E..V....... Enforce HRD (default auto)
    -filler_data <boolean> E..V....... Filler Data Enable (default auto)
    -max_au_size <int> E..V....... Maximum Access Unit Size for rate control (in bits) (from -1 to INT_MAX) (default -1)
    -min_qp_i <int> E..V....... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V....... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V....... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V....... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V....... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V....... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V....... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V....... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V....... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V....... Inserts AU Delimiter NAL unit (default false)
    -skip_frame <boolean> E..V....... Rate Control Based Frame Skip (default auto)
    -me_half_pel <boolean> E..V....... Enable ME Half Pixel (default auto)
    -me_quarter_pel <boolean> E..V....... Enable ME Quarter Pixel (default auto)
    -forced_idr <boolean> E..V....... Force I frames to be IDR frames (default false)
    -aud <boolean> E..V....... Inserts AU Delimiter NAL unit (default auto)
    -log_to_dbg <boolean> E..V....... Enable AMF logging to debug output (default false)
    -preanalysis <boolean> E..V....... Enable preanalysis (default auto)
    -pa_activity_type <int> E..V....... Set the type of activity analysis (from -1 to 1) (default -1)
  3. nico-lab revised this gist Jul 12, 2023. 1 changed file with 48 additions and 8 deletions.
    56 changes: 48 additions & 8 deletions hevc_amf
    Original file line number Diff line number Diff line change
    @@ -4,11 +4,13 @@ Encoder hevc_amf [AMD AMF HEVC encoder]:
    Supported hardware devices: d3d11va d3d11va dxva2 dxva2
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
    hevc_amf AVOptions:
    -usage <int> E..V....... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding 0 E..V.......
    ultralowlatency 1 E..V.......
    lowlatency 2 E..V.......
    webcam 3 E..V.......
    -usage <int> E..V....... Set the encoding usage (from 0 to 5) (default transcoding)
    transcoding 0 E..V....... Generic Transcoding
    ultralowlatency 1 E..V....... ultra low latency trancoding
    lowlatency 2 E..V....... low latency trancoding
    webcam 3 E..V....... Webcam
    high_quality 4 E..V....... high quality trancoding
    lowlatency_high_quality 5 E..V....... low latency yet high quality trancoding
    -profile <int> E..V....... Set the profile (default main) (from 1 to 1) (default main)
    main 1 E..V.......
    -profile_tier <int> E..V....... Set the profile tier (default main) (from 0 to 1) (default main)
    @@ -33,17 +35,22 @@ hevc_amf AVOptions:
    balanced 5 E..V.......
    speed 10 E..V.......
    quality 0 E..V.......
    -rc <int> E..V....... Set the rate control mode (from -1 to 3) (default -1)
    -rc <int> E..V....... Set the rate control mode (from -1 to 6) (default -1)
    cqp 0 E..V....... Constant Quantization Parameter
    cbr 3 E..V....... Constant Bitrate
    vbr_peak 2 E..V....... Peak Contrained Variable Bitrate
    vbr_latency 1 E..V....... Latency Constrained Variable Bitrate
    qvbr 4 E..V....... Quality Variable Bitrate
    hqvbr 5 E..V....... High Quality Variable Bitrate
    hqcbr 6 E..V....... High Quality Constant Bitrate
    -qvbr_quality_level <int> E..V....... Sets the QVBR quality level (from -1 to 51) (default -1)
    -header_insertion_mode <int> E..V....... Set header insertion mode (from 0 to 2) (default none)
    none 0 E..V.......
    gop 1 E..V.......
    idr 2 E..V.......
    -high_motion_quality_boost_enable <boolean> E..V....... Enable High motion quality boost mode (default auto)
    -gops_per_idr <int> E..V....... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 1)
    -preanalysis <boolean> E..V....... Enable preanalysis (default false)
    -preencode <boolean> E..V....... Enable preencode (default false)
    -vbaq <boolean> E..V....... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V....... Enforce HRD (default false)
    -filler_data <boolean> E..V....... Filler Data Enable (default false)
    @@ -58,4 +65,37 @@ hevc_amf AVOptions:
    -me_half_pel <boolean> E..V....... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V....... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V....... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V....... Enable AMF logging to debug output (default false)
    -log_to_dbg <boolean> E..V....... Enable AMF logging to debug output (default false)
    -preanalysis <boolean> E..V....... Enable preanalysis (default auto)
    -pa_activity_type <int> E..V....... Set the type of activity analysis (from -1 to 1) (default -1)
    y 0 E..V....... activity y
    yuv 1 E..V....... activity yuv
    -pa_scene_change_detection_enable <boolean> E..V....... Enable scene change detection (default auto)
    -pa_scene_change_detection_sensitivity <int> E..V....... Set the sensitivity of scene change detection (from -1 to 2) (default -1)
    low 0 E..V....... low scene change dectection sensitivity
    medium 1 E..V....... medium scene change dectection sensitivity
    high 2 E..V....... high scene change dectection sensitivity
    -pa_static_scene_detection_enable <boolean> E..V....... Enable static scene detection (default auto)
    -pa_static_scene_detection_sensitivity <int> E..V....... Set the sensitivity of static scene detection (from -1 to 2) (default -1)
    low 0 E..V....... low static scene dectection sensitivity
    medium 1 E..V....... medium static scene dectection sensitivity
    high 2 E..V....... high static scene dectection sensitivity
    -pa_initial_qp_after_scene_change <int> E..V....... The QP value that is used immediately after a scene change (from -1 to 51) (default -1)
    -pa_max_qp_before_force_skip <int> E..V....... The QP threshold to allow a skip frame (from -1 to 51) (default -1)
    -pa_caq_strength <int> E..V....... Content Adaptive Quantization strength (from -1 to 2) (default -1)
    low 0 E..V....... low Content Adaptive Quantization strength
    medium 1 E..V....... medium Content Adaptive Quantization strength
    high 2 E..V....... high Content Adaptive Quantization strength
    -pa_frame_sad_enable <boolean> E..V....... Enable Frame SAD algorithm (default auto)
    -pa_ltr_enable <boolean> E..V....... Enable long term reference frame management (default auto)
    -pa_lookahead_buffer_depth <int> E..V....... Sets the PA lookahead buffer size (from -1 to 41) (default -1)
    -pa_paq_mode <int> E..V....... Sets the perceptual adaptive quantization mode (from -1 to 1) (default -1)
    none 0 E..V....... no perceptual adaptive quantization
    caq 1 E..V....... caq perceptual adaptive quantization
    -pa_taq_mode <int> E..V....... Sets the temporal adaptive quantization mode (from -1 to 2) (default -1)
    none 0 E..V....... no temporal adaptive quantization
    1 1 E..V....... temporal adaptive quantization mode 1
    2 2 E..V....... temporal adaptive quantization mode 2
    -pa_high_motion_quality_boost_mode <int> E..V....... Sets the PA high motion quality boost mode (from -1 to 1) (default -1)
    none 0 E..V....... no high motion quality boost
    auto 1 E..V....... auto high motion quality boost
  4. nico-lab revised this gist May 2, 2021. 1 changed file with 57 additions and 56 deletions.
    113 changes: 57 additions & 56 deletions hevc_amf
    Original file line number Diff line number Diff line change
    @@ -1,60 +1,61 @@
    Encoder hevc_amf [AMD AMF HEVC encoder]:
    General capabilities: delay hardware
    General capabilities: dr1 delay hardware
    Threading capabilities: none
    Supported hardware devices: d3d11va d3d11va dxva2 dxva2
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
    hevc_amf AVOptions:
    -usage <int> E..V...... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding 0 E..V......
    ultralowlatency 1 E..V......
    lowlatency 2 E..V......
    webcam 3 E..V......
    -profile <int> E..V...... Set the profile (default main) (from 1 to 1) (default main)
    main 1 E..V......
    -profile_tier <int> E..V...... Set the profile tier (default main) (from 0 to 1) (default main)
    main 0 E..V......
    high 1 E..V......
    -level <int> E..V...... Set the encoding level (default auto) (from 0 to 186) (default auto)
    auto 0 E..V......
    1.0 30 E..V......
    2.0 60 E..V......
    2.1 63 E..V......
    3.0 90 E..V......
    3.1 93 E..V......
    4.0 120 E..V......
    4.1 123 E..V......
    5.0 150 E..V......
    5.1 153 E..V......
    5.2 156 E..V......
    6.0 180 E..V......
    6.1 183 E..V......
    6.2 186 E..V......
    -quality <int> E..V...... Set the encoding quality (from 0 to 10) (default speed)
    balanced 5 E..V......
    speed 10 E..V......
    quality 0 E..V......
    -rc <int> E..V...... Set the rate control mode (from -1 to 3) (default -1)
    cqp 0 E..V...... Constant Quantization Parameter
    cbr 3 E..V...... Constant Bitrate
    vbr_peak 2 E..V...... Peak Contrained Variable Bitrate
    vbr_latency 1 E..V...... Latency Constrained Variable Bitrate
    -header_insertion_mode <int> E..V...... Set header insertion mode (from 0 to 2) (default none)
    none 0 E..V......
    gop 1 E..V......
    idr 2 E..V......
    -gops_per_idr <int> E..V...... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 60)
    -preanalysis <boolean> E..V...... Enable preanalysis (default false)
    -vbaq <boolean> E..V...... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V...... Enforce HRD (default false)
    -filler_data <boolean> E..V...... Filler Data Enable (default false)
    -max_au_size <int> E..V...... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -min_qp_i <int> E..V...... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V...... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V...... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V...... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V...... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V...... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V...... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V...... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V...... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V...... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V...... Enable AMF logging to debug output (default false)
    -usage <int> E..V....... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding 0 E..V.......
    ultralowlatency 1 E..V.......
    lowlatency 2 E..V.......
    webcam 3 E..V.......
    -profile <int> E..V....... Set the profile (default main) (from 1 to 1) (default main)
    main 1 E..V.......
    -profile_tier <int> E..V....... Set the profile tier (default main) (from 0 to 1) (default main)
    main 0 E..V.......
    high 1 E..V.......
    -level <int> E..V....... Set the encoding level (default auto) (from 0 to 186) (default auto)
    auto 0 E..V.......
    1.0 30 E..V.......
    2.0 60 E..V.......
    2.1 63 E..V.......
    3.0 90 E..V.......
    3.1 93 E..V.......
    4.0 120 E..V.......
    4.1 123 E..V.......
    5.0 150 E..V.......
    5.1 153 E..V.......
    5.2 156 E..V.......
    6.0 180 E..V.......
    6.1 183 E..V.......
    6.2 186 E..V.......
    -quality <int> E..V....... Set the encoding quality (from 0 to 10) (default speed)
    balanced 5 E..V.......
    speed 10 E..V.......
    quality 0 E..V.......
    -rc <int> E..V....... Set the rate control mode (from -1 to 3) (default -1)
    cqp 0 E..V....... Constant Quantization Parameter
    cbr 3 E..V....... Constant Bitrate
    vbr_peak 2 E..V....... Peak Contrained Variable Bitrate
    vbr_latency 1 E..V....... Latency Constrained Variable Bitrate
    -header_insertion_mode <int> E..V....... Set header insertion mode (from 0 to 2) (default none)
    none 0 E..V.......
    gop 1 E..V.......
    idr 2 E..V.......
    -gops_per_idr <int> E..V....... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 1)
    -preanalysis <boolean> E..V....... Enable preanalysis (default false)
    -vbaq <boolean> E..V....... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V....... Enforce HRD (default false)
    -filler_data <boolean> E..V....... Filler Data Enable (default false)
    -max_au_size <int> E..V....... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -min_qp_i <int> E..V....... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V....... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V....... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V....... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V....... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V....... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V....... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V....... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V....... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V....... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V....... Enable AMF logging to debug output (default false)
  5. nico-lab revised this gist Nov 1, 2019. 1 changed file with 55 additions and 55 deletions.
    110 changes: 55 additions & 55 deletions hevc_amf
    Original file line number Diff line number Diff line change
    @@ -3,58 +3,58 @@ Encoder hevc_amf [AMD AMF HEVC encoder]:
    Threading capabilities: none
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
    hevc_amf AVOptions:
    -usage <int> E..V..... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding E..V.....
    ultralowlatency E..V.....
    lowlatency E..V.....
    webcam E..V.....
    -profile <int> E..V..... Set the profile (default main) (from 1 to 1) (default main)
    main E..V.....
    -profile_tier <int> E..V..... Set the profile tier (default main) (from 0 to 1) (default main)
    main E..V.....
    high E..V.....
    -level <int> E..V..... Set the encoding level (default auto) (from 0 to 186) (default auto)
    auto E..V.....
    1.0 E..V.....
    2.0 E..V.....
    2.1 E..V.....
    3.0 E..V.....
    3.1 E..V.....
    4.0 E..V.....
    4.1 E..V.....
    5.0 E..V.....
    5.1 E..V.....
    5.2 E..V.....
    6.0 E..V.....
    6.1 E..V.....
    6.2 E..V.....
    -quality <int> E..V..... Set the encoding quality (from 0 to 10) (default speed)
    balanced E..V.....
    speed E..V.....
    quality E..V.....
    -rc <int> E..V..... Set the rate control mode (from -1 to 3) (default -1)
    cqp E..V..... Constant Quantization Parameter
    cbr E..V..... Constant Bitrate
    vbr_peak E..V..... Peak Contrained Variable Bitrate
    vbr_latency E..V..... Latency Constrained Variable Bitrate
    -header_insertion_mode <int> E..V..... Set header insertion mode (from 0 to 2) (default none)
    none E..V.....
    gop E..V.....
    idr E..V.....
    -gops_per_idr <int> E..V..... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 60)
    -preanalysis <boolean> E..V..... Enable preanalysis (default false)
    -vbaq <boolean> E..V..... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V..... Enforce HRD (default false)
    -filler_data <boolean> E..V..... Filler Data Enable (default false)
    -max_au_size <int> E..V..... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -min_qp_i <int> E..V..... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V..... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V..... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V..... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V..... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V..... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V..... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V..... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V..... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V..... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V..... Enable AMF logging to debug output (default false)
    -usage <int> E..V...... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding 0 E..V......
    ultralowlatency 1 E..V......
    lowlatency 2 E..V......
    webcam 3 E..V......
    -profile <int> E..V...... Set the profile (default main) (from 1 to 1) (default main)
    main 1 E..V......
    -profile_tier <int> E..V...... Set the profile tier (default main) (from 0 to 1) (default main)
    main 0 E..V......
    high 1 E..V......
    -level <int> E..V...... Set the encoding level (default auto) (from 0 to 186) (default auto)
    auto 0 E..V......
    1.0 30 E..V......
    2.0 60 E..V......
    2.1 63 E..V......
    3.0 90 E..V......
    3.1 93 E..V......
    4.0 120 E..V......
    4.1 123 E..V......
    5.0 150 E..V......
    5.1 153 E..V......
    5.2 156 E..V......
    6.0 180 E..V......
    6.1 183 E..V......
    6.2 186 E..V......
    -quality <int> E..V...... Set the encoding quality (from 0 to 10) (default speed)
    balanced 5 E..V......
    speed 10 E..V......
    quality 0 E..V......
    -rc <int> E..V...... Set the rate control mode (from -1 to 3) (default -1)
    cqp 0 E..V...... Constant Quantization Parameter
    cbr 3 E..V...... Constant Bitrate
    vbr_peak 2 E..V...... Peak Contrained Variable Bitrate
    vbr_latency 1 E..V...... Latency Constrained Variable Bitrate
    -header_insertion_mode <int> E..V...... Set header insertion mode (from 0 to 2) (default none)
    none 0 E..V......
    gop 1 E..V......
    idr 2 E..V......
    -gops_per_idr <int> E..V...... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 60)
    -preanalysis <boolean> E..V...... Enable preanalysis (default false)
    -vbaq <boolean> E..V...... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V...... Enforce HRD (default false)
    -filler_data <boolean> E..V...... Filler Data Enable (default false)
    -max_au_size <int> E..V...... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -min_qp_i <int> E..V...... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V...... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V...... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V...... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V...... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V...... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V...... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V...... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V...... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V...... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V...... Enable AMF logging to debug output (default false)
  6. nico-lab revised this gist Jan 26, 2019. 1 changed file with 57 additions and 58 deletions.
    115 changes: 57 additions & 58 deletions hevc_amf
    Original file line number Diff line number Diff line change
    @@ -1,61 +1,60 @@
    Encoder hevc_amf [AMD AMF HEVC encoder]:
    General capabilities: delay
    General capabilities: delay hardware
    Threading capabilities: none
    Supported pixel formats: nv12 yuv420p d3d11
    Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
    hevc_amf AVOptions:
    -usage <int> E..V.... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding E..V....
    ultralowlatency E..V....
    lowlatency E..V....
    webcam E..V....
    -profile <int> E..V.... Set the profile (default main) (from 1 to 1) (default main)
    main E..V....
    -profile_tier <int> E..V.... Set the profile tier (default main) (from 0 to 1) (default main)
    main E..V....
    high E..V....
    -level <int> E..V.... Set the encoding level (default auto) (from 0 to 186) (default auto)
    auto E..V....
    1.0 E..V....
    2.0 E..V....
    2.1 E..V....
    3.0 E..V....
    3.1 E..V....
    4.0 E..V....
    4.1 E..V....
    5.0 E..V....
    5.1 E..V....
    5.2 E..V....
    6.0 E..V....
    6.1 E..V....
    6.2 E..V....
    -quality <int> E..V.... Set the encoding quality (from 0 to 10) (default speed)
    balanced E..V....
    speed E..V....
    quality E..V....
    -rc <int> E..V.... Set the rate control mode (from -1 to 3) (default -1)
    cqp E..V.... Constant Quantization Parameter
    cbr E..V.... Constant Bitrate
    vbr_peak E..V.... Peak Contrained Variable Bitrate
    vbr_latency E..V.... Latency Constrained Variable Bitrate
    -header_insertion_mode <int> E..V.... Set header insertion mode (from 0 to 2) (default none)
    none E..V....
    gop E..V....
    idr E..V....
    -gops_per_idr <int> E..V.... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 60)
    -preanalysis <boolean> E..V.... Enable preanalysis (default false)
    -vbaq <boolean> E..V.... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V.... Enforce HRD (default false)
    -filler_data <boolean> E..V.... Filler Data Enable (default false)
    -max_au_size <int> E..V.... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -min_qp_i <int> E..V.... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V.... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V.... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V.... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V.... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V.... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V.... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V.... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V.... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V.... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V.... Enable AMF logging to debug output (default false)

    -usage <int> E..V..... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding E..V.....
    ultralowlatency E..V.....
    lowlatency E..V.....
    webcam E..V.....
    -profile <int> E..V..... Set the profile (default main) (from 1 to 1) (default main)
    main E..V.....
    -profile_tier <int> E..V..... Set the profile tier (default main) (from 0 to 1) (default main)
    main E..V.....
    high E..V.....
    -level <int> E..V..... Set the encoding level (default auto) (from 0 to 186) (default auto)
    auto E..V.....
    1.0 E..V.....
    2.0 E..V.....
    2.1 E..V.....
    3.0 E..V.....
    3.1 E..V.....
    4.0 E..V.....
    4.1 E..V.....
    5.0 E..V.....
    5.1 E..V.....
    5.2 E..V.....
    6.0 E..V.....
    6.1 E..V.....
    6.2 E..V.....
    -quality <int> E..V..... Set the encoding quality (from 0 to 10) (default speed)
    balanced E..V.....
    speed E..V.....
    quality E..V.....
    -rc <int> E..V..... Set the rate control mode (from -1 to 3) (default -1)
    cqp E..V..... Constant Quantization Parameter
    cbr E..V..... Constant Bitrate
    vbr_peak E..V..... Peak Contrained Variable Bitrate
    vbr_latency E..V..... Latency Constrained Variable Bitrate
    -header_insertion_mode <int> E..V..... Set header insertion mode (from 0 to 2) (default none)
    none E..V.....
    gop E..V.....
    idr E..V.....
    -gops_per_idr <int> E..V..... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 60)
    -preanalysis <boolean> E..V..... Enable preanalysis (default false)
    -vbaq <boolean> E..V..... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V..... Enforce HRD (default false)
    -filler_data <boolean> E..V..... Filler Data Enable (default false)
    -max_au_size <int> E..V..... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -min_qp_i <int> E..V..... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V..... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V..... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V..... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V..... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V..... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V..... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V..... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V..... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V..... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V..... Enable AMF logging to debug output (default false)
  7. nico-lab created this gist Jan 3, 2018.
    61 changes: 61 additions & 0 deletions hevc_amf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,61 @@
    Encoder hevc_amf [AMD AMF HEVC encoder]:
    General capabilities: delay
    Threading capabilities: none
    Supported pixel formats: nv12 yuv420p d3d11
    hevc_amf AVOptions:
    -usage <int> E..V.... Set the encoding usage (from 0 to 3) (default transcoding)
    transcoding E..V....
    ultralowlatency E..V....
    lowlatency E..V....
    webcam E..V....
    -profile <int> E..V.... Set the profile (default main) (from 1 to 1) (default main)
    main E..V....
    -profile_tier <int> E..V.... Set the profile tier (default main) (from 0 to 1) (default main)
    main E..V....
    high E..V....
    -level <int> E..V.... Set the encoding level (default auto) (from 0 to 186) (default auto)
    auto E..V....
    1.0 E..V....
    2.0 E..V....
    2.1 E..V....
    3.0 E..V....
    3.1 E..V....
    4.0 E..V....
    4.1 E..V....
    5.0 E..V....
    5.1 E..V....
    5.2 E..V....
    6.0 E..V....
    6.1 E..V....
    6.2 E..V....
    -quality <int> E..V.... Set the encoding quality (from 0 to 10) (default speed)
    balanced E..V....
    speed E..V....
    quality E..V....
    -rc <int> E..V.... Set the rate control mode (from -1 to 3) (default -1)
    cqp E..V.... Constant Quantization Parameter
    cbr E..V.... Constant Bitrate
    vbr_peak E..V.... Peak Contrained Variable Bitrate
    vbr_latency E..V.... Latency Constrained Variable Bitrate
    -header_insertion_mode <int> E..V.... Set header insertion mode (from 0 to 2) (default none)
    none E..V....
    gop E..V....
    idr E..V....
    -gops_per_idr <int> E..V.... GOPs per IDR 0-no IDR will be inserted (from 0 to INT_MAX) (default 60)
    -preanalysis <boolean> E..V.... Enable preanalysis (default false)
    -vbaq <boolean> E..V.... Enable VBAQ (default false)
    -enforce_hrd <boolean> E..V.... Enforce HRD (default false)
    -filler_data <boolean> E..V.... Filler Data Enable (default false)
    -max_au_size <int> E..V.... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0)
    -min_qp_i <int> E..V.... min quantization parameter for I-frame (from -1 to 51) (default -1)
    -max_qp_i <int> E..V.... max quantization parameter for I-frame (from -1 to 51) (default -1)
    -min_qp_p <int> E..V.... min quantization parameter for P-frame (from -1 to 51) (default -1)
    -max_qp_p <int> E..V.... max quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_p <int> E..V.... quantization parameter for P-frame (from -1 to 51) (default -1)
    -qp_i <int> E..V.... quantization parameter for I-frame (from -1 to 51) (default -1)
    -skip_frame <boolean> E..V.... Rate Control Based Frame Skip (default false)
    -me_half_pel <boolean> E..V.... Enable ME Half Pixel (default true)
    -me_quarter_pel <boolean> E..V.... Enable ME Quarter Pixel (default true)
    -aud <boolean> E..V.... Inserts AU Delimiter NAL unit (default false)
    -log_to_dbg <boolean> E..V.... Enable AMF logging to debug output (default false)