]> granicus.if.org Git - handbrake/commitdiff
Spit out the average encoding speed in the verbose log at the end of a job.
authorjbrjake <jb.rubin@gmail.com>
Fri, 19 Sep 2008 14:02:13 +0000 (14:02 +0000)
committerjbrjake <jb.rubin@gmail.com>
Fri, 19 Sep 2008 14:02:13 +0000 (14:02 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1727 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/work.c

index 01507e6dedfb21250821a7b60748df2273588be0..bb4cfc7f741f8ea2f0cabcfd30b7df51aa5889b8 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 )