ffmpreg gif loopy changed to apng for quality and transparency
This commit is contained in:
@@ -3,9 +3,5 @@ param(
|
|||||||
[Parameter(Mandatory=$True, Position=0)]
|
[Parameter(Mandatory=$True, Position=0)]
|
||||||
[string]$Filename
|
[string]$Filename
|
||||||
)
|
)
|
||||||
# clean up any older pallasz
|
# apng is far hjigher quality and also preserves transparancy :activated:
|
||||||
rm palette.png
|
ffmpeg -i "$Filename" -plays 0 -f apng -lavfi split[v],palettegen,[v]paletteuse "$Filename.apng"
|
||||||
# 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"
|
|
||||||
Reference in New Issue
Block a user