Skip to content

Commit

Permalink
fix: the recorded gif has a grid block shadow
Browse files Browse the repository at this point in the history
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
  • Loading branch information
add-uos authored and deepin-bot[bot] committed Jul 8, 2024
1 parent dd889b8 commit 1ac231d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/record_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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架构的机型需要这样设置
Expand Down

0 comments on commit 1ac231d

Please sign in to comment.