From: Arjen Hiemstra Date: Thu, 20 Mar 2025 13:28:29 +0000 (+0100) Subject: [PATCH] Set "threads" option by default in Encoder X-Git-Tag: archive/raspbian/6.3.6-1+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a88a19e7c325b038fac707bebbde044a6c9ce7df;p=kpipewire.git [PATCH] Set "threads" option by default in Encoder So we don't have to repeat this in other encoders. Gbp-Pq: Name upstream_f127a2cc_Set-threads-option-by-default-in-Encoder.patch --- diff --git a/src/encoder.cpp b/src/encoder.cpp index f8b3d67..874ac08 100644 --- a/src/encoder.cpp +++ b/src/encoder.cpp @@ -189,6 +189,8 @@ AVDictionary *Encoder::buildEncodingOptions() { AVDictionary *options = NULL; + av_dict_set_int(&options, "threads", qMin(16, QThread::idealThreadCount()), 0); + switch (m_encodingPreference) { case PipeWireBaseEncodedStream::EncodingPreference::NoPreference: av_dict_set(&options, "preset", "veryfast", 0);