How to Upscale and Enhance Video Quality with FFmpeg (2026 Guide)
Learn how to upscale resolution, reduce noise, sharpen, and enhance video quality using FFmpeg filters. Plus, discover why AI upscaling with WaveSpeed Desktop delivers far better results.

Got a blurry 480p video you want to make HD? Old footage that looks noisy and soft? FFmpeg provides filters for upscaling, denoising, sharpening, and color correction—but there’s a hard ceiling on what traditional algorithms can achieve.
This guide shows you what’s possible with FFmpeg, explains the limitations, and gives you an AI-powered alternative to test on the same clip. If the source is mainly too small, start with scaling. If it’s visibly noisy, test denoising before sharpening.
Prerequisites: Install FFmpeg

macOS:
brew install ffmpeg
Ubuntu/Debian**:**
sudo apt update && sudo apt install ffmpeg
Windows: Download from ffmpeg.org, extract, and add bin to PATH.
The commands below were checked with FFmpeg 9.0 on macOS on November 4, 2026. Filter availability depends on your build: if you see “No such filter,” check ffmpeg -filters. The examples using -c:a copy keep compatible source audio without re-encoding; if audio copying fails for your output, encode it with -c:a aac instead.
Upscale Video Resolution
Basic Upscale to 1080p
For a roughly 16:9 source:
ffmpeg -i input_480p.mp4 -vf "scale=1920:1080:flags=lanczos" -c:v libx264 -crf 18 -c:a copy output_1080p.mp4
This produces 1920×1080 pixels. It does not recover detail missing from the 480p source. For another aspect ratio, use the next “Keep Aspect Ratio” command instead of forcing both dimensions.
Upscale to 4K
ffmpeg -i input_1080p.mp4 -vf "scale=3840:2160" -c:v libx264 -crf 18 -c:a copy output_4k.mp4
This fixed size is for 16:9 footage; check the source aspect ratio before using it.
Keep Aspect Ratio
Scale to 1080p height, calculate an even width, and use square pixels:
ffmpeg -i input.mp4 -vf "scale=-2:1080:reset_sar=1" -c:v libx264 -crf 18 -c:a copy output.mp4
The result may be a little wider or narrower than 1920 pixels. That’s expected when the source isn’t exactly 16:9.
Scaling Algorithms
FFmpeg offers several scaling algorithms. They produce different edges and textures, so compare them on your footage:
# Lanczos
ffmpeg -i input.mp4 -vf "scale=1920:1080:flags=lanczos" -c:v libx264 -crf 18 lanczos.mp4
# Bicubic
ffmpeg -i input.mp4 -vf "scale=1920:1080:flags=bicubic" -c:v libx264 -crf 18 bicubic.mp4
# Spline
ffmpeg -i input.mp4 -vf "scale=1920:1080:flags=spline" -c:v libx264 -crf 18 spline.mp4
# Bilinear
ffmpeg -i input.mp4 -vf "scale=1920:1080:flags=bilinear" -c:v libx264 -crf 18 bilinear.mp4
| Algorithm | What to check | Useful starting point |
|---|---|---|
| lanczos | Defined edges; possible ringing | Detailed footage |
| spline | Edge appearance against Lanczos | An alternative upscale |
| bicubic | Softer, balanced appearance | General use |
| bilinear | Softer output; often quick to process | Previews |
There isn’t a universal “best” setting. Look at text, faces, fine patterns, and moving edges at the final viewing size.
Reduce Video Noise

