blob: 1b204879501332540b0c53412d64b680f0fd44b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From b71c7ec94e989dae259bd603232d565b3d0e0f29 Mon Sep 17 00:00:00 2001
From: Terin Stock <terinjokes@gmail.com>
Date: Mon, 22 Apr 2024 00:39:36 +0200
Subject: [PATCH] add MagicYUV 4:4:4 support
Allow Spectacle to record with the MagicYUV codec, added in a separate
patch to kpipewire. As this version of Spectacle makes codec decisions
based on file extensions, this patch usurps "mkv" to represent this codec.
---
src/Platforms/VideoPlatformWayland.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/Platforms/VideoPlatformWayland.cpp b/src/Platforms/VideoPlatformWayland.cpp
index 8811b30c..a2cc7fcf 100644
--- a/src/Platforms/VideoPlatformWayland.cpp
+++ b/src/Platforms/VideoPlatformWayland.cpp
@@ -83,6 +83,8 @@ QStringList VideoPlatformWayland::suggestedExtensions() const
extensions.append(QStringLiteral("webm"));
} else if (enc == "libx264") {
extensions.append(QStringLiteral("mp4"));
+ } else if (enc == "magicyuv") {
+ extensions.append(QStringLiteral("mkv"));
}
}
#else
@@ -108,6 +110,8 @@ void VideoPlatformWayland::setExtension(const QString &extension)
m_recorder->setEncoder("libvpx");
} else if (extension == QStringLiteral("mp4")) {
m_recorder->setEncoder("libx264");
+ } else if (extension == QStringLiteral("mkv")) {
+ m_recorder->setEncoder("magicyuv");
} else {
qWarning() << "Unsupported extension" << extension;
}
--
2.43.2
|