
No, GIFs are not the best way to pirate distribute videos online. ss 00:00:03 -to 00:00:06: start and end time to cut the video from. We could also play with documented palettegen parameters like palettegen=max_colors=16 to achieve different size quality trade-off points. generation time was 7x slower, presumably because ffmpeg is first scanning through the entire video to determine an optimal palette.TODO: why does simply choosing a palette increase the image size? Is it because now more colors so we need more bits per color? How to observe each palette? the dotting pattern is much less visible now.Image info: 979K, 45 frames, 512x512 apparent size, coalesced, conversion time on a Lenovo P51: 3.5s. vf "scale=512:-1,split palettegen paletteuse" \ We can try to improve the image quality with methods described at:Į.g. The output has a visible dotting pattern, which is not as visible in "ffmpeg + convert" method below. Test data generation procedure described on this post. 500MB however failed because ffmpeg failed to load its shared libraries. The above conversion also worked after a ulimit -Sv 1000000 (DRAM usage limited to 1GB), so it does "not consume huge amounts of memory" like previous attempts I did with Imagemagick which almost killed my machine. Image info: 426kB, 45 frames, 512x512 apparent size, coalesced, conversion time on a Lenovo P51: 0.5s. You likely want to use something like: sudo apt install ffmpeg

Ffmpeg 3.4.4 can do it directly on Ubuntu 18.04