hqdn3d (Fast Denoiser)
ffmpeg -i input.mp4 -vf "hqdn3d=4:4:3:3" -c:v libx264 -crf 18 output.mp4
Parameters: luma_spatial:chroma_spatial:luma_temporal:chroma_temporal
- Higher values usually remove more noise but may soften detail.
- Start with
4:4:3:3and compare the result with the source.
nlmeans (Alternative Denoiser, Often Slower)
ffmpeg -i input.mp4 -vf "nlmeans=s=3:p=7:r=15" -c:v libx264 -crf 18 output.mp4
s=3— denoising strength (supported range: 1–30)p=7— patch sizer=15— research window size
It isn’t automatically better than hqdn3d. Test both on a short section with the noise and detail you care about.
Sharpen Video
unsharp Filter
ffmpeg -i input.mp4 -vf "unsharp=5:5:1.0:5:5:0.5" -c:v libx264 -crf 18 output.mp4
Parameters: luma_x:luma_y:luma_amount:chroma_x:chroma_y:chroma_amount
luma_amountcontrols sharpening; negative values blur.- Start around
1.0, then inspect edges. A stronger value such as1.5can make halos or compression noise more visible.
cas Filter (Contrast Adaptive Sharpening)
ffmpeg -i input.mp4 -vf "cas=0.5" -c:v libx264 -crf 18 output.mp4
- Strength ranges from 0 to 1.
0.5is a starting point, not a quality target for every clip.
Color and Brightness Correction
Adjust Brightness, Contrast, Saturation
ffmpeg -i input.mp4 -vf "eq=brightness=0.06:contrast=1.2:saturation=1.3" -c:v libx264 -crf 18 output.mp4
brightness— -1.0 to 1.0 (default 0)contrast— -1000 to 1000 (default 1.0)saturation— 0 to 3.0 (default 1.0)
These values are examples. Check highlights, shadows, and skin tones before applying them to a full video.
Auto-Level Colors
ffmpeg -i input.mp4 -vf "normalize=smoothing=50:independence=0" -c:v libx264 -crf 18 output.mp4
normalize stretches the image’s tonal range. The settings above link the color channels and smooth changes across frames, but you should still check for flicker or unwanted exposure shifts.
Stabilize Shaky Video
FFmpeg’s vidstab filter requires two passes. Check that your build lists both vidstabdetect and vidstabtransform in ffmpeg -filters.
Pass 1: Analyze motion
ffmpeg -i input.mp4 -vf "vidstabdetect=result=transforms.trf" -f null -
This creates a transforms.trf file in the current directory.
Pass 2: Apply stabilization
ffmpeg -i input.mp4 -vf "vidstabtransform=smoothing=10:input=transforms.trf" -c:v libx264 -crf 18 -c:a copy output.mp4
smoothing=10— a starting value. Inspect the frame edges and any zoom or crop introduced by stabilization.
Combine Multiple Filters
Chain filters for a full enhancement pass. Denoise the source before enlarging its noise, then sharpen carefully:
ffmpeg -i input.mp4 -vf "hqdn3d=4:4:3:3,scale=1920:1080:flags=lanczos,unsharp=5:5:0.8:5:5:0.4,eq=contrast=1.1:saturation=1.2" -c:v libx264 -crf 18 -c:a copy output.mp4
This pipeline:
- Applies denoising
- Upscales to 1080p with Lanczos
- Sharpens
- Adjusts contrast and saturation
Want a repeatable comparison? Make this two-second, 854×480 test clip. It’s synthetic footage with added blur and noise, so use it to check commands and timing—not to judge face restoration:
ffmpeg -f lavfi -i "testsrc2=s=854x480:r=24:d=2" -vf "gblur=sigma=0.8,noise=alls=8:allf=t+u" -c:v libx264 -crf 23 -pix_fmt yuv420p test_480p.mp4
Run the same input through scaling alone, the combined denoise/sharpen pass, and a deliberately stronger sharpening pass. -benchmark reports rtime near the end of each command’s output:
ffmpeg -benchmark -i test_480p.mp4 -vf "scale=1920:1080:flags=lanczos" -c:v libx264 -crf 18 -an test_scale.mp4
ffmpeg -benchmark -i test_480p.mp4 -vf "hqdn3d=4:4:3:3,scale=1920:1080:flags=lanczos,unsharp=5:5:0.8:5:5:0.4" -c:v libx264 -crf 18 -an test_chain.mp4
ffmpeg -benchmark -i test_480p.mp4 -vf "scale=1920:1080:flags=lanczos,unsharp=5:5:1.5:5:5:0.5" -c:v libx264 -crf 18 -an test_oversharp.mp4
On my FFmpeg 9.0 test run on November 4, 2026, rtime was 0.75s, 0.77s, and 0.85s, respectively. Those are single-run times for this short clip on one machine, not estimates for your footage.
For a local detail check, extract the same region at one second from each result:
ffmpeg -ss 1 -i test_scale.mp4 -vf "crop=540:400:1120:560" -frames:v 1 scale_detail.png
ffmpeg -ss 1 -i test_chain.mp4 -vf "crop=540:400:1120:560" -frames:v 1 chain_detail.png
ffmpeg -ss 1 -i test_oversharp.mp4 -vf "crop=540:400:1120:560" -frames:v 1 oversharp_detail.png
Compare the checkerboard edges and colored areas at 100%. On your own clip, choose a crop containing a face, text, or fine texture. If sharpening creates bright outlines or emphasizes noise, back it down.
The Hard Truth About FFmpeg Upscaling
Here’s what these filters cannot reliably do:
- Recover the exact lost detail — a 480p file can be enlarged to 4K pixels, but scaling does not reveal what the camera never recorded.
- Reconstruct an accurate face — sharpening can change edge contrast, but it cannot verify missing facial features.
- Fully reverse compression loss — FFmpeg has filters such as
deblockthat can reduce visible blocking, but they cannot restore the original pre-compression frames. - Guarantee real textures — a stronger-looking edge or smoother patch is not proof that hair, fabric, or skin detail was recovered.
Traditional scaling algorithms calculate new pixel values from the existing image. Denoising and sharpening may make a clip look cleaner or crisper, but they can also remove fine detail or exaggerate artifacts. Keep the original and compare at the same output size.
The AI Alternative: WaveSpeed Desktop Video Enhancer
This is where a model-based test can be useful. Modern AI video quality enhancement can infer plausible detail rather than only interpolate pixels. That can improve some footage, but inferred texture can also change faces, text, or frame-to-frame consistency.
WaveSpeed Desktop includes a Video Enhancer for frame-by-frame video upscaling. For a fair comparison with the FFmpeg result:
- Use the same short source clip and target resolution.
- Inspect the same face, text, edges, and motion frames.
- Watch the whole result for flicker or changing textures.
- Record processing time on your machine.
If the AI result holds up on the details that matter, use it for the full clip. A larger file or a sharper still frame alone isn’t enough to decide.

