frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

When square pixels aren't square

https://alexwlchan.net/2025/square-pixels/
30•PaulHoule•3h ago

Comments

drmpeg•1h 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.

m132•1h ago
>Before HD, almost all video was non-square pixels

Correct. This came from the ITU-R BT.601 standard, one of the first digital video standards authors of which chose to define digital video as a sampled analog signal. Analog video never had a concept of pixels and operated on lines instead. The rate at which you could sample it could be arbitrary, and affected only the horizontal resolution. The rate chosen by BT.601 was 13.5 MHz, which resulted in a 10/11 pixel aspect ratio for 4:3 NTSC video and 59/54 for 4:3 PAL.

>SD channels on cable TV systems are 528x480

I'm not actually sure about America, but here in Europe most digital cable and satellite SDTV is delivered as 720x576i 4:2:0 MPEG-2 Part 2. There are some outliers that use 544x576i, however.

drmpeg•47m ago
Here's some captures from my Comcast system here in Silicon Valley.

https://www.w6rz.net/528x480.ts

https://www.w6rz.net/528x480sp.ts

m132•28m ago
Cool!

Doing my part and sending you some samples of UPC cable from the Czech Republic :)

720x576i 16:9: https://0x0.st/P-QU.ts

720x576i 4:3: https://0x0.st/P-Q0.ts

That one weird 544x576i channel I found: https://0x0.st/P-QG.ts

I also have a few decrypted samples from the Hot Bird 13E, public DVB-T and T2 transmitters and Vectra DVB-C from Poland, but for that I'd have to dig through my backups.

ranger_danger•1h ago
I'm confused... what does DVD, SD or any arbitrary frame size have to do with the shape of pixels themselves? Is that not only relevant to the display itself and not the file format/container/codec?

My understanding is that televisions would mostly have square/rectangular pixels, while computer monitors often had circular pixels.

Or are you perhaps referring to pixel aspect ratios instead?

binaryturtle•56m ago
A square pixel has a 1:1 aspect ratio (width is the same as the height). Any other rectangular pixel with widths different than their heights would be considered "non-square".

F.ex. in case of a "4:3 720x480" frame… a quick test: 720/4=180 and 480/3=160… 180 vs. 160… different results… which means the pixels for this frame are not square, just rectangular. Alternatively 720/480 vs. 4/3 works too, of course.

binaryturtle•46m ago
Just look at Japanese television… most channels get broadcast at 1440x1080i for 16:9 content instead the full 1920x1080i (to save bandwidth for other things, I assume), so it's still very common with HD too.
ndiddy•14m ago
It may also be due to legacy reasons. Japan was a pioneer in adopting HD TV years before the rest of the world, but early HD cameras and video formats like HDCAM and HDV only recorded 1080i at 1440x1080. If their whole video processing chain is set up for 1440x1080, they’d likely have to replace a lot of equipment to switch over to full 1920x1080i.
sbondaryev•1h 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.
m132•1h ago
This is indeed similar in the effects, but completely different in the cause to the phenomenon referenced in the article (device pixel ratio vs pixel aspect ratio).

What you're referring to stems from the assumption made a long time ago by Microsoft to simplify the development of Windows, later adopted as a de facto standard by most computer software. The assumption was that the pixel density of every display is 96 pixels-per-inch [1].

As the pixel density of today's displays has grown much beyond that, mostly popularized by Apple's Retina, a solution was needed to accommodate legacy software written under this assumption. This resulted in the decoupling of "logical" pixels from "physical" pixels, with the logical resolution being most commonly defined as the "what the resolution of the display would be given its physical size and a PPI of 96" [2], and the physical resolution representing the real amount of pixels. The 100x100 and 200x200 values in your example are respectively the logical and physical resolutions of your screenshot.

Different software vendors refer to these "logical" pixels differently, but the most names you're going to encounter are points (Apple), density-independent pixels ("DPs", Google), and device-independent pixels ("DIPs", Microsoft).

[1]: https://learn.microsoft.com/en-us/archive/blogs/fontblog/whe...

[2]: https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...

sublinear•40m ago
I might be misunderstanding what you're saying, but I'm pretty sure print and web were already more popular than anything Apple did. The need to be aware of output size and scale pixels was not at all uncommon by the time retina displays came out.

From what I recall only Microsoft had problems with this, and specifically on Windows. You might be right about software that was exclusive to desktop Windows. I don't remember having scaling issues even on other Microsoft products such as Windows Mobile.

m132•23m ago
Print was always density-independent. The web, at least how I rememeber it, for the longest time was "best viewed in Internet Explorer at 800x600", and later 1024x768, until vector-based Flash came along :)

It's the desktop software that mostly had problems scaling. I'm not sure about Windows Mobile. Windows Phone and UWP have adopted an Android-like model.

sbondaryev•32m ago
Thanks for sharing - it’s interesting to see how choices from the past continue to shape technology today.
alberth•1h ago
Am I missing the obvious, but it seems like the author is messing with the aspect ratio.
ranger_danger•1h ago
Yes I think they are conflating square pixels with square pixel aspect ratios.

If a video file only stores a singular color value for each pixel, why does it care what shape the pixel is in when it's displayed? It would be filled in with the single color value regardless.

