From b71c7ec94e989dae259bd603232d565b3d0e0f29 Mon Sep 17 00:00:00 2001 From: Terin Stock 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