Top
Best
New

Posted by ea016 19 hours ago

H.264 Is Magic (2016)(sidbala.com)
452 points | 151 commentspage 4
jotjam 9 hours ago|
[flagged]
terranvigil 9 hours ago||
[flagged]
rpsworld 10 hours ago||
[flagged]
tty_bordel 13 hours ago||
[flagged]
phi_node_48 19 hours ago||
[flagged]
WhitneyLand 19 hours ago|
"The H.264 video, 300 frames long is 175KB. A single frame of that video in PNG is 1015KB. It looks like we're storing 300 times the amount of data in the video. But the file size is a fifth. So H.264 would seem to be 1500x as efficient as PNG. How is this even possible? All right, what's the trick?"

Mostly the trick is they're comparing lossy to lossless compression which doesn't even make any sense.

nomel 19 hours ago||
Yes, as they explain shortly after, in the next section "shedding weight".

They're not actually confused here. It's a writing style, where you pose an interesting problem/scenario, then explain it.

WhitneyLand 17 hours ago||
I don’t think they are confused either just don’t think it’s a good way to introduce the point.

When good expositors choose motivating questions, say like 3 blue 1 brown, they don’t usually make apples to oranges comparisons. The best examples motivate while making sense before and after you learn.

nomel 17 hours ago||
Sorry, but it's only apple to oranges if you already know the answer. That answer, explained in the next section, is very clearly intended for someone who didn't already know it:

> This concept of throwing away bits you don't need to save space is called lossy compression. H.264 is a lossy codec - it throws away less important bits and only keeps the important bits.

> PNG is a lossless codec. It means that nothing is thrown away. Bit for bit, the original source image can be recovered from a PNG encoded image.

rob74 19 hours ago|||
Actually I had the same thought, but this is obviously an article for people who don't know the difference between lossless and lossy compression. Ok, you might argue that it's not a good fit for HN, but going by the many times it seems to have been posted here, some people disagree.
Dylan16807 19 hours ago|||
It makes tons of sense to compare those numbers. It's a big part of how you benchmark lossy compression. I guess in some sense they should use BMP instead of PNG but it's arguable.
WhitneyLand 17 hours ago||
Sure that’s true. But if something makes sense for a technical benchmark that’s not a guarantee it’s the best way to introduce a concept. I just think other approaches could have been more clear for this case.
a3w 17 hours ago||
Discussed elsewhere here: h.264 supports lossless storing.