this post was submitted on 11 Apr 2025
33 points (94.6% liked)
Gifs
2075 readers
5 users here now
A Community for people to create posts with GIFs, MP4s or WEBPs - anything that's animated and reasonably short.
Images can be often be hosted directly on Lemmy, or on external sites such as https://imgur.com/ or https://catbox.moe/.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yes on short snippets its rather easy just drag the "motion tracking" effect onto the clip, then go to the first frame, position the tracking square over what you want to track, then click analyze. The resulting movement keyframes can be copied onto other objects like text.
Kdenlive itselfs dosent over gif compression, so i export as mkv and then convert and compress using https://ezgif.com/ If i would export this as gif with kdenlive it would have about 80MB, so its only 2.5MB
I see that ezgif.com uses a program called Gifsicle for its compression. I will look into implementing that into my workflow. Thanks!
https://ezgif.com/about
EDIT: For anyone reading this who wants a good CLI method to compress GIFs, I found this article very useful:
https://www.digitalocean.com/community/tutorials/how-to-make-and-optimize-gifs-on-the-command-line
On the other hand, if you don't require your animated image to be in GIF format, a WEBP at the same file size will always have much higher quality:
ffmpeg -i input.mp4 -vcodec libwebp -lossless 0 -loop 0 -preset default -an -fps_mode passthrough -vf "fps=15, scale=-1:270" -quality 10 output.webp