WEBVTT
Kind: captions
Language: en

00:00:00.240 --> 00:00:04.640
This is an image file, containing a&nbsp;
picture of my cat. But if I rename&nbsp;&nbsp;

00:00:04.640 --> 00:00:11.520
it to “.MP4”, it becomes a video file-&nbsp;
also of my cat. If renamed to “.PDF”,&nbsp;&nbsp;

00:00:11.520 --> 00:00:16.240
it becomes a text document containing the&nbsp;
script for this video. It can also be a&nbsp;&nbsp;

00:00:16.240 --> 00:00:23.120
valid webpage, a ZIP archive, or a PowerPoint&nbsp;
presentation, all by simply changing the name.

00:00:23.120 --> 00:00:26.320
This kind of file is sometimes&nbsp;
called a “polyglot”. Although,&nbsp;&nbsp;

00:00:26.320 --> 00:00:31.040
usually that term refers to code that works&nbsp;
in multiple programming languages. Hence the&nbsp;&nbsp;

00:00:31.040 --> 00:00:39.360
name – “polyglot”. Of course, text is one thing.&nbsp;
Storing media this way is a lot more interesting.

00:00:39.360 --> 00:00:44.000
Computers store data in long strings of&nbsp;
ones and zeroes – you probably already&nbsp;&nbsp;

00:00:44.000 --> 00:00:48.960
knew that. You might also know that those&nbsp;
ones and zeroes are just numbers. Therefore,&nbsp;&nbsp;

00:00:48.960 --> 00:00:52.160
an image is just a grid of those numbers.

00:00:52.160 --> 00:00:57.440
But, if that’s the case, then how do we know to&nbsp;
arrange these numbers? What decides the dimensions&nbsp;&nbsp;

00:00:57.440 --> 00:01:02.240
of the image, or the quality? Naturally, you&nbsp;
might think to just add a few more numbers,&nbsp;&nbsp;

00:01:02.240 --> 00:01:06.800
separate from the image data. For example,&nbsp;
the width and height to set the dimensions,&nbsp;&nbsp;

00:01:06.800 --> 00:01:11.120
and bits-per-pixel to define color depth.&nbsp;
We might also want to include the source&nbsp;&nbsp;

00:01:11.120 --> 00:01:15.280
of the image, the date on which it was&nbsp;
created, and some other metadata. And,&nbsp;&nbsp;

00:01:15.280 --> 00:01:18.720
to make sure that we don’t confuse&nbsp;
this with some other image format,&nbsp;&nbsp;

00:01:18.720 --> 00:01:24.880
let’s add a so-called “magic number” to the&nbsp;
start, which is unique to this type of file.

00:01:24.880 --> 00:01:30.000
This structure is called a header, because it&nbsp;
often appears at the top of the file. Almost&nbsp;&nbsp;

00:01:30.000 --> 00:01:34.960
every file has one, and it’s what programs&nbsp;
use to determine what to do with the data.

00:01:34.960 --> 00:01:39.280
The file extension – the part after the&nbsp;
dot in the file name – is only used to&nbsp;&nbsp;

00:01:39.280 --> 00:01:44.480
determine what program to use, and not&nbsp;
what that program does. For example,&nbsp;&nbsp;

00:01:44.480 --> 00:01:50.320
renaming a PNG file to “.JPG” probably won’t&nbsp;
break anything, because both of them request&nbsp;&nbsp;

00:01:50.320 --> 00:01:55.920
your default image viewer, which ignores the&nbsp;
file name and simply refers to the headers.

00:01:55.920 --> 00:01:59.360
But if our goal is to bundle&nbsp;
different types of media,&nbsp;&nbsp;

00:01:59.360 --> 00:02:05.360
such as an image and a video, into the&nbsp;
same file, then this becomes a problem.

00:02:05.360 --> 00:02:10.400
We need a file that can imitate both a&nbsp;
video and an image, depending on which&nbsp;&nbsp;

