12.03.2021, 16:30
Quote:VBV Buffer Size = 3 213 kB3 213 kByte = 25 704 kBit
High@3.2 is buffer size 25 000 kBit, but "BD 25/50 1x" speed limit with 24000 seems okay.
Quote:Is it OK to have Buffer Size and Max Fill Rate at the same size, and = 24000 kbits ?sure.
Quote:“--bluray-compat” has to be manually added to Command LineI'm noot happy with that,...
current Blu-Ray/AVCHD compatibility enforces:
- weightedP to be restircted to 'refs'
- it enforces the use of slices
- restricts the supported AVC Profile&Levels
- restricts the gop size to single or double fps depending on the bitrate
- restrict output resolution/frame rate/scan-type combinations
- allows pulldown flags
- limits bPyramid to 'disabled' and 'strict'
- limits minimal gop size to 1
- limits bFrames to max 3
- enabled aud
- restricts allowed VUI settings
- enabled hrd vbr signaling
Looking at the x264 source code:
if( h->param.b_bluray_compat )
{
h->param.i_bframe_pyramid = X264_MIN( X264_B_PYRAMID_STRICT, h->param.i_bframe_pyramid );
h->param.i_bframe = X264_MIN( h->param.i_bframe, 3 );
h->param.b_aud = 1;
h->param.i_nal_hrd = X264_MAX( h->param.i_nal_hrd, X264_NAL_HRD_VBR );
h->param.i_slice_max_size = 0;
h->param.i_slice_max_mbs = 0;
h->param.b_intra_refresh = 0;
h->param.i_frame_reference = X264_MIN( h->param.i_frame_reference, 6 );
h->param.i_dpb_size = X264_MIN( h->param.i_dpb_size, 6 );
/* Don't use I-frames, because Blu-ray treats them the same as IDR. */
h->param.i_keyint_min = 1;
/* Due to the proliferation of broken players that don't handle dupes properly. */
h->param.analyse.i_weighted_pred = X264_MIN( h->param.analyse.i_weighted_pred, X264_WEIGHTP_SIMPLE );
if( h->param.b_fake_interlaced )
h->param.b_pic_struct = 1;
}
- limits the way references are chosen:
/* For Blu-ray compliance, don't reference frames outside of the minigop. */
if( IS_X264_TYPE_B( h->fenc->i_type ) && h->param.b_bluray_compat )
h->i_ref[0] = X264_MIN( h->i_ref[0], IS_X264_TYPE_B( h->fref[0][0]->i_type ) + 1 );
-> Question is, are all these really necessary?
- "x264->Base->Restriction Settings->AVC Profile/Level" to "High/4.2"
- "x264->Misc->Main->Restrictions->Access unit delimiters"
- "x264->Misc->Main->Restrictions->Contrained intra prediction"
- limit B-frame usage to max 3
- "x264->Base->Restriction Settings->Multi-slice->restricted by slices per frame" 4
- only use b-pyramid 'disabled' or 'strict'
- "x264->Base->Restriction Settings->signal hrd" to "vbr"
- no more than 6 references
- "x264->Frames->GOP size min/max" to 1 and 50 or 60
- limit VBV to "BD 25/50 1x" 25000/25000
- "x264->Frames->Weigthed P-frame prediction" with 'refs' or disabled'
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.