gifski icon indicating copy to clipboard operation
gifski copied to clipboard

Memory usage

Open soshimee opened this issue 2 years ago • 6 comments

Gifski filled up all 32GB of RAM and ended up getting killed by OOM. This obviously isn't desirable, especially to people who don't have as much RAM.

soshimee avatar Sep 04 '21 09:09 soshimee

Can you provide more information?

kornelski avatar Sep 04 '21 11:09 kornelski

Memory usage gradually goes up when directly processing videos, not frame by frame.

soshimee avatar Sep 04 '21 12:09 soshimee

Does it happen with any particular video file? What size of video frames are you encoding? Do other video codecs also use that much? How many cores you have?

gifski is buffering only as many frames as there are CPU cores, so such high usage is unexpected.

kornelski avatar Sep 04 '21 13:09 kornelski

It is an MP4 file. My video should be <10MB (only a minute long). I am not sure, but I will test it if you need it. 10c20t.

soshimee avatar Sep 05 '21 03:09 soshimee

This happened to me too, the memory usage is insane 6MB MP4 video gifski --quality 70 --fps 50 --height 720 --width 1280 ... Take almost 14GB of RAM, I had to set the quality to 70 and close some programs otherwise command would fail with SIGKILL

palexdev avatar Jan 15 '22 20:01 palexdev

It happens to me using a 2,4Gb video (with default options), the process is killed

Pablohn26 avatar Aug 31 '22 21:08 Pablohn26