fsis.site 🐴

7MB Terminator

Yesterday I was kinda bored and decided to test the limits of common video compression algorithms. I recall once seeing someone compress the whole Hackers movie into under 7MB to upload it, whole, on Mastodon. I’m sorry, whoever you are, I think I lost the link and I can’t seem to find it.

I didn’t have the Hackers movie at hand (except that 7MB file that I’ve downloaded out of curiosity), but I did have The Terminator, so I decided to replicate the previous person’s achievement with a different movie. Now, Terminator is about 20 minutes longer than the Hackers (at least, according to the files I have), and (long story short) I couldn’t get it to anything less than 7.6MB — which is still, in my eyes, quite an achievement.

Handbrake

First off, I tried just transcoding it with Handbrake, as I had it installed. Didn’t quite work. I don’t even have a screenshot to prove, it was just gray moving squares, having little in common with the movie itself.

HEVC, VP9

Then I tried HEVC/libx265. Both in two-pass mode (with a target bitrate of ~6kbps) and in CBR mode (again, with a target bitrate of ~6kbps) I found it to drift upwards to 15-20kbps, so it was no go.

Same happened with VP9 (that’s used in webm).

x264

This left me with libx264 which, strangely enough, would two-pass encode the movie with as low as 3kbps! The result of that was nearly unwatchable (again, gray squares), but at least it was stable.

Two-pass encoding with a target of 6kbps, however, produced something barely recognizable! At about 6623kb, this was already quite an achievement.

Audio

First try was with libopus, since it has a voip settings and thus should allow fairly low bitrates. This failed, as again and again it tended to go upward to ~5kbps or produce an hour and forty-seven minutes of silence.

Same happened with AAC, but it fared better, as cutoff bitrate was about 2kbps (below that, silence). Again, even if very mangled, the result is quite recognizable most of the time.

Result

7.6MB Terminator.mp4 that I can’t upload anywhere and you can’t download from anywhere because that would be PIRACY, wouldn’t it?

Sorry to end on a downer, but I just wanted to record my findings.

#hacks