All articles

How AI Video Upscaling Works (and Its Limits)

Team Freeupscaler9 min read
Five small neighboring frames of a sailboat at sunset, joined by thin lines to one large, sharp frame of the same scene.

Every frame of the clip goes through a neural network that was trained to turn small, damaged pictures back into large, sharp ones, and the better video models also pull detail from the frames around it. The extra pixels are a prediction of what a sharp version would most likely look like, learned from millions of examples. They are not recovered from the file, which is why the same upscaler can rescue one clip and make another look worse.

Each part below is tied to the paper it comes from, so you can check it.

The model learns from pictures someone broke on purpose

A super-resolution network is trained on pairs: a sharp high-resolution image and a small copy of it. The network sees the small copy, guesses the large one, gets compared with the real thing, and adjusts. After enough pairs it has learned what edges, hair, brick and skin usually look like at full size.

The quality of those small copies decides how well the model copes with real footage. Early research made them with a clean bicubic downscale, and models trained that way fall apart on real video, because real video is never a clean downscale. It has sensor noise, a soft lens, compression blocks, and often all three after a few rounds of re-sharing.

Real-ESRGAN (Wang et al., 2021) is the best-known fix. Its training pipeline damages each image twice in a row with random blur, resizing, noise and JPEG compression, and adds the ringing halos that sharpening filters leave behind. A model trained on that mess has seen most of what a phone clip or a downloaded video throws at it. Many later real-world upscalers, for photos and for video, train on variations of the same recipe; RealBasicVSR, further down, is one of them.

What happens to a single frame

Take a 480p frame, 854×480 pixels, about 410,000 of them. At 4x the output is 3416×1920, about 6.6 million. Fifteen of every sixteen output pixels did not exist in the input.

A bicubic resize fills those pixels by averaging the four-by-four grid of neighbors around each one (Keys, 1981). Averages can't create an edge sharper than the ones they started with, so the result is big and soft.

A super-resolution network does something different. It looks at a patch, recognizes what kind of patch it is (a strand of hair against sky, the corner of a window, a stretch of grass), and writes the full-size version it learned for that kind of patch. When the recognition is right, the result looks sharp and real. When the patch is too small or too damaged to recognize, the network still writes something, and that something is a guess. What AI image upscaling is covers this single-image step in more depth, because it's the same idea.

Borrowing detail from neighboring frames

A photo upscaler has one picture to work from. A video upscaler has the frames on either side, and when the camera or subject moves slightly, those frames recorded the same surface from a slightly different position. Combined carefully, they hold real information that no single frame has. This is the one way video super-resolution can recover detail instead of only predicting it.

The research splits into three approaches, shown below.

Three diagrams: a single frame feeding its own output; five neighboring frames feeding one output; a chain of frames passing information forward and backward, each feeding its own output.
How much of the clip each approach uses to rebuild one output frame
  • One frame at a time: an image model runs on each frame separately. It is the simplest and fastest, and it uses no information from motion at all.
  • Sliding window: the model reads a few frames around the current one, lines them up, and merges them. EDVR (2019) did this with learned alignment and won all four tracks of the NTIRE 2019 video restoration challenge.
  • Recurrent: the model carries what it learned from frame to frame, through the whole clip, forward and then backward. BasicVSR (2021) showed that this simple design, with optical flow to line frames up, beat heavier sliding-window models.

Optical flow is an estimate of where each pixel moved between two frames. The model uses it to shift the previous frame's information into line with the current one before merging. The BasicVSR paper measured how much each part matters on the REDS4 benchmark: dropping alignment cost 1.19 dB, and carrying information in only one direction cost about 0.5 dB, because the first frames of a clip then get no help from anything after them.

The same paper's timing table, measured at a 320×180 input, shows why the recurrent design took over:

ModelParametersRuntimeREDS4 PSNR
EDVR20.6 M378 ms31.09 dB
BasicVSR6.3 M63 ms31.42 dB
IconVSR8.7 M70 ms31.67 dB

A third of the parameters, a sixth of the time, and a better score. Its successor BasicVSR++ added another 0.82 dB with a similar parameter count.

Alignment has a weak spot the paper names directly: occluded regions and image borders. When a hand passes in front of a face, the face pixels behind it have no match in the next frame, the flow is wrong there, and the model either merges the wrong pixels or falls back to guessing. You see it as smearing around fast-moving edges and at the frame's edges during a pan.

Why upscaled video flickers

A model that guesses each frame on its own makes a slightly different guess every time. On a still photo nobody would notice. Played at 30 frames a second, the differences become motion: brick texture that crawls, grass that boils, a face whose pores move around under the skin.

TecoGAN (Chu et al., 2018) was built to fix exactly this, with a discriminator that judges short runs of frames instead of single frames, plus a "ping-pong" loss that plays a sequence forward and backward and penalizes any difference, so errors can't build up over a long clip.

