From: Jason Garrett-Glaser Date: Wed, 22 Oct 2008 02:38:21 +0000 (-0700) Subject: Print profile and level information upon starting encode X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ce0b11099e5fa920b8d1bc39389ae9373f921358;p=x264.git Print profile and level information upon starting encode Previously level was only printed as part of autodetect, and only in verbose mode. --- diff --git a/encoder/encoder.c b/encoder/encoder.c index f1c7457f..a96306d8 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -527,7 +527,6 @@ static int x264_validate_parameters( x264_t *h ) while( l[1].level_idc && x264_validate_levels( h, 0 ) && l++ ); if( h->param.rc.i_vbv_buffer_size <= 0 ) h->param.rc.i_vbv_max_bitrate = 0; - x264_log( h, X264_LOG_DEBUG, "level_idc: %d\n", h->param.i_level_idc ); } else { @@ -790,6 +789,12 @@ x264_t *x264_encoder_open ( x264_param_t *param ) } } + x264_log( h, X264_LOG_INFO, "profile %s, level %d.%d\n", + h->sps->i_profile_idc == PROFILE_BASELINE ? "Baseline" : + h->sps->i_profile_idc == PROFILE_MAIN ? "Main" : + h->sps->i_profile_idc == PROFILE_HIGH ? "High" : + "High 4:4:4 Predictive", h->sps->i_level_idc/10, h->sps->i_level_idc%10 ); + return h; }