Download WaveSpeed Desktop for free:https://github.com/WaveSpeedAI/wavespeed-desktop/releases
FAQ
Can FFmpeg truly upscale video to 4K?
Yes, it can output a 3840×2160 file. That describes its pixel dimensions, not recovered source detail. If you want to test model-based processing on the same source, try the AI video upscaler and inspect the result at matching frames.
What’s the best FFmpeg scaling algorithm?
There isn’t one for every source. Lanczos, spline, bicubic, and bilinear produce different edge behavior. Test a short section and check for softness, ringing, and artifacts at the intended output size.
Does denoising always help?
Not always. Denoising can remove fine detail along with noise. If your video is clean, skip it; if it’s noisy, compare a short treated section with the original.
How long does FFmpeg enhancement take?
It depends on the input, filters, encoder, resolution, and hardware. Use -benchmark on a representative short clip. The two-second synthetic example above is a reproducible timing check, not a forecast for a 10-minute video or an AI service.
Can I enhance old VHS or DVD footage?
FFmpeg can scale, denoise, stabilize, and deinterlace footage where needed. Results depend on the source. Test a short section first, especially one with faces, motion, and dark areas; compare any AI pass against the same section before processing the whole recording.
Previous posts:
/filters:quality(82)/media/images/0398e05e-3518-4fa9-9639-00018feb645e.webp)
/filters:quality(82)/media/images/1775454354154780718_ODFPZcmw.webp)
/filters:quality(82)/media/images/1775454354187499843_FsWsCKow.webp)
/filters:quality(82)/media/images/1775454352321281840_iOvFOX6f.webp)
/filters:quality(82)/media/images/1774495742042616105_ZIR0ajsB.webp)
/filters:quality(82)/media/images/1774495742052567148_PaowFOY7.webp)