My daily tricks that convert videoes to gifs
docker buildx build --platform linux/amd64,linux/arm64 -t zengxu/ffmpegif --push .
convert demo.mp4
in current directory
docker run --rm -e SCALE=300 -v $PWD:/output -w /output zengxu/ffmpegif demo.mp4
normally using env SCALE
to control width pixels is enough
outputs demo.mp4.gif
in current directory
$ ls
Dockerfile README.md demo.mp4 demo.mp4.gif run.sh