I'm using AMD VCE 265 encode in Handbrake. Always GOP Size = 60. I tried writing in the Extra Options box:
keyint=30
--keyint 30
keyint=30:open-gop
--gop-len 30
GOP Size: 30
etc.
Nothing changes the GOP Size, it always remains 60. How can I change the GOP Size for the AMD VCE codec?
+ Reply to Thread
Results 1 to 7 of 7
-
Last edited by gelo333; 9th Jul 2022 at 14:12.
-
I don't see a GOP size option for the VCE encoder:
https://handbrake.fr/docs/en/latest/technical/video-vce.html
Are you sure keyint=30 didn't work? I tried it with the h264_qsv and h.265_qsv encoders and it worked (though it's not documented as an option for them). MediaInfo doesn't show the GOP size but ffprobe (which actually looks at the entire video stream) shows the specified GOP size (I tried encodings with keyint=8 and keyint=30 to make sure it wasn't coincidental).Last edited by jagabo; 9th Jul 2022 at 18:24.
-
The coding log says:
encavcodecInit: Unknown avcodec option keyint
And also in the log it says:
encavcodec: GOP Size 60 -
After your hint, I found working options:
g=20
g=10
g=1 (error video)
Although the coding log still says that GOP Size = 60 -
LOL, I initially suggest -g=30 in the earlier post. After some experimentation with the QSV encoders (I don't have an AMD/ATI card) I changed the post to -keyint instead.
Handbrake doesn't know what those optional parameters are doing. It just sends them to the encoder. So the log wouldn't show the new GOP size.Last edited by jagabo; 10th Jul 2022 at 09:16.
-
I don't know where there's a comprehensive list. The handbrake link I gave earlier lists some of them. ffmpeg lists some too:
Code:command line to generate this list: ffmpeg -? encoder=h264_amf >help_h264_amf.txt Encoder h264_amf [AMD AMF H.264 Encoder]: General capabilities: dr1 delay hardware Threading capabilities: none Supported hardware devices: d3d11va d3d11va dxva2 dxva2 Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld h264_amf AVOptions: -usage <int> E..V....... Encoder Usage (from 0 to 3) (default transcoding) transcoding 0 E..V....... Generic Transcoding ultralowlatency 1 E..V....... lowlatency 2 E..V....... webcam 3 E..V....... Webcam -profile <int> E..V....... Profile (from 66 to 257) (default main) main 77 E..V....... high 100 E..V....... constrained_baseline 256 E..V....... constrained_high 257 E..V....... -level <int> E..V....... Profile Level (from 0 to 62) (default auto) auto 0 E..V....... 1.0 10 E..V....... 1.1 11 E..V....... 1.2 12 E..V....... 1.3 13 E..V....... 2.0 20 E..V....... 2.1 21 E..V....... 2.2 22 E..V....... 3.0 30 E..V....... 3.1 31 E..V....... 3.2 32 E..V....... 4.0 40 E..V....... 4.1 41 E..V....... 4.2 42 E..V....... 5.0 50 E..V....... 5.1 51 E..V....... 5.2 52 E..V....... 6.0 60 E..V....... 6.1 61 E..V....... 6.2 62 E..V....... -quality <int> E..V....... Quality Preference (from 0 to 2) (default speed) speed 1 E..V....... Prefer Speed balanced 0 E..V....... Balanced quality 2 E..V....... Prefer Quality -rc <int> E..V....... Rate Control Method (from -1 to 3) (default -1) cqp 0 E..V....... Constant Quantization Parameter cbr 1 E..V....... Constant Bitrate vbr_peak 2 E..V....... Peak Contrained Variable Bitrate vbr_latency 3 E..V....... Latency Constrained Variable Bitrate -enforce_hrd <boolean> E..V....... Enforce HRD (default false) -filler_data <boolean> E..V....... Filler Data Enable (default false) -vbaq <boolean> E..V....... Enable VBAQ (default false) -frame_skipping <boolean> E..V....... Rate Control Based Frame Skip (default false) -qp_i <int> E..V....... Quantization Parameter for I-Frame (from -1 to 51) (default -1) -qp_p <int> E..V....... Quantization Parameter for P-Frame (from -1 to 51) (default -1) -qp_b <int> E..V....... Quantization Parameter for B-Frame (from -1 to 51) (default -1) -preanalysis <boolean> E..V....... Pre-Analysis Mode (default false) -max_au_size <int> E..V....... Maximum Access Unit Size for rate control (in bits) (from 0 to INT_MAX) (default 0) -header_spacing <int> E..V....... Header Insertion Spacing (from -1 to 1000) (default -1) -bf_delta_qp <int> E..V....... B-Picture Delta QP (from -10 to 10) (default 4) -bf_ref <boolean> E..V....... Enable Reference to B-Frames (default true) -bf_ref_delta_qp <int> E..V....... Reference B-Picture Delta QP (from -10 to 10) (default 4) -intra_refresh_mb <int> E..V....... Intra Refresh MBs Number Per Slot in Macroblocks (from 0 to INT_MAX) (default 0) -coder <int> E..V....... Coding Type (from 0 to 2) (default auto) auto 0 E..V....... Automatic cavlc 2 E..V....... Context Adaptive Variable-Length Coding cabac 1 E..V....... Context Adaptive Binary Arithmetic Coding -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)
Code:command line to generate this list: ffmpeg -? encoder=hevc_amf >help_hevc_amf.txt 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 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 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)
https://gpuopen.com/advanced-media-framework/
Similar Threads
-
Best way to encode down from H.265 Main 10 (10 bit).
By nicktheone in forum Video ConversionReplies: 1Last Post: 4th Apr 2021, 16:23 -
Where to change default Handbrake GOP size?
By Dougmeister in forum EditingReplies: 4Last Post: 4th Jan 2021, 18:13 -
transfer sub and font during 265 encode
By ghazalo in forum SubtitleReplies: 10Last Post: 2nd Jan 2021, 07:31 -
Handbrake GOP setting
By jseo13579 in forum EditingReplies: 13Last Post: 27th Sep 2020, 19:11 -
Is dynamic GOP the same as closed GOP. GOP of half the frame rate?
By Chibi in forum EditingReplies: 3Last Post: 31st Aug 2017, 13:33