fifonik / FFMetrics

Visualizes Video Quality Metrics (PSNR, SSIM & VMAF) calculated by ffmpeg.exe
570 stars 22 forks source link

[Feature] Ability to set custom number of n_threads #69

Closed rikinp93 closed 2 years ago

rikinp93 commented 2 years ago

Currently the tool has no ability to change the number of threads on the workflow.

n_threads={{n_threads}}

It would be useful to adjust the number of threads as we currently use 38 threads in our workflow on a dedicated server for analysis. There shouldnt be a limitation of the value set.

fifonik commented 2 years ago

I do not really understand what you'd like to have. You provided a part of FFMetrics.conf that is used by program. The {{n_threads}} is substituted runtime with a number of logical processors on the system minus 1 (usually this is the fastest way to calculate VMAF). So on my 16 core system it will become n_threads=15. On your 38 core system it should become n_threads=37. You can check it -- tick Options | Write FFMPeg commands into log, calculate VMAF and check FFMetrics.log

IF for some reason you'd like to set the value manually -- just put the number you like in the config file: n_threads={{n_threads}} => n_threads=42

fifonik commented 2 years ago

I'm closing it as I do not understand what you'd like to have and no details provided.

glazarov-uk commented 2 years ago

Apologies for the delay we were out of office.
Didn't know that setting the value manually in that config file is possible, thanks for clarifying.