diff -uNrp src/x264.c src.new/x264.c --- src/x264.c 2011-03-28 21:35:08 +0300 +++ src.new/x264.c 2011-03-28 21:37:32 +0300 @@ -1796,6 +1796,9 @@ static int encode( x264_param_t *param, if( opt->tcfile_out ) fprintf( opt->tcfile_out, "# timecode format v2\n" ); + time_t tm1 = time(NULL); + x264_cli_log( "x264", X264_LOG_INFO, "started at %s", ctime(&tm1) ); + /* Encode frames */ for( ; !b_ctrl_c && (i_frame < param->i_frame_total || !param->i_frame_total); i_frame++ ) { @@ -1912,5 +1915,10 @@ fail: (double) i_file * 8 / ( 1000 * duration ) ); } + time_t tm2 = time(NULL); + x264_cli_log( "x264", X264_LOG_INFO, "ended at %s", ctime(&tm2) ); + tm2 -= tm1; + x264_cli_log( "x264", X264_LOG_INFO, "encoding duration %d:%02d:%02d\n", tm2 / 3600, tm2 % 3600 / 60, tm2 % 60 ); + return retval; }