nattviken

hZvideo — video as blobs

A film is not stored as one file but as a sequence of tightly compressed blobs. Each blob is self-contained: it decodes audio and video for its time interval without needing the rest of the film. When you seek, exactly the right blob is fetched, or only the part of it that is needed.

Two tracks work together. The viewing track carries 60-second blobs in full quality. The seek track carries 10-second blobs in 360p with a keyframe every second, and answers when you jump. At the next keyframe the viewing track takes over again.

Compression: measured against the best of each family

Bits saved at the same perceived quality (BD-rate on XPSNR), with every competitor at its slowest reasonable setting:

againsthZvideo savesthe competitor needs
best VP9 (libvpx, cpu-used 1)52.1 %+108.7 % more bits
best H.264 (x264 veryslow)39.5 %+65.2 %
best HEVC (x265 veryslow)28.8 %+40.4 %
libaom AV1 (cpu-used 4)23.2 %+30.2 %
SVT-AV1 in fast mode15.2 %+17.9 %

At 1080p, H.264 needs 91–102 % more bitrate for the same quality. Since H.264 is still what reaches the most screens, that is the honest comparison with what streams today: about half the bitrate for the same perceived quality.

Every setting earned its place

On top of a plain AV1 setup, each candidate was encoded at four quality levels and kept only if it saved bits:

settingbits savedverdict
keyframe every 5 s instead of 2 s16.6 %kept: the seek track makes it possible
variance boost2.8 %kept, although it makes PSNR worse
quantization matrices±0.3 %kept, helps in combination
SSIM tuning−3.1 %rejected: better on the metric, worse for the eye
all of it together21.1 %what runs

The biggest single win is structural, not a flag. Because the seek track answers seeks, the viewing track does not need frequent keyframes, so the two-track design pays for itself twice: in responsiveness and in compression.

Seeking

Bytes needed to show an image at an arbitrary point in a 10.6-minute film:

pathbytes to first imagewhole fetch
the seek track54 KiB298 KiB
viewing track, partial blob318 KiB1,986 KiB
a whole viewing blob—3,666 KiB
the whole file, progressive—39 MiB

Measured: 76–184 ms to an image in the browser and about 350 ms in the Android app. On a throttled connection the seek track showed an image after 1.2 s where the viewing track alone took 16.9 s. 84 % of all fetches are partial blobs, while segment-based streaming always fetches whole segments.

What it costs, and where the industry is ahead

The seek track adds 84 % storage on top of the viewing track: responsiveness is not free. Netflix also runs AV1, with per-shot optimization and encoding times we deliberately do not pay, so in pure compression we play in the same league as their codec. What differs is the architecture. Per-title optimization, VMAF-driven quality control, DRM and CDN scale are where the industry is ahead, and none of it contradicts blobs.

The project is still in development. A test instance runs behind a password, and the code is private.

← All projects