A bunch of scriptlets I created or found
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
CLITools/ff2sgif.ps1

8 lines
271 B

$palname = $args[1]+'-palette.png'
if(![System.IO.File]::Exists($palname))
{
ffmpeg -i $args[0] -vf fps=5,scale=-1:50:flags=lanczos,palettegen $palname
}
ffmpeg -i $args[0] -i $palname -filter_complex "fps=5,scale=-1:50:flags=lanczos[x];[x][1:v]paletteuse" $args[1]