wulkano / Kap

An open-source screen recorder built with web technology
https://getkap.co
MIT License
17.97k stars 820 forks source link

GIFs are transcoded from lossy sources #493

Open AndrewKvalheim opened 6 years ago

AndrewKvalheim commented 6 years ago

macOS Version: 10.12.6 Kap Version: 2.2.0

Steps to reproduce

  1. Capture a colorful, animated line drawing.
  2. Save the capture as a GIF, because GIFs are well-suited for this kind of image, and the other video formats are not.

Current behaviour

The GIF includes video compression (H.264?) artifacts:

kapture 2018-08-09 at 19 45 34 gif

Expected behaviour

GIFs don't do that.

screenshot 2018-08-09 19 46 57 gif

Workaround

Unknown

sindresorhus commented 6 years ago

We record in H264 as we need to show a preview of the video right after exporting. We could record losslessly (proRes4444), but then we wouldn't be able to play it after recording, as I don't think Chrome and hence Electron supports proRes4444.

I guess we could have an option to record losslessly and then after recording when the editor opens, we could quickly create a low-resolution preview for use in the editor.

sindresorhus commented 6 years ago

Increasing the bitrate of the H264 might help too and would be easier to do.