From ce0b11099e5fa920b8d1bc39389ae9373f921358 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Tue, 21 Oct 2008 19:38:21 -0700 Subject: [PATCH] Print profile and level information upon starting encode Previously level was only printed as part of autodetect, and only in verbose mode. --- encoder/encoder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.47.3