liveGifArguments function
The ffmpeg arguments that turn the recorder's input into a GIF at
output, 480 pixels wide at 15 fps, lasting exactly length.
Implementation
List<String> liveGifArguments(
String input,
String output, {
required Duration length,
}) => [
'-y',
'-v',
'error',
'-i',
input,
'-vf',
'${_holdLastFrame(length)},fps=15,scale=480:-1:flags=lanczos,'
'split[a][b];[a]palettegen[p];'
'[b][p]paletteuse',
'-t',
_seconds(length),
output,
];