Poor CPU utilization in Handbrake
Posted: Fri Dec 21, 2018 6:31 pm
Description of problem or question:
When I change the encoder speed (fast, faster, veryfast) Handbrake reduces my CPU usage so that the encode takes the same amount of time no matter what the setting. I can't figure out why it is doing this.
Steps to reproduce the problem (If Applicable):
Ran an encode on a video file with various speed settings. The faster I set it to the lower my CPU usage and the time to complete stayed about the same.
Below the first is the activity log of me starting an encode on Ultrafast and it stays at 40% of cpu. The second is the same preset except with the encode set to Placebo and it bounces between 60-80% cpu.
Strangely when I use HandBrakeBatch, which is basically a 3rd party wrapper tool to make batch processing easier, for some reason it runs at a constant 90% cpu and finishes much faster than the native Handbrake app. So it seems like there is some setting or something in my native version of the app that is causing the engine to not fully utilize my CPU. I've noticed this discrepancy for quite some time but this is the first time I tested the speed controls specifically and noticed there is a throttling in the HB app between speed settings as well. https://osomac.com/apps/osx/handbrake-batch/
Is there some rogue setting in the Handbrake app that is throttling my cpu that I can turn off? Why is it throttling down the speed as I turn up the speed setting? This is a huge performance hit.
HandBrake version (e.g., 1.0.0):
Version 1.1.2 (2018090500)
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
10.14.2 (18C54) Mojave
2016 Macbook Pro
2.9 GHz Intel Core i7
16 GB 2133 MHz LPDDR3
SSD hard drive
HandBrake Activity Log ***required*** (see How-to get an activity log)
The file used in the test is EFT 120218.mp4
https://pastebin.com/Hswb8UMd Ultrafast and it stays at 40% of cpu
https://pastebin.com/E5Y3i86B Placebo and it bounces between 60-80% cpu
When I change the encoder speed (fast, faster, veryfast) Handbrake reduces my CPU usage so that the encode takes the same amount of time no matter what the setting. I can't figure out why it is doing this.
Steps to reproduce the problem (If Applicable):
Ran an encode on a video file with various speed settings. The faster I set it to the lower my CPU usage and the time to complete stayed about the same.
Below the first is the activity log of me starting an encode on Ultrafast and it stays at 40% of cpu. The second is the same preset except with the encode set to Placebo and it bounces between 60-80% cpu.
Strangely when I use HandBrakeBatch, which is basically a 3rd party wrapper tool to make batch processing easier, for some reason it runs at a constant 90% cpu and finishes much faster than the native Handbrake app. So it seems like there is some setting or something in my native version of the app that is causing the engine to not fully utilize my CPU. I've noticed this discrepancy for quite some time but this is the first time I tested the speed controls specifically and noticed there is a throttling in the HB app between speed settings as well. https://osomac.com/apps/osx/handbrake-batch/
Is there some rogue setting in the Handbrake app that is throttling my cpu that I can turn off? Why is it throttling down the speed as I turn up the speed setting? This is a huge performance hit.
HandBrake version (e.g., 1.0.0):
Version 1.1.2 (2018090500)
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
10.14.2 (18C54) Mojave
2016 Macbook Pro
2.9 GHz Intel Core i7
16 GB 2133 MHz LPDDR3
SSD hard drive
HandBrake Activity Log ***required*** (see How-to get an activity log)
The file used in the test is EFT 120218.mp4
https://pastebin.com/Hswb8UMd Ultrafast and it stays at 40% of cpu
https://pastebin.com/E5Y3i86B Placebo and it bounces between 60-80% cpu