]> granicus.if.org Git - libx264/commitdiff
Show FPS when importing a raw YUV file
authorTal Aloni <tal.aloni.il@gmail.com>
Sat, 14 Feb 2009 00:30:14 +0000 (16:30 -0800)
committerFiona Glaser <fiona@x264.com>
Sat, 14 Feb 2009 00:30:14 +0000 (16:30 -0800)
x264.c

diff --git a/x264.c b/x264.c
index 04bb44ceb495e63c5dd0483c3885c8a8d9236a85..da79e96057b7ecf1b40c2171f70b621da6df65de 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -639,7 +639,7 @@ static int  Parse( int argc, char **argv,
                     && sscanf( psz, "%ux%u", &param->i_width, &param->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", &param->i_width, &param->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);
         }
     }