
Fitting a video clip to a layer in Adobe After Effects looks like a solved problem. You select the layer, open Layer > Transform > Fit to Comp, and move on with your day. That works for one clip in one composition. It falls apart the moment a real project shows up: vertically shot phone footage dropped into a 16:9 timeline, a 4K drone plate that has to live inside a small picture-in-picture box, a talking-head interview that needs three aspect ratios by Friday, and a logo animation rendered at a resolution nobody can remember. Suddenly "just scale it" produces soft edges, stretched faces, drifting masks, and a render queue that never ends.
This guide covers both halves of that problem. First, the manual technique you still need to understand: what Fit to Comp actually changes, why non-uniform scaling is a trap, and how to build a reusable fit rig with expressions. Second, the AI layer that handles the parts humans are genuinely bad at: upscaling, subject-aware cropping, motion matching, and generative fill. Put together, they turn a repetitive chore into a predictable pipeline you can repeat on every project.
When someone says they need to fit video to a layer, they could mean one of three completely different operations. Each has its own toolset, its own failure modes, and its own fix. Conflating them is the single most common reason a solution that worked on shot one breaks on shot two.
This is the underlying footage problem. A clip arrives at 3840x2160 but the composition is 1920x1080. Or it arrives at 1080x1920 because someone shot vertically. Or it was rendered with non-square pixels from an old project file. After Effects reads this information through Interpret Footage, which controls pixel aspect ratio, frame rate, and alpha channel interpretation.
Changing Interpret Footage does not scale the layer. It changes how After Effects understands the source. If you fix a pixel aspect ratio here, every composition using that clip updates automatically. That is powerful for consistency and dangerous if you make the change halfway through a project that is already approved.
The second meaning is what most tutorials are about. You have a layer whose dimensions do not match the composition, and you want it to fill the frame. After Effects gives you three commands:
None of these are reversible in an obvious way, and none of them remember what the original scale was. If you apply Fit to Comp to a layer that already has an animated scale, you have just created a problem you will spend twenty minutes untangling.
The third meaning is the one that actually matters to viewers. You do not care whether the layer fills the comp. You care whether the person's face, the product, or the action is inside the frame at a pleasing size. A mathematically perfect Fit to Comp can still put a subject's chin on the bottom edge of the screen.
This is where AI-assisted workflows earn their keep, because deciding what matters in a frame is a perception problem, not a geometry problem.
Before adding any AI step, get fluent with what After Effects does natively. Every AI tool you bolt on later assumes you understand this baseline.
Use plain Fit to Comp when the source and comp share an aspect ratio. In that case it behaves exactly as you expect: edge to edge, no distortion, no crop.
Use Fit to Comp Width or Height when the ratios differ and you know which axis must be flush. A vertical clip inside a horizontal comp should usually be fit to height, then positioned and masked manually. A wide establishing shot inside a square social comp usually wants fit to width.
The important detail is that all three commands bake a scale value into the layer. They do not create a dynamic relationship. Resize the composition later and the layer will no longer fit.
Stretching is the most visible mistake in video editing and the most embarrassing to ship. It happens when someone types a value into the Scale field's X and Y separately. It also happens through parenting, through a chain of nested comps with different dimensions, and through a stray expression that references the wrong source.
A quick rule: if X and Y scale values are not identical, you either intended a stylized distortion or you made a mistake. There is no third option. Add the Scale property to your Essential Graphics panel or your layer notes so it is visible at a glance.
A 24 fps clip inside a 30 fps composition needs a decision. You can conform it, which changes playback speed, or you can let After Effects duplicate frames, which produces judder. Neither is wrong, but the choice should be deliberate. Time remapping and frame blending are your tools here, and both interact badly with heavy post-processing. Decide before you start compositing, not after.
Typing scale values by hand does not scale as a workflow. A better approach is to build a small rig once and reuse it. The rig has two parts: an expression that keeps the layer proportional, and a null object that handles positioning and animation.
Apply this to a layer's Scale property when you want the equivalent of Fit to Comp that updates automatically:
// Cover: fill the comp, crop whichever axis overflows
var compW = thisComp.width;
var compH = thisComp.height;
var srcW = thisLayer.source.width;
var srcH = thisLayer.source.height;
var s = Math.max(compW / srcW, compH / srcH) * 100;
[s, s];
Use this when the entire frame must stay visible, with letterbox or pillarbox gaps:
// Contain: fit everything inside, preserve aspect ratio
var compW = thisComp.width;
var compH = thisComp.height;
var srcW = thisLayer.source.width;
var srcH = thisLayer.source.height;
var s = Math.min(compW / srcW, compH / srcH) * 100;
[s, s];
Both expressions return identical X and Y values, so distortion becomes structurally impossible. Change the composition size and the layer refits itself. Swap the source footage and it refits again.
Once the scale expression handles sizing, put the layer's Position and Rotation on a parented null. Now you can animate framing without fighting the fit, and you can reuse the null across multiple clips. Combine this with Essential Graphics and Master Properties, and you have a template that a whole team can use without touching expressions.
AI does not replace the geometry above. It attacks the three problems geometry cannot solve: resolution, subject placement, and motion.
A 1080p clip placed in a 4K composition and fit to width is effectively a 200% upscale. Details smear, skin turns waxy, and text becomes unreadable. Traditional sharpening can hide some of it, but it also amplifies compression artifacts.
Modern AI upscalers analyze the content and reconstruct plausible detail instead of interpolating between existing pixels. For archival footage, drone plates, and screen recordings, the improvement is dramatic. The practical rule is to upscale the source clip once, before it enters the composition, and then let the fit expression handle placement. Upscaling a layer that is already scaled down and re-scaled up wastes time and softens results.
This is the biggest time-saver in the entire pipeline. Instead of manually keyframing a 16:9 to 9:16 conversion shot by shot, subject-aware reframing tracks faces, bodies, and motion, then keeps the subject inside a moving crop window.
The output is not perfect. Fast motion, multiple faces, and scenes with no clear subject still need manual correction. But the AI pass usually gets you 70 to 90 percent of the way, and fixing a slightly wrong keyframe is far faster than authoring every keyframe from scratch.
A practical tip: run auto reframing on a lower-resolution proxy first, review the results at speed, then apply the approved keyframes to the full-resolution source. Reviewing is the bottleneck, not rendering.
When you place footage into a small frame inside another shot, the two pieces of motion have to agree. If the outer camera drifts and the inner clip is static, the composite looks glued on.
AI-assisted tracking handles this in two ways. First, it tracks points more reliably through motion blur, occlusion, and low contrast than manual point tracking. Second, some tools can estimate camera motion from the footage itself and apply matching movement to a nested layer, which is essentially automatic matchmoving without markers.
Fitting a vertical clip into a horizontal frame leaves side gaps. The classic solutions are blurred background duplicates, solid colors, or designed graphic panels. All three look like what they are.
Generative outpainting can extend the scene beyond its original edges, producing a background that belongs to the shot. Results vary wildly by content. Simple environments — sky, walls, grass, water — extend convincingly. Complex crowds, architecture with straight lines, and text almost always reveal seams. Use it as one option among several rather than a default.
Here is the whole workflow end to end, with the decision points called out.
Step 9 is the one people skip and then regret.
The market for AI video utilities is crowded, and feature lists all look similar. Judge tools on these criteria instead.
| Criterion | Why it matters | Watch out for |
|---|---|---|
| Deterministic output | Re-running should give the same result | Tools that randomize on every render |
| Round-trip integration | Must export to your NLE cleanly | Proprietary formats that need conversion |
| Resolution handling | Should not cap your delivery format | Tools that only output 1080p |
| Keyframe export | You need to edit the AI's decisions | Opaque "baked in" auto-reframing |
| Batch processing | Twenty clips is the normal case | One-clip-at-a-time interfaces |
| Licensing clarity | Commercial work needs commercial rights | Ambiguous terms for client deliverables |
Two more criteria sit outside the table. First, does the tool respect frame rate and timecode? A reframing tool that quietly drops to 25 fps will desynchronize your audio. Second, can you see the tracking data? If a tool will not show you its motion path, you cannot fix it when it fails, and it will fail eventually.
Use Layer > Transform > Fit to Comp Width or Height, then adjust position and mask as needed. If you want the fit to survive composition changes, apply a scale expression that references thisComp.width, thisComp.height, and the source dimensions instead of a baked value.
Almost always because X and Y scale values differ, either directly on the layer or inherited through parenting or nested comps. Check the Scale property of every layer in the chain, and confirm the source's pixel aspect ratio in Interpret Footage.
Subject-aware tools do a good job on single-subject shots with steady motion. Two-person interviews, fast action, and wide shots with no clear subject still need manual keyframes. Treat the AI pass as a first draft that saves you most of the work, not all of it.
Before. Upscale the source at its native framing, then fit it into the composition. Upscaling after a crop gives the model less context and produces softer results.
No, but you will spend a lot of time on tasks that are now largely automated, particularly multi-aspect-ratio reframing and low-resolution source cleanup. If you deliver one format and shoot everything natively, native tools are enough.
Build one master timeline, then create alternate comps that reference the same pre-comps and use fit expressions for placement. When the master edit changes, every format updates. Avoid duplicating and editing each format independently.
Audio does not conform with video frame rate changes. If you retime a clip, either retime the audio to match or accept a drift and correct it manually. Always check sync at the start, middle, and end of a long clip.
Fitting video to a layer is two problems wearing one name. The geometric problem — matching source to layer to comp — is solved with Fit to Comp commands, correct Interpret Footage settings, and a pair of scale expressions that make distortion structurally impossible. The perceptual problem — deciding what belongs in the frame — is where AI tools deliver real value through upscaling, subject-aware reframing, motion matching, and background extension.
The workflow that works is boring and repeatable: normalize the source, upscale if needed, fit with expressions, reframe with AI assistance and manual correction, fill gaps with a treatment that suits the content, match the motion, grade as a single image, then pre-render. Do that once as a template, and the next twenty clips take a fraction of the time. Skip the template, and you will be re-solving the same geometry problem on every project while the deadline gets closer.

Alexander
Vidu Q4 alternatives compared: Kling 4.0, Seedance 2.5, Wan 3.0, and Runway Gen-4 — 4K support, input modes, durations, audio, and what each costs in credits on Domer.
The top 4K AI image generators on Domer compared: Flux 3 Klein, Nano Banana 2.1, GPT Image 2.5, GPT Image 2, and Nano Banana Pro — 4K credit costs, reference limits, and speed.
Nano Banana 2.1 vs GPT Image 2.5 Flare compared: credit costs per resolution, aspect ratios, reference images, text rendering, and which tasks fit each model.