Commit 456e8fdc authored by Loren Merritt's avatar Loren Merritt

reduce default verbosity, add option -v


git-svn-id: svn://svn.videolan.org/x264/trunk@81 df754926-b1dd-0310-bc7b-ec298dee348c
parent 007c6f71
......@@ -94,7 +94,7 @@ void x264_param_default( x264_param_t *param )
/* Log */
param->pf_log = x264_log_default;
param->p_log_private = NULL;
param->i_log_level = X264_LOG_DEBUG;
param->i_log_level = X264_LOG_INFO;
/* */
param->analyse.intra = X264_ANALYSE_I4x4;
......
......@@ -147,6 +147,7 @@ static void Help( x264_param_t *defaults )
" --no-asm Disable any CPU optims\n"
" --no-psnr Disable PSNR computaion\n"
" --quiet Quiet Mode\n"
" -v, --verbose Print stats for each frame\n"
"\n",
X264_BUILD,
defaults->i_idrframe,
......@@ -250,12 +251,13 @@ static int Parse( int argc, char **argv,
{ "cplxblur",required_argument, NULL, OPT_CPLXBLUR },
{ "no-psnr", no_argument, NULL, OPT_NOPSNR },
{ "quiet", no_argument, NULL, OPT_QUIET },
{ "verbose", no_argument, NULL, 'v' },
{0, 0, 0, 0}
};
int c;
c = getopt_long( argc, argv, "hi:I:b:r:cxB:q:no:s:A:p:",
c = getopt_long( argc, argv, "hi:I:b:r:cxB:q:nf:o:s:A:m:p:v",
long_options, &long_options_index);
if( c == -1 )
......@@ -432,6 +434,9 @@ static int Parse( int argc, char **argv,
case OPT_QUIET:
param->i_log_level = X264_LOG_NONE;
break;
case 'v':
param->i_log_level = X264_LOG_DEBUG;
break;
default:
fprintf( stderr, "unknown option (%c)\n", optopt );
return -1;
......
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