Two practical points follow. Judge an upscaled clip in motion, at full size, on textured areas: a paused frame can look perfect and still shimmer when played. And the stronger a model's appetite for invented texture, the more there is to flicker, which is why a more conservative setting often looks better in motion than a sharper one does on a paused frame. The guide to AI upscaling artifacts shows what each kind of failure looks like up close.

Compression damage gets sharpened along with the picture

Streaming and phone video is compressed hard. At low bitrates the encoder throws away fine detail and leaves visible square blocks, smeared color and ringing around edges. An upscaler trained to find structure finds that structure too, and sharpens it.

A street violinist in front of a brick wall shown twice: blocky and color-smeared on the left, clean and sharp on the right.
A street musician frame before and after: heavily compressed on the left, clean on the right

Recurrent models make it worse in a specific way. The authors of BasicVSR found, in their follow-up RealBasicVSR (2021), that carrying information across a long clip also carries and amplifies the artifacts in it. Their fix was a cleaning stage that removes the damage from each frame before anything is passed along. NVIDIA describes the same order for its RTX Video Super Resolution: remove the compression artifacts first, then upscale, or the upscaler sharpens the artifacts.

The practical consequence is about your source. A 720p file at a healthy bitrate gives an upscaler far more to work with than a 1080p file that was squeezed to a few megabits per second. Video bitrate explained shows how to tell which one you have.

Diffusion upscalers invent more, on purpose

The newest video upscalers use diffusion models, the family behind most AI image generators. Upscale-A-Video (2023) is a well-documented example: it adds temporal layers to an image diffusion model, propagates its hidden state along optical flow to keep long clips stable, and accepts a text prompt to steer texture.

It also exposes a noise level that trades fidelity for generated detail. Turned down, the result stays close to the source. Turned up, the model paints richer detail that was never there: a sharper face that is subtly someone else's, legible text that says the wrong thing. For family footage or anything used as evidence, the conservative end is the right one. For AI-generated clips, where there is no "true" detail to betray, more invention is usually fine; improving AI-generated video covers that case.

The cost is frames times pixels

Every technique above runs once per frame, and video has a lot of frames. A three-minute clip at 30 frames per second is 5,400 frames. Upscaled 4x from 480p, that is 5,400 frames of 6.6 million pixels, about 35 billion output pixels, before any encoding.

Per-frame speed sets the wait:

Time per frame5,400-frame clip
20 msunder 2 minutes
100 ms9 minutes
500 ms45 minutes
2 s3 hours

This is why browser and desktop upscalers in general use small, fast networks, and why heavier models live in the cloud behind upload queues and credit limits. It is also why the scale you pick matters so much: 2x writes a quarter of the pixels that 4x does. Video resolutions explained lists the frame sizes, so you can choose the smallest scale that reaches the size you watch at.

What no upscaler fixes

The mechanism above also predicts the limits.

Motion blur is detail spread along a path inside a single frame. The neighboring frames are blurred too, so there is nothing sharp to borrow, and the network was trained to keep blur as blur or to invent edges inside it. Missed focus is the same problem without the direction. Both are covered, with what partly helps, in how to fix a blurry or low-quality video.

Small text and small faces are the next limit. A face 20 pixels wide in a 480p wedding video carries too little information for any model to restore the actual person; it will produce a plausible face, which is not the same thing.

Interlaced footage needs deinterlacing before upscaling, or the comb lines get sharpened into stripes. Tape captures from VHS, Hi8 or MiniDV usually are interlaced, and the guide to old home videos covers that step. A DVD has its own checks before upscaling for frame shape and telecine.

And upscaling never changes the frame rate. Choppy footage stays choppy at higher resolution; new in-between frames come from a different technique, frame interpolation.

Testing it on your own footage

The only reliable way to know what a clip will gain is to run a short stretch of it and watch the result in motion. You can run a clip through a video upscaler in your browser without installing anything: it uses your device's GPU through WebGPU, so the file is processed on your own machine and never uploaded. It takes MP4, MOV, M4V and WebM files up to 150 MB, processes up to 5 minutes at a time, and scales 2x, 3x or 4x up to 4K UHD (3840×2160). Standard mode is fast; Enhance mode is slower with sharper detail and is offered when your device measures fast enough for it. AI video upscaling needs a browser with WebGPU; without it the tool falls back to a basic resize and labels it as such.

Start with a 10-second section that has the textures you care about, at the smallest scale that reaches your target size. If it holds up in motion there, run the rest. If the source is heavily compressed, blurred or interlaced, fix that first, because the upscaler will faithfully enlarge whatever it is given.

Ready to try it yourself? It's free, and your files never leave your device.

Try the free AI video upscaler