a012•1h ago
I’m no expert but this sounds like a digital version of the anamorphic lens/system, doesn’t it?
fasterik•1h ago
Obligatory "A Pixel Is Not A Little Square"

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

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

Stardew Valley developer made a $125k donation to the FOSS C# framework MonoGame

https://monogame.net/blog/2025-12-30-385-new-sponsor-announcement/
242•haunter•1h ago•79 comments

Scaffolding to Superhuman: How Curriculum Learning Solved 2048 and Tetris

https://kywch.github.io/blog/2025/12/curriculum-learning-2048-tetris/
33•a1k0n•1h ago•3 comments

2026: The Year of Java in the Terminal

https://xam.dk/blog/lets-make-2026-the-year-of-java-in-the-terminal/
37•based2•1h ago•25 comments

Efficient method to capture CO2 from the atmosphere / Univ of Helsinki

https://www.helsinki.fi/en/news/innovations/efficient-method-capture-carbon-dioxide-atmosphere-de...
180•lrasinen•3h ago•143 comments

Akin's Laws of Spacecraft Design [pdf]

https://www.ece.uvic.ca/~elec399/201409/Akin%27s%20Laws%20of%20Spacecraft%20Design.pdf
174•tosh•6h ago•33 comments

SigNoz (YC W21, open source observability platform) Is Hiring across roles

https://signoz.io/careers
1•pranay01•58s ago

Zero-Code Instrumentation of an Envoy TCP Proxy Using eBPF

https://sergiocipriano.com/beyla-envoy.html
38•sergiocipriano•2h ago•8 comments

Fifteen Most Famous Transcendental Numbers

https://sprott.physics.wisc.edu/pickover/trans.html
83•vismit2000•4h ago•34 comments

The Compiler Is Your Best Friend, Stop Lying to It

https://blog.daniel-beskin.com/2025-12-22-the-compiler-is-your-best-friend-stop-lying-to-it
12•based2•1h ago•1 comments

Winnie-the-Pooh brings 100 years of fame to forest

https://www.bbc.com/news/articles/c4g9dzj1xj3o
35•1659447091•6d ago•2 comments

Show HN: Use Claude Code to Query 600 GB Indexes over Hacker News, ArXiv, etc.

https://exopriors.com/scry
189•Xyra•9h ago•54 comments

Back to the future: the story of Squeak, a practical Smalltalk written in itself [pdf] (1997)

http://www.vpri.org/pdf/tr1997001_backto.pdf
49•fanf2•6d ago•3 comments

When square pixels aren't square

https://alexwlchan.net/2025/square-pixels/
31•PaulHoule•3h ago•18 comments

Tell HN: Happy New Year

186•schappim•3h ago•106 comments

Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

https://en.andros.dev/blog/7b1b607b/doom-in-django-testing-the-limits-of-liveview-at-600000-divss...
110•andros•3d ago•34 comments

Tixl: Open-source realtime motion graphics

https://github.com/tixl3d/tixl
129•nateb2022•4d ago•18 comments

2025 was a disaster for Windows 11 as bugs and intrusive features erode trust

https://www.windowscentral.com/microsoft/windows-11/2025-has-been-an-awful-year-for-windows-11-wi...
14•speckx•41m ago•2 comments

A faster heart for F-Droid

https://f-droid.org/2025/12/30/a-faster-heart-for-f-droid.html
486•kasabali•22h ago•197 comments

Animated AI

https://animatedai.github.io/
269•frozenseven•5d ago•23 comments

Nvidia GB10's Memory Subsystem, from the CPU Side

https://chipsandcheese.com/p/inside-nvidia-gb10s-memory-subsystem
13•ingve•4h ago•2 comments

Show HN: LoongArch Userspace Emulator

https://github.com/libriscv/libloong
28•fwsgonzo•1w ago•9 comments

Show HN: 22 GB of Hacker News in SQLite

https://hackerbook.dosaygo.com
644•keepamovin•23h ago•194 comments

Drugmakers raise US prices on 350 medicines despite pressure

https://www.reuters.com/business/healthcare-pharmaceuticals/drugmakers-raise-us-prices-350-medici...
70•JumpCrisscross•2h ago•66 comments

FediMeteo: A €4 FreeBSD VPS Became a Global Weather Service

https://it-notes.dragas.net/2025/02/26/fedimeteo-how-a-tiny-freebsd-vps-became-a-global-weather-s...
355•birdculture•21h ago•85 comments

'Three norths' alignment about to end

https://www.spatialsource.com.au/three-norths-alignment-about-to-end/
59•altilunium•1w ago•24 comments

Readings in Database Systems (5th Edition) (2015)

http://www.redbook.io/
124•teleforce•14h ago•11 comments

Honey's Dieselgate: Detecting and tricking testers

https://vptdigital.com/blog/honey-detecting-testers/
323•AkshatJ27•19h ago•136 comments

Who Invented the Transistor?

https://people.idsia.ch/~juergen/who-invented-the-transistor.html
12•todsacerdoti•4h ago•2 comments

A Vulnerability in Libsodium

https://00f.net/2025/12/30/libsodium-vulnerability/
316•raggi•23h ago•44 comments

A super fast website using Cloudflare workers

https://crazyfast.website
75•kilroy123•3d ago•53 comments