Figuring out how to store data into VHS

@meluzzy@woof.tech

Content warning: Figuring out how to store data into VHS

Okay so we have 333x576 pixels allowed by our PAL VCR, let's just not correct the aspect ratio to 4:3 because there is no point.
That means we have 191808 pixels.

But of course these are crappy analog pixels we can't trust.
So let's use blocks of 3x3.
This would give us 111x192 blocks which is 21312 blocks.

Now, The luma signal has the most depth than the individual chroma components since it uses a yuv422-like colormap. So It's 4 for luma and 2+2 for chroma. So let's assume we can safely do 16 levels of luma and 16 of chroma.
That gives us a total of 256 VHS-safe colors per 3x3 pixel block. Which is great because it means we can encode a byte as a pixel block.
Which gives us ~20KB per frame.

Now, we are doing PAL so its 25 frames and we absolutely can't trust single analog frames so we are duplicating each frame, which means we are actually doing 12 frames per second and each frame lasts 0.08s on the screen. the extra dead frame (12+12=24 not 25) will just be black and can act as a sync signal or we can put a greyscale checksum there.

This means, 12 frames × 20k = 240kps.
If a VHS cassette holds 120 minutes, thats 7200 seconds.
And 7200 seconds × 240kps = 1.65GB

...I think it's doable.