Number of threads used by ffmeg configurable

This commit is contained in:
loki
2019-12-06 21:41:30 +01:00
parent d0f0e0b239
commit e308f96abb
4 changed files with 10 additions and 1 deletions

View File

@@ -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};