Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated GIF output? #196

Open
samv opened this issue Jun 10, 2014 · 15 comments

Comments

@samv
Copy link

@samv samv commented Jun 10, 2014

Hey there,

I notice you can select gif as a container format, but it doesn't seem to work, failing when you hit start recording. Any hints?

@MaartenBaert

This comment has been minimized.

Copy link
Owner

@MaartenBaert MaartenBaert commented Jun 10, 2014

SSR only supports the YUV color space, but the gif encoder probably expects RGB images. You're not really supposed to use that container. Even if it would work, the quality would be terrible (because the palette wouldn't be optimized). You should record to a normal format and convert it to a gif later if you want that.

@iamgreaser

This comment has been minimized.

Copy link

@iamgreaser iamgreaser commented Jun 14, 2014

In general the ffmpeg gif encoder is crap. Given a few days I could come up with something better, but, well, would you actually stream full HD gifs at 60fps? I don't think so.

MaartenBaert's point stands.

@Ploppz

This comment has been minimized.

Copy link

@Ploppz Ploppz commented Jun 18, 2014

Aha, I had problems recording to gif as well. If I was to use ssr to record to another format before converting to gif later, which format would be optimal? And if ffmpeg is a bad gif encoder, is there another one you would suggest? (sorry if these questions are irrelevant in an issue comment..)

@iamgreaser

This comment has been minimized.

Copy link

@iamgreaser iamgreaser commented Jun 18, 2014

Stick with the defaults (MKV, H.264 superfast CRF=23, audio irrelevant) and you should get something good enough.

I don't know what other gif encoders there are, unfortunately. I wrote a python script to encode 30 frames which did a better job, but it's a very tailor-built job, and is quite slow.

@hermann-san

This comment has been minimized.

Copy link

@hermann-san hermann-san commented Jan 29, 2015

gif also doesn't work for me. It doesn't even start to record something (something like: error , can't write a header).
wouldn't it then be better to completely remove the gif container from SimpleScreenRecorder?

@Lucki

This comment has been minimized.

Copy link

@Lucki Lucki commented Jan 30, 2015

You don't want to use gif these days - webm is the future.
Gif has a big file size and poor quality. Just ignore the IE-people.

@hermann-san

This comment has been minimized.

Copy link

@hermann-san hermann-san commented Jan 30, 2015

Good idea. Thanks. I noticed there are services like imagehack.us (for jpg, png, gif) on which one can upload WebM for free , e.g. webmshare.com.
Also a IE Plugin from Google exists for playing WebM on IE.

@MaartenBaert

This comment has been minimized.

Copy link
Owner

@MaartenBaert MaartenBaert commented Jan 30, 2015

SSR simply shows a list of all available codecs in FFmpeg/Libav. 'gif' is in there because it exists, not because I picked it. If you choose 'other' as the codec, these kinds of things are to be expected.

@brmbrmcar

This comment has been minimized.

Copy link

@brmbrmcar brmbrmcar commented Oct 20, 2016

Can't it use truecolour?

@MaartenBaert

This comment has been minimized.

Copy link
Owner

@MaartenBaert MaartenBaert commented Oct 20, 2016

No, GIF only supports 256 colors. Use a different format like WebM instead.

@brmbrmcar

This comment has been minimized.

@iamgreaser

This comment has been minimized.

Copy link

@iamgreaser iamgreaser commented Oct 21, 2016

It's a horrible hack and you end up with something bigger than a raw RGB 24bpp image.

@brmbrmcar

This comment has been minimized.

Copy link

@brmbrmcar brmbrmcar commented Oct 21, 2016

It's still useful for some I guess (not me)

@ranolfi

This comment has been minimized.

Copy link

@ranolfi ranolfi commented Apr 20, 2018

First of all, thanks for your great tool.

About this issue, maybe it's worth looking into how byzanz does this (or if it proves too intricate, just have byzanz an additional dependency and invoke it for GIFs). It manages to create GIFs with good quality and very small file size (see https://askubuntu.com/a/123515/495331).

The source code is available at https://git.gnome.org//browse/byzanz.

@fiddur

This comment has been minimized.

Copy link

@fiddur fiddur commented Jun 29, 2018

GIFs are sadly still relevant. Excellent for e.g. small recordings to post on github issue (where webm doesn't seem to be supported) or in slack. I use 10 fps and convert afterwards...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants
You can’t perform that action at this time.