Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to assign cores to vmaf calculations? #76

Closed
ls-milkyway opened this issue Apr 12, 2022 · 1 comment
Closed

Option to assign cores to vmaf calculations? #76

ls-milkyway opened this issue Apr 12, 2022 · 1 comment

Comments

@ls-milkyway
Copy link

Nice app! ......specially the generation of graphs ....makes FFMetrics unique .....to increase VMAF calculation speed I could not find an option to assign CPU cores ....adding n_threads=12 is all that you need to include in the ffmpeg command as stated here.

@fifonik
Copy link
Owner

fifonik commented Apr 13, 2022

If you check the log after calculating VMAF metric using FFMetrics you should notice that n_threads is already in use.
Currently, the program should put there a value that equal "a number of logical CPUs found in the system minus 1".
This should be the best possible option in most cases.
Note, the VMAF calculation still be much slower than PSNR/SSIM.

You can override the auto-detection logic by modifying FFMetrics.conf (usually not recommended, but could make sense if you run a few FFMetrics simultaneously or while doing some resource expensive tasks at the same time on the PC).
Feel free to specify n_threads=1 and notice mush slower VMAF calculation speed.

You can also check #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants