Log in

View Full Version : x264 DecodingDelay?


chompy
15th February 2022, 12:05
Hello,

Is it possible to force an specific DecodingDelay in x264 while creating a bluray compatible video file?

I would like to generate a video file with the following parameters in order to seamlessly join it in Scenarist with an existing video file which has them:

AVC_vcl_hrd_parameters_present_flag=1
AVC_cpb_removal_delay_length_minus1=7
AVC_dpb_output_delay_length_minus1=5

Thanks and best regards

MasterNobody
15th February 2022, 21:13
Hi. Short answer: no. Long answer:
AVC_vcl_hrd_parameters_present_flag=1
x264 don't support VCL HRD (https://code.videolan.org/videolan/x264/-/blob/5585eafe31c2299163dcb206e05e18be7dd93098/encoder/set.c#L228)
AVC_cpb_removal_delay_length_minus1=7
You will need to find combination of --keyint and --fps which will result in 128..255 for max_cpb_output_delay (https://code.videolan.org/videolan/x264/-/blob/5585eafe31c2299163dcb206e05e18be7dd93098/encoder/ratecontrol.c#L689)
AVC_dpb_output_delay_length_minus1=5
You will need to find combination of --ref, --b-pyramid and --fps which will result in 32..63 for max_dpb_output_delay (https://code.videolan.org/videolan/x264/-/blob/5585eafe31c2299163dcb206e05e18be7dd93098/encoder/ratecontrol.c#L690)

chompy
16th February 2022, 07:34
Ok, thanks for explain me why not.