When square pixels aren't square

alexwlchan.net

118 points by PaulHoule 15 hours ago


drmpeg - 13 hours ago

> Videos with non-square pixels are pretty rare...

Before HD, almost all video was non-square pixels. DVD is 720x480. SD channels on cable TV systems are 528x480.

londons_explore - 3 hours ago

> It’s especially common in vertical videos like YouTube Shorts, where the stored resolution is a square 1080 × 1080, and the aspect ratio makes it a portrait.

My guess is this is because encoding hardware can do max 1920x1080, and there is no easy way to make that hardware encode 1080x1920, so you are forced to encode as 1080x1080. Swapping rows and columns in hardware tends to be a big change because caches and readahead totally changes when you process the data in a different order.

sbondaryev - 13 hours ago

This reminded me of retina screenshots on mac — selecting a 100×100 area can produce a 200×200 file. Different cause but same idea - the stored pixels don’t always match what you see on screen.

Demiurge - 7 hours ago

My first thought was that pixels are never square. Squares are an artifact of nearest sampling to another grid. I suppose pixel art assumes knowledge of this final grid, but most media doesn’t?

Furthermore, the referencing of a raster can assume any shape or form. It makes some sense some signals are optimized for hardware restrictions.

Another interesting example are anamorphic lenses used in cinema.

a012 - 13 hours ago

I’m no expert but this sounds like a digital version of the anamorphic lens/system, doesn’t it?

drob518 - 12 hours ago

Proving that everything is more complicated than you first think it is when you lift up a corner of the rug.

fasterik - 13 hours ago

Obligatory "A Pixel Is Not A Little Square"

https://alvyray.com/Memos/CG/Microsoft/6_pixel.pdf

alberth - 13 hours ago

Am I missing the obvious, but it seems like the author is messing with the aspect ratio.

gethly - 5 hours ago

SAR vs DAR is what i had to learn when working with ffprobe, among other things.

laidoffamazon - 7 hours ago

I'm reminded of how 720p Plasma TVs had input resolutions of 1024x768 - the pixels themselves were rectangular

lihaciudanieljr - 14 hours ago

[dead]