Create seamlessly looping gifs from the command line.
Here is an example using a scene from the Non Non Biyori anime.
output.mp4
Clone the repo and install using cargo:
git clone [email protected]:Quozul/seamless.git
cargo install --path .
Get a video that might loop and run the following commands:
# Get usage of the command
seamless --help
# Convert a video into png frames
ffmpeg -i video.mp4 frame%04d.png
# Find 2 frames that loops and generates a gif named `my_gif.gif`
seamless fast -e=png -o=my_gif.gif .
seamless gaussian --radius=1 --sigma=1.5 --output=blured_image.png image.png
# Or shorter
seamless gaussian -r1 -s1.5 -o blured_image.png image.png