Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Video Multimedia
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
 

 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 2-May-13 22:29pm
Edited 2-May-13 22:50pm
(no name)2.3K
v2

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,476
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,917


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 3 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100