Number of threads used by ffmeg configurable
This commit is contained in:
parent
d0f0e0b239
commit
e308f96abb
4 changed files with 10 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ void encodeThread(
|
|||
|
||||
ctx->slices = config.slicesPerFrame;
|
||||
ctx->thread_type = FF_THREAD_SLICE;
|
||||
ctx->thread_count = std::min(config.slicesPerFrame, 4);
|
||||
ctx->thread_count = config::video.threads;
|
||||
|
||||
|
||||
AVDictionary *options {nullptr};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue