From 94ef51bfdf36ca5b704238c7244a59b94f352b24 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Mon, 8 Jul 2024 11:20:46 +0800 Subject: [PATCH] fix: the recorded gif has a grid block shadow fix the recorded gif has a grid block shadow. use the color palette optimization. Log: fix the recorded gif has a grid block shadow. Bug: 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 1724d682..3de841c0 100755 --- 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架构的机型需要这样设置