Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am a new one in x264, i was asked to use the latest x264 to make a new encoder, i want to make the encoder encode the stream much smaller because we have a bad network.
the follow is my settings :
i need your suggestions for this ,if i can not make the new one much better i may get fired


C++
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 ;
Posted
Updated 2-May-13 21:50pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900