From cbac96edaa1a89b720527f3499f85797334b324e Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sun, 2 Nov 2025 13:43:20 -0700 Subject: [PATCH] 1762116201 --- Windows-Scripts/ffmpreg_gif_loopy.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Windows-Scripts/ffmpreg_gif_loopy.ps1 diff --git a/Windows-Scripts/ffmpreg_gif_loopy.ps1 b/Windows-Scripts/ffmpreg_gif_loopy.ps1 new file mode 100644 index 0000000..84810f4 --- /dev/null +++ b/Windows-Scripts/ffmpreg_gif_loopy.ps1 @@ -0,0 +1,11 @@ +param( + # powershell is factually gay idkl why its such a shit + [Parameter(Mandatory=$True, Position=0)] + [string]$Filename +) +# clean up any older pallasz +rm palette.png +# first pass +ffmpeg -y -i "$Filename" -vf "palettegen=stats_mode=full" palette.png +# second pass +ffmpeg -i "$Filename" -i palette.png -lavfi "paletteuse=dither=none" -f gif -loop 0 "$Filename.gif" \ No newline at end of file