From: Ismaƫl Bouya Date: Wed, 27 Oct 2021 11:46:42 +0000 (+0200) Subject: Update save-gif script X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;p=perso%2FImmae%2FProjets%2FScripts%2FPublic.git Update save-gif script --- diff --git a/screen_save_gif b/screen_save_gif index 73e6940..b60717f 100755 --- a/screen_save_gif +++ b/screen_save_gif @@ -39,4 +39,5 @@ else fi ffmpeg -y -f x11grab -framerate 25 -video_size $SIZE -i $DISP+$X,$Y -codec:v huffyuv -vf crop="iw-mod(iw\,2):ih-mod(ih\,2)" $TMP_AVI -convert -set delay 10 -layers Optimize $TMP_AVI $OUTPUT +ffmpeg -i $TMP_AVI -vf "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 $OUTPUT +rm -f $TMP_AVI