OSDN Git Service

Spit out the average encoding speed in the verbose log at the end of a job.
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 19 Sep 2008 14:02:13 +0000 (14:02 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 19 Sep 2008 14:02:13 +0000 (14:02 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1727 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/work.c

index 01507e6..bb4cfc7 100644 (file)
@@ -811,6 +811,12 @@ static void do_job( hb_job_t * job, int cpu_count )
     w->close( w );
     free( w );
 
+    hb_handle_t * h = job->h;
+    hb_state_t state;
+    hb_get_state( h, &state );
+    
+    hb_log("work: average encoding speed for job is %f fps", state.param.working.rate_avg);
+
 cleanup:
     /* Stop the write thread (thread_close will block until the muxer finishes) */
     if( job->muxer != NULL )