Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 523 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 523 Bytes

ffmpegif

My daily tricks that convert videoes to gifs

build

docker buildx build --platform linux/amd64,linux/arm64 -t zengxu/ffmpegif --push .

example

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