| layout | default |
|---|---|
| nav_order | 3 |
| title | Encoding Overview |
| has_children | true |
Table of contents
{: .text-delta } 1. TOC {:toc}This page walks through the steps from rendered frames to a review movie, with a short summary of each step and a link to the page that explains it. If you just want a command that works, start with the Encoding Cheatsheet.
Convert the scene-linear renders (typically ACEScg EXRs) to the display you are reviewing on, with OCIO. Either do it before FFmpeg and write 16-bit PNG or TIFF frames, see Preparing Frames with oiiotool, or do it inside FFmpeg 8.1 or later with the OCIO filter. For HDR deliveries, see HDR Encoding.
Resizing shrinks fine detail, and the result depends on the filter and on the color space you resize in. Where in the chain to resize, and in which space, is covered on the Resizing page, which is still being updated.
Image sequences have no frame rate or start frame of their own, so you have to give both. See FFmpeg Frame Sequences Specification.
Most codecs store Y'CbCr, not RGB, and this is the step where FFmpeg most often gets the color wrong.
- RGB to Y'CbCr Conversion explains the problem and compares the converters. Start here.
- zscale Conversion covers the converter we recommend, its options, and what to check.
- Chroma Siting covers where the color samples go when you subsample to 4:2:2 or 4:2:0.
- FFmpeg swscale Filter is for when
zscaleis not available. - RGB Encoding covers codecs that can skip the conversion entirely.
FFmpeg's color flags changed meaning in FFmpeg 7.1. If a command gives different results on a different version, see FFmpeg Version Changes.
- Codec Comparisons: which codec to use for which job, with a page per codec.
- Color Metadata and Web Color Preservation: the color tags that tell a player, and in particular a web browser, how to display the file.
- Adding Timecode and Editorial Workflow: timecode, reel names and Avid workflows.
- Adding Metadata: shot, version and other metadata in MOV, MP4, MXF and MKV.
- Useful FFmpeg Filters: audio, concatenation, test patterns, stereo and other filters.