From 46e0620f68c60f1dad49569bc1fbce35379f8d84 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Mon, 22 Jul 2024 12:49:57 +0800 Subject: [PATCH] fix: the grid block shadow in recorded gif After discussion, we still use the color palette to ensure the effect Log: fix the grid block shadow in recorded gif. Bug: https://pms.uniontech.com/bug-view-264145.html https://pms.uniontech.com/bug-view-262443.html --- src/record_process.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/record_process.cpp b/src/record_process.cpp index 5beff7da..f67a62fa 100644 --- a/src/record_process.cpp +++ b/src/record_process.cpp @@ -153,6 +153,8 @@ void RecordProcess::onStartTranscode() arg << savePath; arg << "-r"; arg << "12"; + arg << "-vf"; + arg << "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse"; arg << path.replace("mp4", "gif"); transcodeProcess->start("ffmpeg", arg); //部分hw arm架构的机型需要这样设置