00:02:10.400 --> 00:02:14.480
program is reading it. The data blobs can&nbsp;
just be stacked on top of one another,&nbsp;&nbsp;

00:02:14.480 --> 00:02:20.480
but the headers have to be at the very start,&nbsp;
which means that we have to merge them together.

00:02:20.480 --> 00:02:22.800
If you try to do this with most media files,&nbsp;&nbsp;

00:02:22.800 --> 00:02:28.560
you'll find that it's just plain impossible.&nbsp;
For example, a PNG starts with hex 89,&nbsp;&nbsp;

00:02:28.560 --> 00:02:36.160
followed by the letters "PNG". A GIF starts&nbsp;
with the text "GIF89a". These have to be the&nbsp;&nbsp;

00:02:36.160 --> 00:02:41.760
first characters in the file, so obviously&nbsp;
there's no way to merge these headers.

00:02:41.760 --> 00:02:47.760
A rare few file formats, like Truevision TGA&nbsp;
images, have a very loose header structure&nbsp;&nbsp;

00:02:47.760 --> 00:02:53.040
without a magic number. This is usually because&nbsp;
they're tied to specific hardware – in this case,&nbsp;&nbsp;

00:02:53.040 --> 00:02:59.120
"TGA" was a specialized format for the first ever&nbsp;
true-color graphics cards for IBM compatibles.

00:02:59.120 --> 00:03:03.920
Let's take a look at this format. The first&nbsp;
byte defines the size of a metadata block,&nbsp;&nbsp;

00:03:03.920 --> 00:03:09.200
so it can basically be anything. The second byte&nbsp;
is either 0 or 1, depending on whether the image&nbsp;&nbsp;

00:03:09.200 --> 00:03:15.360
uses a color map. The third byte picks the image&nbsp;
type, and can theoretically be any number from 1&nbsp;&nbsp;

00:03:15.360 --> 00:03:23.360
to 3 or 9 to 11, and in some cases even 32 and&nbsp;
33. The next five bytes outline the color map,&nbsp;&nbsp;

00:03:23.360 --> 00:03:27.920
but if you're not using one, you can&nbsp;
fill these with pretty much anything.

00:03:27.920 --> 00:03:35.040
With this, I was able to create a polyglot out of&nbsp;
a TGA image and an MP4 video. The video component&nbsp;&nbsp;

00:03:35.040 --> 00:03:40.880
worked fine, but the image had to have a very&nbsp;
low resolution for this to work. On top of that,&nbsp;&nbsp;

00:03:40.880 --> 00:03:47.040
TGA is an incredibly old and bespoke format&nbsp;
with limited software support. I wanted to try&nbsp;&nbsp;

00:03:47.040 --> 00:03:53.120
something more mainstream, but for that, we'll&nbsp;
have to take a closer look at the MP4 header.

00:03:53.120 --> 00:03:56.400
Technically, MP4 doesn't have a header. Instead,&nbsp;&nbsp;

00:03:56.400 --> 00:04:01.600
it uses these boxes called "atoms"&nbsp;
to modularly define data. However,&nbsp;&nbsp;

00:04:01.600 --> 00:04:07.520
most video players expect the "ftyp" atom&nbsp;
– the "file type" atom – to come first.

00:04:07.520 --> 00:04:13.040
This atom is split up into 4-byte chunks. The&nbsp;
first 4 bytes encode the size of the atom,&nbsp;&nbsp;

00:04:13.040 --> 00:04:16.080
and the next 4 bytes contain the&nbsp;
name of the atom – in this case,&nbsp;&nbsp;

00:04:16.080 --> 00:04:20.880
that's just the letters "ftyp". That's&nbsp;
actually how I was able make the TGA&nbsp;&nbsp;

00:04:20.880 --> 00:04:25.840
polyglot – these letters happen to land in&nbsp;
the color map field that I wasn't using.

00:04:25.840 --> 00:04:30.480
If you're confused about the sudden appearance&nbsp;
of letters, don't be – they're still just numbers&nbsp;&nbsp;

00:04:30.480 --> 00:04:35.040
under the hood, mapped to a table that&nbsp;
works kind of like a digital alphabet.

00:04:35.680 --> 00:04:41.920
Next comes the "major brand name", which defines&nbsp;
what specification this file follows. For MP4,&nbsp;&nbsp;

00:04:41.920 --> 00:04:48.640
that's usually "isom", which stands for ISO&nbsp;
Media. It doesn't necessarily imply an MP4,&nbsp;&nbsp;

00:04:48.640 --> 00:04:51.120
though. The next 4 bytes encode a version number,&nbsp;&nbsp;

00:04:51.120 --> 00:04:57.280
and the following chunks list all other&nbsp;
supported brands, including "MP41" – that's&nbsp;&nbsp;

00:04:57.280 --> 00:05:04.320
the first and only mention of this file being&nbsp;
an MP4, specifically, version 1 of the spec.

00:05:04.320 --> 00:05:09.360
Now, after a bit of experimentation, I found&nbsp;
that most players don't actually care about&nbsp;&nbsp;

00:05:09.360 --> 00:05:14.960
what's in this atom. They just need it to come&nbsp;
first. In fact, they often don't even check if&nbsp;&nbsp;

00:05:14.960 --> 00:05:21.280
the atom is called "ftyp" – they just assume&nbsp;
that the first atom has to be the file type.

00:05:21.280 --> 00:05:28.160
Well, all but VLC. It does care, and will simply&nbsp;
refuse to play the file if the "ftyp" name doesn't&nbsp;&nbsp;

00:05:28.160 --> 00:05:36.320
appear in the first 256 bytes. Still though, in&nbsp;
most other cases, this atom is a header sandbox.

00:05:36.320 --> 00:05:41.840
However, you do still have to be careful.&nbsp;
Those first 4 bytes that encode the size&nbsp;&nbsp;

00:05:41.840 --> 00:05:47.920
make up an unsigned 32-bit value, which&nbsp;
can go up to 4 gigabytes. While that's&nbsp;&nbsp;

00:05:47.920 --> 00:05:52.640
not a technical limitation, it can&nbsp;
be a very real logistical problem.

00:05:52.640 --> 00:05:55.520
Because of this, we can't&nbsp;
just plug in a PNG header-&nbsp;&nbsp;

00:05:55.520 --> 00:05:59.840
that would bloat the file to about 2&nbsp;
gigabytes. JPG would be 4 gigabytes,&nbsp;&nbsp;

00:05:59.840 --> 00:06:04.560
and GIF would still be over a gigabyte.&nbsp;
Pretty much every mainstream image format&nbsp;&nbsp;

00:06:04.560 --> 00:06:11.120
has a complicated magic number that gets&nbsp;
really big when parsed as... an actual number.

00:06:11.120 --> 00:06:15.600
Once again – that's why TGA worked.&nbsp;
It doesn't have a magic number. Its&nbsp;&nbsp;

00:06:15.600 --> 00:06:19.760
header can start with a bunch of&nbsp;
zeroes. But this really seems like&nbsp;&nbsp;

00:06:19.760 --> 00:06:25.200
a lucky coincidence that doesn't&nbsp;
pop up in any other image file.

00:06:25.200 --> 00:06:27.760
Well, except for one.

00:06:27.760 --> 00:06:35.520
The Windows icon has an incredibly generic header.&nbsp;
Its 4-byte hex signature is, I kid you not,&nbsp;&nbsp;

00:06:35.520 --> 00:06:45.280
"00 00 01 00". Better yet, it allows you to offset&nbsp;
the actual image data to anywhere in the file.

00:06:45.280 --> 00:06:50.240
Let's align this to the MP4 header. The first&nbsp;
4 bytes are that super generic signature,&nbsp;&nbsp;

00:06:50.240 --> 00:06:56.000
which translates to a 256-byte atom size. For now&nbsp;
that just means we have to extend the supported&nbsp;&nbsp;

00:06:56.000 --> 00:07:02.480
brands list with 240 bytes of empty data, which&nbsp;
will become important later on. The next 2 bytes&nbsp;&nbsp;

00:07:02.480 --> 00:07:07.920
specify the amount of images that the icon&nbsp;
holds. In our case, let that be just one. The&nbsp;&nbsp;

00:07:07.920 --> 00:07:13.600
next 8 or so bytes define the parameters of the&nbsp;
image, but we can pretty much just ignore these.

00:07:13.600 --> 00:07:20.960
The thing is, Windows icons support bitmaps&nbsp;
and PNG files. And, if you're using a PNG,&nbsp;&nbsp;

00:07:20.960 --> 00:07:26.800
these parameters are often inferred from&nbsp;
the PNG data. So really, the only data that&nbsp;&nbsp;

00:07:26.800 --> 00:07:33.280
we have to consider are the last 8 bytes,&nbsp;
which tell the icon where to find that PNG.

00:07:33.280 --> 00:07:38.000
This begs the question – where do we put the&nbsp;
image? As I mentioned earlier, you can often&nbsp;&nbsp;

00:07:38.000 --> 00:07:42.560
just stack blobs of data on top of each other&nbsp;
as long as the headers know where to look.&nbsp;&nbsp;

00:07:42.560 --> 00:07:48.880
But if we want to be a bit more careful,&nbsp;
we can embed the image into the MP4 itself.

00:07:48.880 --> 00:07:54.160
Among the many MP4 atoms, there are a few&nbsp;
that are reserved for ancillary metadata.&nbsp;&nbsp;

00:07:54.160 --> 00:08:00.400
The "skip" atom does... exactly that&nbsp;
– it skips any data that it contains.&nbsp;&nbsp;

00:08:00.400 --> 00:08:05.760
We can safely put the entire image in&nbsp;
here, and the MP4 will just ignore it.

00:08:05.760 --> 00:08:09.200
Remember – just doing this,&nbsp;
without the header jank,&nbsp;&nbsp;

00:08:09.200 --> 00:08:13.200
wouldn't be enough to combine a video and&nbsp;
an image, because the software that actually&nbsp;&nbsp;

00:08:13.200 --> 00:08:17.680
reads the data won't know where to look&nbsp;
for it without our Frankensteined header.

00:08:17.680 --> 00:08:25.200
So with this, we've built a two-part media&nbsp;
polyglot. It can be an MP4 video, or a PNG image.

00:08:25.200 --> 00:08:28.160
Now, hold on- I said this used a "Windows&nbsp;&nbsp;

00:08:28.160 --> 00:08:35.360
icon", didn't I? That should use the ".ICO"&nbsp;
extension, but here PNG works just as well.

00:08:35.360 --> 00:08:39.200
Once again, this is because the&nbsp;
file name is only used to invoke&nbsp;&nbsp;

00:08:39.200 --> 00:08:45.280
the right program. For MP4, that's&nbsp;
a video player. For ICO and PNG,&nbsp;&nbsp;

00:08:45.280 --> 00:08:50.240
that's an image viewer. The program itself&nbsp;
doesn't actually care about the file name.&nbsp;&nbsp;

00:08:50.240 --> 00:08:55.840
It just reads the header, sees that it's&nbsp;
a Windows icon, and parses it as such.

00:08:55.840 --> 00:09:01.600
The logical next step is to continue cramming&nbsp;
more file types into our polyglot. For that,&nbsp;&nbsp;

00:09:01.600 --> 00:09:04.720
let's first take a look at some low-hanging fruit.

00:09:04.720 --> 00:09:10.400
Unlike most files, "ZIP" archives are actually&nbsp;
read from the bottom up. This is because,&nbsp;&nbsp;

00:09:10.400 --> 00:09:16.160
back in the days of floppy discs, it wouldn't be&nbsp;
uncommon for a ZIP file to span multiple floppies.&nbsp;&nbsp;

00:09:16.160 --> 00:09:21.200
Most computers only had one or maybe two disc&nbsp;
drives, so it would've been very inconvenient&nbsp;&nbsp;

00:09:21.200 --> 00:09:26.400
to swap between discs in rewriting the&nbsp;
whole archive, just to add one file.

00:09:26.400 --> 00:09:32.240
Because of this, ZIP files don't have a "header"&nbsp;
per se. Instead, the "central directory" as it's&nbsp;&nbsp;

00:09:32.240 --> 00:09:37.760
called is simply appended to the end of the&nbsp;
file. For 1989, this meant only having to&nbsp;&nbsp;

00:09:37.760 --> 00:09:43.120
insert the last floppy disc when adding a&nbsp;
file. For 2025, this means we can literally&nbsp;&nbsp;

00:09:43.120 --> 00:09:49.520
just copy-paste a ZIP file to the bottom of our&nbsp;
polyglot, and it'll mostly work as expected.

00:09:49.520 --> 00:09:55.920
However, if we leave it as-is, most tools won't&nbsp;
be happy. The Unix "unzip" utility does extract&nbsp;&nbsp;

00:09:55.920 --> 00:10:00.000
the files, albeit with a scary-looking&nbsp;
warning. This can be mostly remedied&nbsp;&nbsp;

00:10:00.000 --> 00:10:05.040
by applying an offset fix typically meant for&nbsp;
self-extracting archives, though some programs&nbsp;&nbsp;

00:10:05.040 --> 00:10:10.240
may still naively assume that a modern-day&nbsp;
ZIP is safe to read from the top down.

00:10:10.240 --> 00:10:15.040
Interestingly, there are actually a whole bunch&nbsp;
of file formats that use a ZIP file under the&nbsp;&nbsp;

00:10:15.040 --> 00:10:20.960
hood. For example, if you rename a PowerPoint&nbsp;
presentation to end in ".ZIP", you'll see that&nbsp;&nbsp;

00:10:20.960 --> 00:10:29.840
it really is just a ZIP file in disguise. The same&nbsp;
goes for Java applications, and Android APK files.

00:10:29.840 --> 00:10:35.760
Another relatively simple addition is PDF. If&nbsp;
you take a look inside of a simple PDF file,&nbsp;&nbsp;

00:10:35.760 --> 00:10:42.240
you'll see that it's mostly just plain text. This&nbsp;
is because a PDF is really just a form of markup,&nbsp;&nbsp;

00:10:42.240 --> 00:10:46.480
similar to code in a programming&nbsp;
language. And, as I said earlier,&nbsp;&nbsp;

00:10:46.480 --> 00:10:50.640
making polyglots of code is&nbsp;
usually not that difficult.

00:10:50.640 --> 00:10:55.360
PDFs do have a header, but because&nbsp;
it's semantically just a code comment,&nbsp;&nbsp;

00:10:55.360 --> 00:10:59.760
most PDF readers don't require it to&nbsp;
be at the top of the file. As long as&nbsp;&nbsp;

00:10:59.760 --> 00:11:03.680
it's somewhere in the first kilobyte&nbsp;
or so, they'll often let it slide.&nbsp;&nbsp;

00:11:03.680 --> 00:11:08.000
We just need to find a bit of space&nbsp;
somewhere near the top of the file.

00:11:08.000 --> 00:11:13.040
This is where those 240 bytes of&nbsp;
empty atom data come into play. See,&nbsp;&nbsp;

00:11:13.040 --> 00:11:18.640
I told you it would be important later! Now,&nbsp;
240 bytes is not a lot – it's definitely not&nbsp;&nbsp;

00:11:18.640 --> 00:11:23.440
enough to store the whole document, but&nbsp;
we can at least fit that header. Then,&nbsp;&nbsp;

00:11:23.440 --> 00:11:28.880
we can declare a PDF object, assigning&nbsp;
it the size of the entire polyglot file.

00:11:28.880 --> 00:11:33.040
To the reader, this now looks like&nbsp;
valid PDF data. It doesn't actually&nbsp;&nbsp;

00:11:33.040 --> 00:11:37.520
matter what's inside of this object, as&nbsp;
long as it's never used. And finally,&nbsp;&nbsp;

00:11:37.520 --> 00:11:44.000
at the end of our polyglot, we can close that&nbsp;
object declaration, and tack on the real PDF data.

00:11:44.000 --> 00:11:48.880
This is already enough to satisfy&nbsp;
every PDF reader I've tested. But,&nbsp;&nbsp;

00:11:48.880 --> 00:11:52.560
just to be thorough, there's&nbsp;
one more thing we can do.

00:11:52.560 --> 00:11:57.360
Every PDF file has a cross-reference&nbsp;
table, containing exact byte addresses&nbsp;&nbsp;

00:11:57.360 --> 00:12:02.080
to all of the objects in the document. This&nbsp;
makes jumping between large chunks of data&nbsp;&nbsp;

00:12:02.080 --> 00:12:06.960
much more efficient. But, since our PDF&nbsp;
now has a bunch of garbage on top of it,&nbsp;&nbsp;

00:12:06.960 --> 00:12:12.640
these addresses are going to be offset.&nbsp;
Again, most PDF readers won't really care,&nbsp;&nbsp;

00:12:12.640 --> 00:12:17.200
but just to be nice, we'll adjust these&nbsp;
too, to point to the correct locations.

00:12:17.200 --> 00:12:22.480
At this point, our polyglot is starting to&nbsp;
get really cramped. I can only really think&nbsp;&nbsp;

00:12:22.480 --> 00:12:27.760
of one more freebie before things&nbsp;
get complicated, and that's HTML.

00:12:27.760 --> 00:12:31.760
This is the stuff that holds together&nbsp;
the structure of nearly every single&nbsp;&nbsp;

00:12:31.760 --> 00:12:37.840
website. As a standalone file, it can be&nbsp;
used to serve a local copy of a webpage.

00:12:37.840 --> 00:12:43.120
Yes, technically, this is code – but it's the kind&nbsp;
of user-facing code that you don't really think&nbsp;&nbsp;

00:12:43.120 --> 00:12:49.760
of as code. Still, it does retain the property of&nbsp;
being really easy to embed. We can quite literally&nbsp;&nbsp;

00:12:49.760 --> 00:12:56.000
just jam it into another "skip" atom in the middle&nbsp;
of our MP4, and it will remain mostly coherent.

00:12:56.000 --> 00:13:00.640
HTML is incredibly noise tolerant, in&nbsp;
the sense that it's happy to interpret&nbsp;&nbsp;

00:13:00.640 --> 00:13:05.840
noise as valid data. To fix this, I wrote&nbsp;
a small stylesheet that sets the font size&nbsp;&nbsp;

00:13:05.840 --> 00:13:11.440
of the entire document to zero, except&nbsp;
for the parts that I want to display.

00:13:11.440 --> 00:13:15.520
You can even use this to embed any&nbsp;
arbitrary media – like a picture of&nbsp;&nbsp;

00:13:15.520 --> 00:13:21.600
my cat – by converting it to base64&nbsp;
text and providing that as a URL.

00:13:21.600 --> 00:13:27.520
The final piece that's missing from our&nbsp;
all-in-one media polyglot is an audio file. Sure,&nbsp;&nbsp;

00:13:27.520 --> 00:13:33.200
you can put an MP3 in the ZIP archive, or&nbsp;
embed audio into the HTML webpage, and yes,&nbsp;&nbsp;

00:13:33.200 --> 00:13:40.320
technically, the video file already has audio, but&nbsp;
I'm talking about a dedicated audio file format.

00:13:40.320 --> 00:13:44.400
As per usual, most mainstream audio&nbsp;
formats have strict header signatures,&nbsp;&nbsp;

00:13:44.400 --> 00:13:49.360
with magic numbers and exact byte ranges.&nbsp;
Ironically though, the most mainstream of&nbsp;&nbsp;

00:13:49.360 --> 00:13:54.960
them all – MP3 files – are pretty much&nbsp;
the only ones without a strict header.

00:13:54.960 --> 00:14:00.160
MP3 audio is split up into hundreds of&nbsp;
chunks, each only a few milliseconds&nbsp;&nbsp;

00:14:00.160 --> 00:14:05.280
long. These chunks each have their own 4-byte&nbsp;
header, and the file format is designed to&nbsp;&nbsp;

00:14:05.280 --> 00:14:10.800
detect and withstand any surrounding noise.&nbsp;
Just like with ZIP files, you can literally&nbsp;&nbsp;

00:14:10.800 --> 00:14:17.280
just append an MP3 file to the end of the&nbsp;
polyglot, and it'll count as a valid MP3.

00:14:17.280 --> 00:14:21.760
However, in reality, there's a very&nbsp;
silly problem with this approach.

00:14:21.760 --> 00:14:26.960
You see, most modern media players support&nbsp;
playing back video and audio files, all in&nbsp;&nbsp;

00:14:26.960 --> 00:14:32.240
the same program. Nowadays, there are hardly&nbsp;
any dedicated "audio-only" or "video-only"&nbsp;&nbsp;

00:14:32.240 --> 00:14:38.160
programs. And, as I said, the programs that&nbsp;
we do have, rarely check the file name.

00:14:38.160 --> 00:14:43.520
So, when a media player reads my polyglot,&nbsp;
it encounters the video data first,&nbsp;&nbsp;

00:14:43.520 --> 00:14:48.880
and starts playing back the video&nbsp;
before it even notices the MP3 data.

00:14:48.880 --> 00:14:52.000
The only media player that successfully plays back&nbsp;&nbsp;

00:14:52.000 --> 00:14:58.960
the MP3 is VLC, and that's probably just&nbsp;
because it can't recognize the MP4 data.

00:14:58.960 --> 00:15:04.560
I tried a few more obscure approaches, like Amiga&nbsp;
SoundTracker songs or other ISO Media files,&nbsp;&nbsp;

00:15:04.560 --> 00:15:08.320
but the header is simply too&nbsp;
cramped to fit anything else.

00:15:08.320 --> 00:15:12.640
At one point, I got really close to&nbsp;
embedding a "Windows Media Download&nbsp;&nbsp;

00:15:12.640 --> 00:15:16.320
Package", which is basically just a&nbsp;
ZIP file that contains a playlist,&nbsp;&nbsp;

00:15:16.320 --> 00:15:21.760
a skin, and – crucually – audio for the&nbsp;
Windows Media player. But because this&nbsp;&nbsp;

00:15:21.760 --> 00:15:27.040
is an obscure and long-deprecated feature,&nbsp;
the ZIP support isn't good enough to handle&nbsp;&nbsp;

00:15:27.040 --> 00:15:31.680
a polyglot. Let me know if you've got an&nbsp;
idea on how to cram audio into this thing.

00:15:31.680 --> 00:15:33.920
In the meanwhile, do check out the description.&nbsp;&nbsp;

00:15:33.920 --> 00:15:38.240
I'll leave a link to a polyglot file for&nbsp;
you to try out with various media of my cat,&nbsp;&nbsp;

00:15:38.240 --> 00:15:43.280
along with a link to this project on GitHub.&nbsp;
This whole thing is based on a tool I made&nbsp;&nbsp;

00:15:43.280 --> 00:15:47.280
that can generate these polyglots from&nbsp;
any of the files that I talked about.

00:15:47.280 --> 00:15:51.680
If you want more esoteric compsci jank, you&nbsp;
should subscribe to the channel! Or you can&nbsp;&nbsp;

00:15:51.680 --> 00:15:56.720
check out my last video about playing Doom in a&nbsp;
Discord GIF – YouTube took it down for a week,&nbsp;&nbsp;

00:15:56.720 --> 00:16:01.120
so its viewership is terrible, but&nbsp;
it's otherwise a pretty good video.

00:16:01.120 --> 00:16:04.800
Anyway, that's all from me today. See ya!

