Two-pass encoding is mainly a bitrate-targeting technique. The first pass studies the source; the second encodes with that information. One-pass encoding makes decisions as it goes. Neither method guarantees a better picture without considering the target, codec and settings.
FAST-VID does not expose one-pass, two-pass or bitrate controls. It downloads an available source format rather than re-encoding it. This guide explains the workflow for people choosing encoder settings elsewhere.
How one-pass encoding works
A one-pass encoder reads the source and makes allocation decisions as it moves forward. It can use buffers, lookahead and past frames, but it does not get a complete preliminary study of the whole file. This is fast and simple, and it is often used for live or quick local encodes.
A one-pass quality-target encode such as CRF can work well because it does not need a predetermined bitrate. A one-pass bitrate-target encode is less predictable: the encoder may discover too late that a complex section needs more data.
A one-pass encoder can be fast enough for live production or a quick export, but it has less information about what comes next.
A quality-target one-pass encode avoids a fixed size promise and can adapt as it goes.
A bitrate-target one-pass encode may overspend early and underspend late, or vice versa.
A one-pass rate-target encode may still be acceptable when the content has consistent complexity or the target is loose.
A quality-target pass can be a simpler choice for a local file because it does not need a preliminary target budget.
How two-pass encoding works
The first pass analyzes complexity but writes no final output. The encoder gathers statistics about where bits are likely to be needed. The second pass uses those statistics to distribute a chosen bitrate or size budget across the file.
Two-pass is useful when you have a hard target: a broadcast slot, an upload limit or a file-size budget. It does not magically improve the codec or make a low-quality source pristine. It improves the encoder's ability to plan within a rate constraint.
The first pass can be thought of as a planning pass. It does not produce the final file.
The second pass uses the statistics to distribute a chosen budget across simple and complex scenes.
Two-pass does not create detail that the source lacks; it improves planning within a rate constraint.
The analysis pass may use a faster preset or a reduced-resolution analysis, depending on the encoder.
The final pass must still encode every frame; the first pass is not a free quality improvement.
Use the same codec, resolution, frame rate and rate target in both passes; a mismatch can invalidate the planning assumptions.
Does two-pass improve quality?
Not automatically. Against a poorly configured one-pass bitrate encode, two-pass can produce a more even allocation and hit the target more reliably. Against a good quality-target encode, the visual difference may be small or nonexistent.
Two-pass is a tool for predictable rate control. If quality is the only goal and storage is flexible, a quality-target method may be simpler and at least as appropriate. The right comparison is the target, not the pass count alone.
If the bitrate target is generous, a one-pass encode may look indistinguishable from two-pass.
If the target is tight and the content is mixed, two-pass may produce a more even result.
A quality-target encode may be a better comparison than a low-quality rate encode.
Two-pass can make a bitrate-constrained result more even, but it cannot exceed the chosen budget without changing the target.
A quality-target encode can sometimes look better because it is allowed to spend more bits on a difficult moment.
Time, size and predictability
| Workflow | Best for | Main cost |
|---|---|---|
| One-pass, quality target | Simple local encodes with flexible size | Size varies with content |
| One-pass, bitrate target | Quick encodes with a rough budget | Less predictable allocation |
| Two-pass, bitrate target | Hitting a size or delivery target | Analysis time and two encode stages |
The first pass adds time, and the second pass does the actual encoding. For a short clip the cost may be minor; for a long recording it can be significant. Predictability is the reason to pay that cost, not a vague promise of sharper video.
Two-pass is useful when an upload limit, broadcast slot or delivery contract specifies a size or rate.
The first pass adds time and disk I/O; a long recording may take substantially longer overall.
The final size is still not guaranteed to the byte, but the average target is easier to approach.
Predictability is valuable when a file must fit a size cap or a delivery contract.
The time cost grows with duration, resolution and encoder settings; a short clip may not show the full cost.
When to use each workflow
Use one-pass quality targeting for a local archive when the file size can vary and the visual target matters most. Use two-pass when a bitrate or file-size ceiling is mandatory and you need better allocation within it. Use a cap or a simple one-pass rate if the deadline matters more than perfect distribution.
FAST-VID does not perform these encoding workflows. It does not guarantee a bitrate, size, quality or codec. The distinction is still useful for understanding why an encoder may take longer or produce a more predictable file. Only use content you own or are authorized to save.
Use one-pass quality targeting for a simple archive with flexible storage.
Use two-pass when a rate or size budget is more important than encoding speed.
Use a cap when the delivery channel has a hard peak limit.
If you are not encoding the file yourself, FAST-VID does not expose any of these passes.
Measure the output on the intended player; a planning method is not a quality guarantee.
Use the simplest workflow that satisfies the actual constraint; more passes are not automatically better.
Measure the final file size and watch a difficult scene before committing to a long encode.
FAST-VID does not provide encoding passes, and its downloads are not a substitute for an encoder.
If a two-pass result still misses a cap, account for audio, container overhead and the difference between average and peak rate.
Frequently asked questions
Does two-pass encoding improve quality?
Not automatically. It improves the ability to hit a bitrate or size target and can allocate data more deliberately. A good quality-target encode may be just as suitable.
When should I use two-pass encoding?
Use it when you must hit a specific average bitrate, delivery budget or file-size target and want the encoder to plan the allocation.
Why is two-pass slower?
The encoder analyzes the source in a first pass and encodes the final output in a second pass. That takes additional time and I/O.
Is CRF better than two-pass?
They solve different problems. CRF targets quality with variable size; two-pass is useful for a bitrate or size target. Neither is universally better.
Does FAST-VID perform two-pass encoding?
No. FAST-VID downloads available source formats and does not expose encoding passes or bitrate controls.
Sources and references
- FFmpeg: H.264 encoding guide
- FFmpeg documentation
- FAST-VID: Video compression explained
- FAST-VID: Video storage estimates
Try FAST-VID
Open the FAST-VID downloader to inspect available source formats. FAST-VID does not provide one-pass, two-pass, bitrate or quality-target encoding controls.