diff -uNrp a/common/common.c b/common/common.c --- a/common/common.c 2008-11-04 14:52:48 +0200 +++ b/common/common.c 2008-11-04 16:14:33 +0200 @@ -869,7 +869,7 @@ char *x264_param2string( x264_param_t *p if( p->rc.i_rc_method == X264_RC_ABR || p->rc.i_rc_method == X264_RC_CRF ) { if( p->rc.i_rc_method == X264_RC_CRF ) - s += sprintf( s, " crf=%.1f", p->rc.f_rf_constant ); + s += sprintf( s, " crf=%.4f", p->rc.f_rf_constant ); else s += sprintf( s, " bitrate=%d ratetol=%.1f", p->rc.i_bitrate, p->rc.f_rate_tolerance ); diff -uNrp a/encoder/encoder.c b/encoder/encoder.c --- a/encoder/encoder.c 2008-11-04 14:52:49 +0200 +++ b/encoder/encoder.c 2008-11-04 16:15:24 +0200 @@ -752,6 +752,10 @@ x264_t *x264_encoder_open ( x264_param p += sprintf( p, " none!" ); x264_log( h, X264_LOG_INFO, "%s\n", buf ); + char *opts = x264_param2string( &h->param, 0 ); + x264_log( h, X264_LOG_INFO, "%s\n", opts ); + x264_free( opts ); + h->out.i_nal = 0; h->out.i_bitstream = X264_MAX( 1000000, h->param.i_width * h->param.i_height * 4 * ( h->param.rc.i_rc_method == X264_RC_ABR ? pow( 0.95, h->param.rc.i_qp_min ) diff -uNrp a/x264.c b/x264.c --- a/x264.c 2008-11-04 14:52:49 +0200 +++ b/x264.c 2008-11-04 16:16:45 +0200 @@ -874,9 +874,18 @@ static int Encode( x264_param_t *param, /* Erase progress indicator before printing encoding stats. */ if( opt->b_progress ) fprintf( stderr, " \r" ); + if( i_frame > 0 ) + { + double fps = (double)i_frame * (double)1000000 / + (double)( i_end - i_start ); + + x264_log( h, X264_LOG_INFO, "encoded %d frames, %.2f fps, %.2f kb/s\n", i_frame, fps, + (double) i_file * 8 * param->i_fps_num / + ( (double) param->i_fps_den * i_frame * 1000 ) ); + } x264_encoder_close( h ); x264_free( mux_buffer ); - fprintf( stderr, "\n" ); + //fprintf( stderr, "\n" ); if( b_ctrl_c ) fprintf( stderr, "aborted at input frame %d\n", opt->i_seek + i_frame ); @@ -889,7 +898,7 @@ static int Encode( x264_param_t *param, double fps = (double)i_frame * (double)1000000 / (double)( i_end - i_start ); - fprintf( stderr, "encoded %d frames, %.2f fps, %.2f kb/s\n", i_frame, fps, + fprintf( stderr, "encoded %d frames, %.2f fps, %.2f kb/s\n\n", i_frame, fps, (double) i_file * 8 * param->i_fps_num / ( (double) param->i_fps_den * i_frame * 1000 ) ); }