int nRet = 0 ; nRet = x264_param_default_preset(&m_X264Param,"slow","zerolatency") ; m_X264Param.i_bframe_adaptive = X264_B_ADAPT_TRELLIS ; m_X264Param.rc.f_vbv_buffer_init = 0.9 ; m_X264Param.rc.i_vbv_max_bitrate = params.nBitRate/1000 ; m_X264Param.rc.i_vbv_buffer_size = params.nBitRate/1000 ; m_X264Param.rc.i_rc_method = X264_RC_ABR ; m_X264Param.rc.i_lookahead = 30; m_X264Param.rc.f_rate_tolerance = 0.8 ; m_X264Param.i_bframe = 5 ; m_X264Param.i_bframe_pyramid = 2 ; m_X264Param.i_frame_reference = 8 ; m_X264Param.i_keyint_max = 580 ; m_X264Param.i_keyint_min = X264_KEYINT_MIN_AUTO ; m_X264Param.vui.i_transfer = 1 ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)