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

Change BlissFfmpegJob threading #475

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Conversation

JackTemaki
Copy link
Contributor

While working in a different cluster environment I found out that the job was spawing way more threads than it should, leading to conflicts with the cluster settings and also having an impact on efficiency.

These changes force ffmpeg to use only one thread for the input processing and one thread for the output processing. The pool size is adjusted accordingly.

I also increased the number of default cores, but this is debatable. The extra thread for the python process might not be strictly necessary for maximum performance (I did not test for that), but the cluster environment kills jobs that uses more threads than requested, and with this settings it worked.

From commit message

  • force ffmpeg to use 1 thread for input and output processing each
  • set higher number of default cpu cores
  • remote some tk.uncached_path calls

 - force ffmpeg to use 1 thread for input and output processing each
 - set higher number of default cpu cores
 - remote some tk.uncached_path calls
audio/ffmpeg.py Show resolved Hide resolved
audio/ffmpeg.py Show resolved Hide resolved
audio/ffmpeg.py Show resolved Hide resolved
audio/ffmpeg.py Show resolved Hide resolved
@christophmluscher christophmluscher merged commit 663687e into main Jan 23, 2024
4 checks passed
@christophmluscher christophmluscher deleted the nick-ffmpeg-threading branch January 23, 2024 10:03
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

Successfully merging this pull request may close these issues.

4 participants