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/ff2gif.ps1

8 lines
278 B

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