dwitter icon indicating copy to clipboard operation
dwitter copied to clipboard

Gif creation performance improvements possible?

Open lionleaf opened this issue 6 years ago • 7 comments

The processing of gifs takes a while. I'm curious to know exactly where that time goes and if there are ways we could speed it up a bit.

lionleaf avatar Apr 22 '18 11:04 lionleaf

Looks like the GIF is rendered in Full HD. That's pretty large for a GIF. My gut feeling is that the processing would be a lot faster if the captured frames are resized to something smaller early in the processing pipeline.

iver56 avatar Apr 22 '18 16:04 iver56

@iver56 Some dweets use 1 pixel wide lines, when you resize those, they become a mess

BalintCsala avatar Apr 22 '18 17:04 BalintCsala

I guess that depends on the image scaling algorithm. Do you have examples of such problematic dweets?

iver56 avatar Apr 22 '18 17:04 iver56

Using MediaRecorder to make .webm movies instead of gifs is probably quite a bit faster (and produces smaller files with better quality :D )

sigvef avatar Apr 23 '18 08:04 sigvef

It has a bad support across browsers, mainly for Edge and Safari

BalintCsala avatar Apr 23 '18 08:04 BalintCsala

It would work with the GIF recorder as a fallback

BalintCsala avatar Apr 23 '18 08:04 BalintCsala

http://capjs.3d2k.com/ has a pretty good implementation

joeytwiddle avatar Jun 29 '19 05:06 joeytwiddle