[x264-devel] commit: Make x264 progress indicator more concise (Jason Garrett-Glaser )

git version control git at videolan.org
Fri Sep 26 18:19:01 CEST 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Fri Sep 26 09:19:56 2008 -0700| [41c9e22257b7da84299aa55fd8e6564577d4246e] | committer: Jason Garrett-Glaser 

Make x264 progress indicator more concise
Now the % indicator should be readable on the header of a minimized window on Windows systems.

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

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

diff --git a/x264.c b/x264.c
index a561055..0daf02b 100644
--- a/x264.c
+++ b/x264.c
@@ -847,15 +847,15 @@ static int  Encode( x264_param_t *param, cli_opt_t *opt )
             if( i_frame_total )
             {
                 int eta = i_elapsed * (i_frame_total - i_frame) / ((int64_t)i_frame * 1000000);
-                sprintf( buf, "x264 - encoded frames: %d/%d (%.1f%%), %.2f fps, %.2f kb/s, eta %d:%02d:%02d",
-                         i_frame, i_frame_total, 100. * i_frame / i_frame_total, fps, bitrate,
+                sprintf( buf, "x264 [%.1f%%] %d/%d frames, %.2f fps, %.2f kb/s, eta %d:%02d:%02d",
+                         100. * i_frame / i_frame_total, i_frame, i_frame_total, fps, bitrate,
                          eta/3600, (eta/60)%60, eta%60 );
             }
             else
             {
-                sprintf( buf, "x264 - encoded frames: %d, %.2f fps, %.2f kb/s", i_frame, fps, bitrate );
+                sprintf( buf, "x264 %d frames: , %.2f fps, %.2f kb/s", i_frame, fps, bitrate );
             }
-            fprintf( stderr, "%s  \r", buf+7 );
+            fprintf( stderr, "%s  \r", buf+5 );
             SetConsoleTitle( buf );
             fflush( stderr ); // needed in windows
         }



More information about the x264-devel mailing list