02-08-2020, 09:45 PM
The best lossless compression I've found is with H.264 in lossless mode. I used to have it store a series of PNGs in a matroska file but it was much bigger and not well supported. I can see if FFmpeg supports APNG too, but I suspect it'll have similar issues.