[FFmpeg-user] libx264 options through FFmpeg

Thomas Worth dev at rarevision.com
Thu Jun 30 18:15:50 CEST 2011


>>>> btw I see there is now a "bluray-compat" switch that saves having to
>>>> explicitly specify a number of others, such as nal_hrd and b_pyramid.

FYI, from /x264/encoder/encoder.c:

    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 );
        /* 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;
    }


More information about the ffmpeg-user mailing list