Video (MP4) to GIF

Questions and answers on how to get the most out of FFAStrans
Post Reply
authorleon
Posts: 108
Joined: Fri May 08, 2020 5:18 pm

Video (MP4) to GIF

Post by authorleon »

Hello,

Unless I've missed something, Is it possible to export to Animated GIF.

Also, having the about to have the keyframe would be great as well.

For example. I could set it to 12FPS or even 3 FPS.

Thank you
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Video (MP4) to GIF

Post by emcodem »

Aye authorleon, good to hear from you!

Sure, no problem at all. Check out this example workflow that i created for you:
emcodem_create_gif.json
(4.19 KiB) Downloaded 46 times
emcodem, wrapping since 2009 you got the rhyme?
authorleon
Posts: 108
Joined: Fri May 08, 2020 5:18 pm

Re: Video (MP4) to GIF

Post by authorleon »

thank you very much. I'm going to test it out. No doubt your skills are impeccable as always.

It's great to be back. It has been a long time and I missed doing automation. I hope to contribute to the community bit more.

I hope you are doing well!!
emcodem wrote: Wed Nov 23, 2022 2:36 pm Aye authorleon, good to hear from you!

Sure, no problem at all. Check out this example workflow that i created for you:
emcodem_create_gif.json
authorleon
Posts: 108
Joined: Fri May 08, 2020 5:18 pm

Re: Video (MP4) to GIF

Post by authorleon »

I can confirm this works perfectly. I do have a follow-up question. Is there a way to change quality/compression. The reason I ask is that when the GIF is exported. It is quite weighty.
emcodem wrote: Wed Nov 23, 2022 2:36 pm Aye authorleon, good to hear from you!

Sure, no problem at all. Check out this example workflow that i created for you:
emcodem_create_gif.json
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Video (MP4) to GIF

Post by emcodem »

Quite fine i do, thanks! Hope you too :D
Honestly, not sure if gif can be compressed in that sense. Short research tells me that lots of people wondered about it.
I found this post the best: https://superuser.com/questions/1049606 ... ing-ffmpeg
  • here scale and max_colors drastically impacts the output gif's filesize.
Also, he used max_colors 32 and paletteuse=dither=bayer
you could try to alter the ffmpeg command in my example and change the existing word "paletteuse" to "paletteuse=dither=bayer" but that will only do good in combination with the low colors setting, if you need higher, you probably go better with other ditherers: https://ffmpeg.org/ffmpeg-filters.html#paletteuse
emcodem, wrapping since 2009 you got the rhyme?
Post Reply