Edit input, fps, width and output name ffmpeg -i {input} -vf "fps={fps},scale={width}:-1" -loop 0 {output}.gif