]> git.immae.eu Git - perso/Immae/Projets/Scripts/Public.git/commitdiff
Update save-gif script master
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Oct 2021 11:46:42 +0000 (13:46 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Oct 2021 11:46:42 +0000 (13:46 +0200)
screen_save_gif

index 73e6940f5638dae0936081f2814c82b717ff15e3..b60717f770759ebecd978f7938a8a99031116cf9 100755 (executable)
@@ -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