yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Why Do Cameras Do This? | Rolling Shutter Explained - Smarter Every Day 172


4m read
·Nov 3, 2024

What's up? I'm Destin. This is Smarter Every Day. Get your phone out. You see that little camera assembly there? Let's take it out of the phone. Yep. That's what it looks like.

So here's what we're going to do. The first thing we're going to do is pop the lens off, and there we go. That is called a CMOS sensor. That is the camera on your phone. Complimentary Metal-Oxide Semiconductor. So, when you take a photo or a video with your phone, you would think that it exposed that entire chip at one time, like snapping a photo. That's not how it works. It actually scans down the chip, and that's how images are created.

This is called "rolling shutter," and it's the exact reason your cell phone makes weird shapes out of fast-moving objects. This is a flatbed scanner, and I have a circular patch right here. If I were to take this patch and set it face down on the scanner, and I were to start the scanner and move the patch in the same direction as that moving row of pixels, check out what happens. You're smart-- is this going to look like a circle? No! It's not a circle. It's stretched out. And that makes sense, right? You're stretching that image because you're moving it along with the scanner.

Now, conversely, what's going to happen if instead of moving it with the scanning row pixels, we move opposite? It's not going to stretch it out, is it? What's it going to do? It's going to compress that circle down. A rolling shutter on your cell phone camera is very much like this, except it goes from the top of the image all the way down to the bottom. That means that what you're seeing is actually a lie. It's like a stack up of several different moments.

Okay, now that we understand how this works, it's time to visualize it in the most turbo-awesome way possible. Over the past three years, anytime I had a phone and a high-speed camera at the same place at the same time, I would be on the lookout for rolling shutter events. And I would video it with the phone and then I would video it with a high-speed camera, so that I could go back and manually simulate rolling shutter so that I could understand exactly how the artifacts were created.

This is so stinking cool! Your brain's going to get it, instantly! We'll start with iPhone video and then we'll go to the simulation. This is awesome. This is the first moment I realized I could fake rolling shutter. I was in a turbo-prop over the Australian outback, and I realized that the patterns would change as I rotated my phone. I happened to have a high-speed camera with me, so I got it out and I started collecting data.

This is what your camera does dozens of times per second. I noticed that the patterns looked very different depending on which way the propeller was rotating relative to the rolling shutter. This is really beautiful, but I was kind of bummed that I didn't get to see the effect head-on to the propeller. A couple of years later, though, when I was taking high altitude flight lessons near Pike's Peak in Colorado, I finally got my chance to video a propeller head-on on the Tarmac.

The fidget spinner community has known for a while now that when it's really bright outside, a cell phone camera videoing a fidget spinner will turn it into what they call "the thing." It's just rolling shutter with a little bit of aliasing thrown in, but it looks like some kind of Ninja Alien throwing star. Anyway, when you slow it down with a high-speed camera, you can really reveal the map that makes this look so weird.

My buddy Ben plays both the Mandolin and the guitar, and it took us a really long time to get the rolling shutter effect to show itself. But when we did, it was awesome! Guitar strings are especially difficult because they vibrate so quickly that a normal high-speed camera isn't fast enough. We had to record them at 20,000 or 28,000 frames per second to be able to run this simulation properly.

The last trick is something I had never seen before, but somebody told me about it. If you video a coin spinning, you can see a swirl pattern on the edge of the coin. Yep, that's also rolling shutter. Obviously this took a really long time to make, and Henry from MinutePhysics made it possible. He's the guy that figured out exactly how to make after effects simulate rolling shutter.

On the behind the scenes video, on the second channel, Henry and I talked about what we were trying to accomplish. Go check it out. And we'll, uh, we'll throw some love Henry's way. Also, I want to say thanks to the sponsor, which is Audible. Before we talk about the book that I'm listening to on Audible right now, let's go goof around with rolling shutter and some chickens.

Okay, the book I'm currently listening to on Audible is called "The Devil in the White City." It's a really good book about the 1893 Chicago World's Fair. A fair that I had no idea changed America, but it did. Also, America's first serial killer, so there's that. It's pretty crazy. I had no idea. It's a great story. You should check it out. "Devil in the White City," by Erik Larson. You will enjoy it.

You can get that by going to audible.com/smarter. That is two things: number one, you get a free audiobook; number two, I get secret internet points because Audible knows you came from SmarterEveryDay. And they're more likely to support Smarter Every Day in the future, and that's a big deal for me and the family. I appreciate that.

Anyway, if you see anybody that talks about rolling shutter, make sure they don't get confused with aliasing. That's the wagon wheel effect. A lot of people get those two confused. I hope this video earned your subscription. If it didn't, no big deal. I'm Destin, you're getting Smarter Every Day. Have a good one! Bye. Last chicken. Brave chicken.

More Articles

View All
WARNING: YouTubers are being paid to promote stocks.
Well, I think we need to have a little bit of a chat. What we’re talking about today is: Is it ethical for YouTubers to accept payments to review or promote stocks? That’s the question at hand. Now, this definitely wouldn’t fly where I’m from in Australi…
Water potential example | Cell structure and function | AP Biology | Khan Academy
We’re told that six identical potato core cubes were isolated from a potato. The initial weight of each cube was recorded. Each cube was then placed in one of six open beakers, each containing a different sucrose solution. The cubes remained in the beaker…
Philosophies on Failure & Learning
Life looks like this to me: um, you know, you start off and you head in a direction, and you evolve. And then you have your setbacks and the pains and so on. Ideally, you learn and you readapt, and you go on, and you have another one of those. It’s that p…
I tried Emma Chamberlain's workout routine for a week
Hi! I’m Rudy. Welcome to, or welcome back to my channel! I tried Emma Chamberlain’s workout routine for a week, and it was insane. Just at the beginning, I just can’t do that, and even now I really cannot do exactly what she does. Actually, I’m gonna sho…
Thermal energy, temperature, and heat | Khan Academy
I have two vessels of water. I start heating them with pretty much the same amount of heat; they are similar. What do we find? We find that the one which has less water starts boiling first. That’s not very surprising. This means that the one which has le…
Watches You Buy As You Get Richer
As you get richer, things change, right? Including how you spend your time, but also how you look at the time. Ever wonder what your watch says about you and your bank account? Well, from the first costume you buy with your allowance to the Rolex you flau…