How is average fps calculated?

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
bilaloslo2
Posts: 4
Joined: Wed Apr 13, 2016 1:08 pm

How is average fps calculated?

Post by bilaloslo2 »

Please detail your question or problem in as much detail as possible:
I am wondring how the avg frames is calculated with the handbrakeCLI? Is it calculated for the last minute, second ? That would be really interesting to know.

Tell us about your environment. What version of HandBrake? What operating system are you running. etc.
I have the latest version:
root@user:/home/user# HandBrakeCLI -u
[15:56:37] hb_init: checking for updates
[15:56:37] Using http://handbrake.fr/appcast_unstable.xml
[15:56:38] Error: We did not get a 200 OK from the server.
[15:56:38] hb_init: starting libhb thread
HandBrake svn6039 (2014021801) - Linux x86_64 - http://handbrake.fr
Your version of HandBrake is up to date.


Please include the scan or encode log:
Encoding: task 1 of 1, 73.64 % (26.23 fps, avg 26.26 fps, ETA 00h08m56s)
Encoding: task 1 of 1, 73.65 % (26.23 fps, avg 26.26 fps, ETA 00h08m56s)

Code: Select all

 Paste a log of the scan or encode between these code brackets, or use a pastebin website and provide us with the URL it gives you. 
 Logs are required for all support requests.
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: How is average fps calculated?

Post by rollin_eng »

You should get the latest version from here:

https://launchpad.net/~stebbins/+archiv ... e-releases
bilaloslo2
Posts: 4
Joined: Wed Apr 13, 2016 1:08 pm

Re: How is average fps calculated?

Post by bilaloslo2 »

But could you please answar my quesiton regarding how the avg fps is calculated? I cant find any information about it in the documentation. I really feedback.
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: How is average fps calculated?

Post by rollin_eng »

I haven't seen the code but you have a % done and a time taken, it also knows how many frames to expect therefor:

Total frames x % done/time taken

Maybe a dev can confirm.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5725
Joined: Sat Feb 09, 2008 7:21 pm

Re: How is average fps calculated?

Post by JohnAStebbins »

The average fps is over the entire encode. The fps number is more of an instantaneous number indicating fps over a small sample at the current encoding position.
bilaloslo2
Posts: 4
Joined: Wed Apr 13, 2016 1:08 pm

Re: How is average fps calculated?

Post by bilaloslo2 »

Thanks! Is it possible to see the progress in run-time of the encoding in terms of calculated fps and remaining fps?
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: How is average fps calculated?

Post by mduell »

Wat
bilaloslo2
Posts: 4
Joined: Wed Apr 13, 2016 1:08 pm

Re: How is average fps calculated?

Post by bilaloslo2 »

I am trying to figure out if it's possible to measure the progress of the encoding in how many frames that has been encoded ? Since I am running some experiments where I will try to set desired frames per for instance 5 minutes and dynacially allocate resources to make it reach that goal.

TL:DR; Is it possible to see the progress of the encoding in real-time, now I only see this:

Encoding: task 1 of 1, 73.64 % (26.23 fps, avg 26.26 fps, ETA 00h08m56s)

I want to see how many frames are encoded and if possible how many frames is remains?
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: How is average fps calculated?

Post by rollin_eng »

The latest windows version shows an 'Elapsed' time as well, you could use to calculate frames processed, and you know the remaining time and so you could get a rough estimate of frames remaining, or look at the log for total frames then minus the frames processed.

If you want this displayed you could do a feature request and see what the devs say.
Post Reply