[x264-devel] commit: Show FPS when importing a raw YUV file (Tal Aloni )

git version control git at videolan.org
Sat Feb 14 01:34:05 CET 2009


x264 | branch: master | Tal Aloni <tal.aloni.il at gmail.com> | Fri Feb 13 16:30:14 2009 -0800| [cc4f807796220a042e386da259ddc38e6ca8e43b] | committer: Jason Garrett-Glaser 

Show FPS when importing a raw YUV file

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=cc4f807796220a042e386da259ddc38e6ca8e43b
---

 x264.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/x264.c b/x264.c
index 04bb44c..da79e96 100644
--- 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);
         }
     }
 



More information about the x264-devel mailing list