Well, if you simply encode each frame as lossless webp, you already get lossless video compression.
FLAC and other lossless audio codecs apply pure mathematical compression that allows reconstructing the original stream, only they account for playback realities such as seeking. It's no surprise that the same can be done with video.
Yeah, I keep discovering that people have come up with lots of niche image formats in the past fifteen or so years when I wasn't actively looking at them (and, to a lesser extent, audio formats too).
I mean, that's how animated GIF works in its simpler form. Every frame is a separate static GIF. It allows for some additional compression by replacing unchanged areas with the 'transparent' color, which gets compressed just like other areas of the same color.
I need to look into APNG, it might be a more advanced version of the same idea.
4
u/necrophcodr Jul 16 '26
A lot of compression isn't lossless.