From ce4de643fc96b89148a99281d3ef2edbf03e72f9 Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Fri, 13 Feb 2009 16:30:14 -0800 Subject: [PATCH] Show FPS when importing a raw YUV file --- x264.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x264.c b/x264.c index 04bb44ce..da79e960 100644 --- a/x264.c +++ b/x264.c @@ -639,7 +639,7 @@ static int Parse( int argc, char **argv, && sscanf( psz, "%ux%u", ¶m->i_width, ¶m->i_height ) == 2 ) { if( param->i_log_level >= X264_LOG_INFO ) - fprintf( stderr, "x264 [info]: file name gives %dx%d\n", param->i_width, param->i_height ); + fprintf( stderr, "x264 [info]: %dx%d (given by file name) @ %.2f fps\n", param->i_width, param->i_height, (double)param->i_fps_num / (double)param->i_fps_den); break; } } @@ -647,6 +647,8 @@ static int Parse( int argc, char **argv, else { sscanf( argv[optind++], "%ux%u", ¶m->i_width, ¶m->i_height ); + if( param->i_log_level >= X264_LOG_INFO ) + fprintf( stderr, "x264 [info]: %dx%d @ %.2f fps\n", param->i_width, param->i_height, (double)param->i_fps_num / (double)param->i_fps_den); } } -- 2.40.0