}
if( !idx )
{
- idx = FFMS_MakeIndex( psz_filename, 0, 0, NULL, NULL, 0, update_progress, &h->time, &e );
- fprintf( stderr, " \r" );
+ if( opt->progress )
+ {
+ idx = FFMS_MakeIndex( psz_filename, 0, 0, NULL, NULL, 0, update_progress, &h->time, &e );
+ fprintf( stderr, " \r" );
+ }
+ else
+ idx = FFMS_MakeIndex( psz_filename, 0, 0, NULL, NULL, 0, NULL, NULL, &e );
FAIL_IF_ERROR( !idx, "could not create index\n" )
if( opt->index_file && FFMS_WriteIndex( opt->index_file, idx, &e ) )
x264_cli_log( "ffms", X264_LOG_WARNING, "could not write index file\n" );
if( parse( argc, argv, ¶m, &opt ) < 0 )
ret = -1;
+ /* Restore title; it can be changed by input modules */
+ SetConsoleTitle( originalCTitle );
+
/* Control-C handler */
signal( SIGINT, sigint_handler );
info.tff = param->b_tff;
info.vfr = param->b_vfr_input;
+ input_opt.progress = opt->b_progress;
+
if( select_input( demuxer, demuxername, input_filename, &opt->hin, &info, &input_opt ) )
return -1;