Commit 8eac8667 authored by Ilkka Ollakka's avatar Ilkka Ollakka

x264: in crf mode, set stream bitrate to be maxrate, so in muxer we have some idea about bitrate

parent 26b84afd
...@@ -939,6 +939,8 @@ static int Open ( vlc_object_t *p_this ) ...@@ -939,6 +939,8 @@ static int Open ( vlc_object_t *p_this )
/* max bitrate = average bitrate -> CBR */ /* max bitrate = average bitrate -> CBR */
p_sys->param.rc.i_vbv_max_bitrate = var_GetInteger( p_enc, SOUT_CFG_PREFIX "vbv-maxrate" ); p_sys->param.rc.i_vbv_max_bitrate = var_GetInteger( p_enc, SOUT_CFG_PREFIX "vbv-maxrate" );
if( p_sys->param.rc.i_vbv_max_bitrate && p_sys->param.rc.i_rc_method != X264_RC_ABR )
p_enc->fmt_out.i_bitrate = p_sys->param.rc.i_vbv_max_bitrate * 1000;
if( !var_GetBool( p_enc, SOUT_CFG_PREFIX "mbtree" ) ) if( !var_GetBool( p_enc, SOUT_CFG_PREFIX "mbtree" ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment