WEBVTT
Kind: captions
Language: en

00:00:00.834 --> 00:00:02.377
[in mock Austrian accent]
- I'm the Captain.

00:00:02.377 --> 00:00:04.546
- And I'm the Captain with
an improperly applied

00:00:04.546 --> 00:00:05.922
alpha transparency.

00:00:05.922 --> 00:00:07.882
[both]
- And we are going to fix...

00:00:08.299 --> 00:00:09.384
[both]
- Your matte!

00:00:09.384 --> 00:00:10.260
[speaking normally]
- No, we can't...

00:00:10.260 --> 00:00:12.887
- The reference is too ancient.
- Yeah, I agree, it's stupid.

00:00:12.887 --> 00:00:14.264
- They're not gonna
know what this is.

00:00:14.264 --> 00:00:16.266
- It's lame, they're too young.
- I agree!

00:00:16.266 --> 00:00:18.476
- It's kind of offensive.
- But like, there's no time!

00:00:18.476 --> 00:00:21.104
- The upload schedule, man...
- The YouTube algorithm is evil!

00:00:23.982 --> 00:00:27.360
Compositing is the process of
putting parts of images together

00:00:27.360 --> 00:00:29.696
into one image
in a way that...

00:00:29.696 --> 00:00:31.781
you can't tell for sure
that it was done.

00:00:31.781 --> 00:00:33.992
While your grandmother
was using scissors

00:00:33.992 --> 00:00:36.828
to cut boybands out of
magazines for her collage,

00:00:36.828 --> 00:00:39.873
elsewhere, visual effects artist
were compositing

00:00:39.873 --> 00:00:42.208
moving images
together optically.

00:00:42.500 --> 00:00:44.836
By blocking out light on
specific areas of the picture

00:00:44.836 --> 00:00:46.463
with black-and-white
matte shapes

00:00:46.463 --> 00:00:48.173
they could expose
different elements

00:00:48.173 --> 00:00:50.759
onto the same frame
of film, one at a time

00:00:50.759 --> 00:00:53.720
all adding up to a single,
physical copy of the composite

00:00:53.720 --> 00:00:55.305
that then had to be
dunked in chemicals

00:00:55.305 --> 00:00:57.140
dried and copied
a few more times

00:00:57.140 --> 00:00:58.850
before a noticeably
degraded version

00:00:58.850 --> 00:01:00.643
could finally be
seen by an audience.

00:01:01.102 --> 00:01:02.854
That sucked.

00:01:02.854 --> 00:01:05.774
And didn't match the vision
of visionary filmmakers

00:01:05.774 --> 00:01:07.400
who had the vision
to say --

00:01:07.692 --> 00:01:09.778
Just... don't do it like that.

00:01:09.778 --> 00:01:11.196
Do it different somehow.

00:01:11.446 --> 00:01:12.655
Make it easier.

00:01:12.655 --> 00:01:13.823
And better.

00:01:13.823 --> 00:01:15.033
Make it better.

00:01:15.033 --> 00:01:16.659
Just think about it.

00:01:17.535 --> 00:01:19.370
And we like to think
that we've evolved

00:01:19.370 --> 00:01:20.997
past these
primitive techniques

00:01:20.997 --> 00:01:23.374
but the truth is today,
digital images are

00:01:23.374 --> 00:01:25.668
kind of composited
the exact same way.

00:01:25.668 --> 00:01:28.004
Only instead of film
it's math

00:01:28.004 --> 00:01:29.756
and instead of
optical printing

00:01:29.756 --> 00:01:30.965
it's math.

00:01:31.257 --> 00:01:32.801
Values representing
brightness in the

00:01:32.801 --> 00:01:34.552
red, green, and blue
channels add up

00:01:34.552 --> 00:01:35.637
to define the picture

00:01:35.637 --> 00:01:37.764
and an extra channel,
called "alpha"

00:01:37.764 --> 00:01:39.265
for boring math reasons,

00:01:39.265 --> 00:01:41.351
contains the values
defining the matte.

00:01:41.351 --> 00:01:42.936
Where do these
mattes come from?

00:01:42.936 --> 00:01:43.770
Well, as you know

00:01:43.770 --> 00:01:45.814
sometimes they're
drawn by hand.

00:01:45.814 --> 00:01:47.148
Other times they're
the result of a

00:01:47.148 --> 00:01:49.109
fancy chroma-keying
process.

00:01:49.109 --> 00:01:51.361
And occasionally it's
just some kind of

00:01:51.361 --> 00:01:53.321
magic voodoo,
don't worry about it.

00:01:53.321 --> 00:01:56.282
And unlike in the grimy,
filmic, analog past

00:01:56.282 --> 00:01:58.201
a digital alpha channel
can be stored

00:01:58.201 --> 00:02:00.411
right alongside the color,
so the image file

00:02:00.411 --> 00:02:03.123
is conveniently distributed
with its transparency

00:02:03.123 --> 00:02:04.833
in supported formats,
such as

00:02:04.833 --> 00:02:06.793
"jaif" and "pnnng."

00:02:06.793 --> 00:02:09.754
White represents opaque and
black represents transparent.

00:02:09.754 --> 00:02:11.297
An easy way to remember that

00:02:11.297 --> 00:02:13.800
is that it's the way
that a silhouette isn't.

00:02:14.175 --> 00:02:15.426
Why is it that way?

00:02:15.552 --> 00:02:16.386
[buttons beep]

00:02:16.386 --> 00:02:17.554
Because of math!

00:02:17.554 --> 00:02:19.180
How many times
do I have to say it?

00:02:19.305 --> 00:02:21.224
If you want to put an
alpha-matted picture of me

00:02:21.224 --> 00:02:22.725
over a background,
you have to

00:02:22.725 --> 00:02:24.644
take the color
channels' pixels

00:02:24.644 --> 00:02:26.354
multiply their values
by the values

00:02:26.354 --> 00:02:27.897
of the alpha matte's pixels

00:02:27.897 --> 00:02:28.982
invert the matte

00:02:28.982 --> 00:02:31.901
multiply the color pixels of the
background picture by that

00:02:31.901 --> 00:02:33.278
Add the two results together

00:02:33.278 --> 00:02:34.279
and kablammo!

00:02:34.279 --> 00:02:35.697
It's like I'm really there!

00:02:35.989 --> 00:02:38.032
Well, you don't have to
do any of that.

00:02:38.032 --> 00:02:39.742
You just drag
the picture over

00:02:39.742 --> 00:02:41.953
the fancy software
figures it out for you

00:02:41.953 --> 00:02:44.956
and you get to put
"VFX generalist" on your CV.

00:02:45.582 --> 00:02:48.459
But of course, it's not
as clear-cut as that.

00:02:48.459 --> 00:02:50.628
There's always
a gray area.

00:02:50.628 --> 00:02:51.546
Literally.

00:02:51.629 --> 00:02:53.548
In anything more
advanced than a GIF

00:02:53.548 --> 00:02:56.593
gray values define
partial transparency

00:02:56.593 --> 00:02:59.220
and allow for smooth,
antialiased edges.

00:02:59.220 --> 00:03:00.680
This is very helpful.

00:03:00.680 --> 00:03:02.640
But also scary

00:03:02.640 --> 00:03:04.809
for it tends to awaken
the mysterious

00:03:04.809 --> 00:03:06.728
gatekeeper of confusion

00:03:06.728 --> 00:03:09.689
looming in the way of
every aspiring VFX artist

00:03:09.981 --> 00:03:12.400
- [monster growls]
- Premultiplication.

00:03:12.984 --> 00:03:14.611
What... is it?

00:03:14.611 --> 00:03:17.572
Why do I have to juggle
these settings every time?

00:03:17.572 --> 00:03:19.616
How many
guesses do I get?!

00:03:19.991 --> 00:03:20.742
Relax.

00:03:21.326 --> 00:03:22.285
I got you.

00:03:22.493 --> 00:03:23.953
- [tape rewinding]
- Remember that first step

00:03:23.953 --> 00:03:25.705
in the composting process,
where you multiply

00:03:25.705 --> 00:03:27.207
the foreground image
by the matte

00:03:27.207 --> 00:03:29.584
basically masking the
color channels with black?

00:03:29.792 --> 00:03:31.377
Usually it
happens during...

00:03:31.669 --> 00:03:33.421
well,
the compositing process.

00:03:33.421 --> 00:03:35.215
But sometimes
it has to be done

00:03:35.215 --> 00:03:38.009
back when the original
image gets its alpha matte.

00:03:38.009 --> 00:03:39.844
Most 3D software,
for instance

00:03:39.844 --> 00:03:42.555
combines its various
render passes that way.

00:03:42.889 --> 00:03:45.058
So when this "multiplication"

00:03:45.058 --> 00:03:47.018
has been done
in the original image

00:03:47.018 --> 00:03:48.853
"pre" any compositing

00:03:48.853 --> 00:03:51.731
it needs to be skipped
during compositing.

00:03:51.731 --> 00:03:54.275
You need to tell the software
the file's premultiplied.

00:03:54.275 --> 00:03:56.736
Otherwise you'll be doing
the multiplying twice.

00:03:56.736 --> 00:03:58.446
The partially-darkened
edge pixels

00:03:58.446 --> 00:04:01.074
will become even darker,
recede into the image

00:04:01.074 --> 00:04:02.700
and show up
in the composite.

00:04:02.700 --> 00:04:04.202
You won't notice
and put the shot

00:04:04.202 --> 00:04:05.828
into an otherwie
decent video

00:04:05.828 --> 00:04:07.997
upload it to YouTube,
it'll get lots of views

00:04:07.997 --> 00:04:10.416
and you'll just have to
leave it up like that, forever.

00:04:10.416 --> 00:04:11.542
Like an amateur!

00:04:12.126 --> 00:04:13.253
On the other hand,

00:04:13.253 --> 00:04:15.421
if the foreground image
wasn't premultiplied

00:04:15.421 --> 00:04:18.007
and instead goes
straight into the composite

00:04:18.007 --> 00:04:20.593
but you tell the software
it is premultiplied

00:04:20.593 --> 00:04:22.512
the step gets
skipped completely.

00:04:22.512 --> 00:04:25.848
The entire foreground image is
added to the matted background

00:04:25.848 --> 00:04:28.059
and the parts of it that are
supposed to be invisible

00:04:28.059 --> 00:04:30.645
get... g-g-g-ghosted!

00:04:31.187 --> 00:04:32.981
The whole point
of premultiplication

00:04:32.981 --> 00:04:34.983
is to harness
that ghosting thing

00:04:34.983 --> 00:04:37.485
so you can have opaque,
semi-transparent

00:04:37.485 --> 00:04:39.988
And emissive,
or glowing, elements

00:04:39.988 --> 00:04:42.115
all in the same image,
compositing properly

00:04:42.115 --> 00:04:44.409
using just one
alpha matte

00:04:44.659 --> 00:04:45.660
And yet...

00:04:45.660 --> 00:04:47.954
modern, mainstream

00:04:47.954 --> 00:04:50.498
user-friendly VFX apps

00:04:50.498 --> 00:04:52.667
don't even take
advantage of that!

00:04:52.792 --> 00:04:56.004
Secretly, they only want
to work with straight images.

00:04:56.004 --> 00:04:57.755
When a premultiplied
image is loaded

00:04:57.755 --> 00:04:59.215
instead of saving a step,

00:04:59.215 --> 00:05:01.968
they take an extra step
to scare it straight.

00:05:01.968 --> 00:05:04.679
Unmultiplying,
also known as dividing

00:05:04.679 --> 00:05:06.264
the color channels
by the matte

00:05:06.264 --> 00:05:09.225
the darkened pixels are
brought back to full brightness

00:05:09.225 --> 00:05:11.602
no matter how compressed
and degraded they are

00:05:11.602 --> 00:05:13.771
just so they can be dissolved
over the background

00:05:13.771 --> 00:05:14.856
the boring way.

00:05:14.856 --> 00:05:16.899
You actually have to
lie to the app

00:05:16.899 --> 00:05:18.985
to manually get
the result you want.

00:05:19.110 --> 00:05:21.863
Things seem to still
kind of work as intended

00:05:21.863 --> 00:05:24.824
in luma keyers
of live video switchers.

00:05:24.824 --> 00:05:27.827
But in most software,
the alpha interpret dialog

00:05:27.827 --> 00:05:30.371
is just a passport control
gate for checking

00:05:30.371 --> 00:05:32.832
which files can be let through
and which need to be

00:05:32.832 --> 00:05:35.918
forcibly altered before being
allowed into the boring

00:05:35.918 --> 00:05:37.462
all-straight-alpha world

00:05:37.462 --> 00:05:39.714
where the benefits
of premultiplication are lost

00:05:39.714 --> 00:05:42.050
but the matting artifacts
still show up

00:05:42.050 --> 00:05:44.135
if you don't choose
the right setting!

00:05:44.218 --> 00:05:45.219
[exhales]

00:05:45.219 --> 00:05:46.846
It didn't have to
be this way.

00:05:47.263 --> 00:05:49.015
Pictures and video files--
[stammers]

00:05:49.015 --> 00:05:52.477
contain tons of metadata
with all sorts of detailed info.

00:05:52.477 --> 00:05:55.438
Resolution, bit-depth,
framerate...

00:05:56.064 --> 00:05:57.273
resolution.

00:05:57.273 --> 00:06:00.443
And it would've been great
to have just one more standard

00:06:00.443 --> 00:06:03.196
universally-recognized
tag that simply said

00:06:03.196 --> 00:06:05.865
if a given image
is premultiplied or not

00:06:06.657 --> 00:06:08.284
But for some reason...

00:06:08.284 --> 00:06:10.161
we don't live in that universe.

00:06:10.495 --> 00:06:12.705
We live in a universe
where some formats

00:06:12.705 --> 00:06:14.582
have this kind
of metadata

00:06:14.582 --> 00:06:16.501
while others try to
avoid the problem

00:06:16.501 --> 00:06:18.586
by only letting you
save one way.

00:06:18.920 --> 00:06:21.756
But most just force you
to kind of play around

00:06:21.756 --> 00:06:23.966
with the settings
until it looks right.

00:06:24.175 --> 00:06:26.344
The only solution
to this mess is...

00:06:26.344 --> 00:06:27.220
this.

00:06:27.220 --> 00:06:28.304
Awareness.

00:06:28.304 --> 00:06:30.515
Understand how
alpha transparency works

00:06:30.515 --> 00:06:32.266
decide on a
compositing workflow

00:06:32.266 --> 00:06:33.643
and stay consistent.

00:06:33.893 --> 00:06:35.645
Or when collaborating
with people

00:06:35.645 --> 00:06:38.523
communicate clearly about
how alpha should be treated

00:06:38.523 --> 00:06:39.774
every step of the way.

00:06:40.775 --> 00:06:42.652
Or you know,
just use A.I.

00:06:42.652 --> 00:06:44.320
or whatever it is
you kids do.

00:06:44.320 --> 00:06:45.238
[outro music plays]

00:06:45.238 --> 00:06:47.365
Train a generative
adversarial network

00:06:47.365 --> 00:06:50.326
on some timelapse footage
of people photoshopping memes.

00:06:51.202 --> 00:06:52.870
Diffusion-converge...

00:06:52.870 --> 00:06:55.665
reparametrised
strategic equilibria

00:06:55.665 --> 00:06:57.750
in an architecture
matrix of these--

