asciinema / asciicast2gif

Generate GIF animations from asciicasts (asciinema recordings)
MIT License
1.21k stars 82 forks source link

Clamp frame-rate at 30 fps #7

Closed ku1ik closed 6 years ago

ku1ik commented 7 years ago

While this tool doesn't use constant frame-rate (delay for each frame is specified individually), it's worth investigating if skipping over frames with very small delay can decrease file size without degrading animation smoothness in noticeable way.

We can experiment with 30 fps clamp. asciinema-player has asciinema.player.frames/at-hz function which quantizes frame times so they sit on multiples of 1/30s, and can be used on frames before passing them to renderer (gen-image-frames).

ku1ik commented 6 years ago

Implemented in 6dc3e6ef1af3c10777cec8affc8693381f0f2318 (max 15 fps)