diff -uNrp a/x264.c b/x264.c --- a/x264.c 2009-12-05 21:34:24 +0200 +++ b/x264.c 2009-12-05 22:04:10 +0200 @@ -1204,6 +1204,9 @@ static int Encode( x264_param_t *param, int64_t i_file; int i_frame_size; int i_update_interval; + #ifdef _WIN32 + char originalCTitle[200]; + #endif opt->b_progress &= param->i_log_level < X264_LOG_DEBUG; i_frame_total = input.get_frame_total( opt->hin ); @@ -1238,6 +1241,10 @@ static int Encode( x264_param_t *param, i_start = x264_mdate(); + #ifdef _WIN32 + GetConsoleTitle( originalCTitle, 200 ); + #endif + /* Encode frames */ for( i_frame = 0, i_file = 0, i_frame_output = 0; b_ctrl_c == 0 && (i_frame < i_frame_total || i_frame_total == 0); ) { @@ -1284,6 +1291,10 @@ static int Encode( x264_param_t *param, Print_status( i_start, i_frame_output, i_frame_total, i_file, param ); } + #ifdef _WIN32 + SetConsoleTitle( originalCTitle ); + #endif + i_end = x264_mdate(); input.picture_clean( &pic ); /* Erase progress indicator before printing encoding stats. */