← All ideas
  • Published 16 Jun 2021

GIF Export with FFMpeg

Since the ffmpeg library is already being used to export video, would it be possible to implement a GIF export as well? Would be extremely handy.

71.4%

Development Status: Open

Upvote 10 Downvote 4
coleorloff
16 Jun 2021

11 Comments

zuorion

Gif is formath that should die.. but i use is sometimes.

But straight gif from blender? Meh. Kinda waste of developer time. Even when i make simple gif from blender renders i usualy preproces it somewhere (in photoshop or free ScreenToGif's editor) because that format is terrible. I would rather have better ffmpeg support overall.

2
coleorloff Author

Thanks for that link. I'll check it out.

For a lot of working artists who need to present ideas in collaborative decks for agency/client presentations, GIF is a preferred format. It's just easier to work with sometimes and quicker to swap in/out than videos.

There's also the case of presenting work in portfolios, GIFs are really handy for that.

Overall, not having to add another program to the workflow would be a big time-saver.

2
Lauloque

I'd agree on this. Blender uses FFMPEG that has so much to offer, yet we have barely a handful of possible outputs with limited settings and outdated standards.

The last time I asked to extend FFMPEG's output , it didn't received much attention and the most liked answer was that the entire encoding panel should be reorganized first. Which is also a good point, but that was three years ago. I'd be happy to have more ffmpeg outputs first and wait for the UI redesign...

1
spiraloid

in case anyone needs the best settings for FFmpeg gifs:

LoFi smallest size preset: -vsync passthrough {I} -lavfi palettegen=max_colors=16:stats_mode=diff[pal],[0:v][pal]paletteuse=new=1:diff_mode=rectangle:dither=floyd_steinberg {O}

MidFi medium size preset: -vsync passthrough {I} -lavfi palettegen=max_colors=64:stats_mode=diff[pal],[0:v][pal]paletteuse=new=1:diff_mode=rectangle:dither=floyd_steinberg {O}

HiFi largest size preset: -vsync passthrough {I} -lavfi palettegen=max_colors=256:stats_mode=diff[pal],[0:v][pal]paletteuse=new=1:diff_mode=rectangle:dither=floyd_steinberg {O}

thinsoldier

If you notice all the other ways gifs are not supported, I think it's safe to say there is a legal reason why they don't support gif anywhere in Blender. If I am correct it would have to be done via an addon made by someone in the community.

gif files are not displayed in the file browser when you try to load an image texture.

gif files cannot be drag-dropped into the shader editor.

gif files CAN be drag-dropped into the image editor but they do not display.

Such across-the-board lack of gif support is most likely intentional for a good legal reason.

coleorloff Author

Do you know why a GIF be legally different than any other file format?

thinsoldier

No. I just remember a long time ago there was some other open source program that had a legal reason to not touch gifs

thinsoldier

Between 1987 and 1994, GIF (Graphics Interchange Format) peacefully became the most popular file format for archiving and exchanging computer images. At the end of December 1994, CompuServe Inc. and Unisys Corporation announced to the public that developers would have to pay a license fee in order to continue to use technology patented by Unisys in certain categories of software supporting the GIF format.

Only the software employing the LZW algorithm for writing GIF files is “at risk”. The Unisys patent includes claims which specifically cover the decompression of LZW-compressed material, so it may also affect simple GIF readers. Several patent attorneys consulted on this matter have concluded that decompression-only programs do not infringe upon the Unisys patent. Unisys however does not appear to share this opinion.

mike.pub/19950127-gif-lzw

coleorloff Author

Wild. Very strange though.

zuorion

but LZW patent expired long time ago.

Unisys's US patent on the LZW algorithm expired on June 20, 2003,[4] 20 years after it had been filed. Patents that had been filed in the United Kingdom, France, Germany, Italy, Japan and Canada all expired in 2004,[4] likewise 20 years after they had been filed.

1