From c451bb0b078b4d1bfcea1d9c7ceced9166e15711 Mon Sep 17 00:00:00 2001 From: jbrjake Date: Fri, 19 Sep 2008 14:02:13 +0000 Subject: [PATCH] Spit out the average encoding speed in the verbose log at the end of a job. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1727 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/work.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libhb/work.c b/libhb/work.c index 01507e6de..bb4cfc7f7 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -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 ) -- 2.49.0