projects
/
kpipewire.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f121a
)
[PATCH] Set "threads" option by default in Encoder
author
Arjen Hiemstra
<ahiemstra@heimr.nl>
Thu, 20 Mar 2025 13:28:29 +0000
(14:28 +0100)
committer
Aurélien COUDERC
<coucouf@debian.org>
Tue, 15 Jul 2025 14:45:40 +0000
(16:45 +0200)
So we don't have to repeat this in other encoders.
Gbp-Pq: Name upstream_f127a2cc_Set-threads-option-by-default-in-Encoder.patch
src/encoder.cpp
patch
|
blob
|
history
diff --git
a/src/encoder.cpp
b/src/encoder.cpp
index f8b3d672b24d9fc5de989ade6f561b2b5538ee9e..874ac0834c638bdc5a3088c84744c76a50e50c7d 100644
(file)
--- 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);