]> git.videolan.org Git - x264.git/commitdiff
Print profile and level information upon starting encode
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 22 Oct 2008 02:38:21 +0000 (19:38 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 22 Oct 2008 02:38:21 +0000 (19:38 -0700)
Previously level was only printed as part of autodetect, and only in verbose mode.

encoder/encoder.c

index f1c7457fd5eb4de98e409d5ba50f6ec695fac0b6..a96306d8f28fcad9017ea3ad95b27ba02d2be480 100644 (file)
@@ -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;
 }