Codecs for Editing: ProRes, DNxHR, H.264 and HEVC

Updated

What makes a codec good to edit with, how ProRes and DNxHR compare at each quality level, where H.264 and HEVC fit, and how much storage each one needs per hour.

13 min readIntermediate
  • Codecs
  • ProRes
  • DNxHR
  • Storage
On this page

The short answer

  • • To edit: an intraframe codec, ProRes 422 or 422 HQ, or DNxHR SQ or HQ. Every frame decodes on its own.
  • • To grade and finish: 10-bit or better: ProRes 422 HQ or 4444, DNxHR HQX or 444, or the camera originals.
  • • To save space or cut on a laptop: proxies in ProRes Proxy or DNxHR LB, relinked to the originals at the end.
  • • H.264 and HEVC: made for delivery and for cameras that need small files. Editable, but heavier to decode.

Four properties decide how a codec behaves in an edit: whether frames are compressed alone or in groups, the chroma sampling, the bit depth, and the data rate. The rest of this guide takes them in turn, then compares the families with the makers' own figures.

Intraframe vs long-GOP

An intraframe codec compresses every frame on its own. Apple puts it plainly: all ProRes codecs are frame-independent, each frame encoded and decoded independently of any other. DNxHR and DNxHD work the same way. To show frame 1,000 the computer decodes frame 1,000, nothing else.

A long-GOP (group of pictures) codec, the usual way H.264 and HEVC are used, stores a complete picture (an I-frame, built from intra prediction only) every so often, and describes most frames as changes from one or two other frames (P- and B-frames). That is far more efficient, so files are much smaller. The cost is in the edit: to show a B-frame the decoder needs the frames it refers to, so scrubbing, reverse play, multicam and effects all ask more of the machine.

4:4:4, 4:2:2 and 4:2:0

Video codecs store brightness (luma) at full resolution and color (chroma) at the same or lower resolution. The three numbers describe how much color is kept:

  • • 4:4:4: full-resolution color. VFX plates, green screen, graphics, and RGB masters.
  • • 4:2:2: color at half the horizontal resolution. The usual editing and broadcast format; the ProRes 422 family.
  • • 4:2:0: color at half the horizontal and half the vertical resolution. The H.264 High and HEVC Main and Main 10 profiles that most delivery files use.

You rarely see the difference in a straight cut. You see it when you pull a key, sharpen edges in color, or scale and composite: 4:2:0 color edges are softer and keys get ragged. Transcoding 4:2:0 camera files to a 4:2:2 codec makes them easier to edit but doesn't restore color detail that was never recorded.

8-bit, 10-bit and 12-bit

Code values per channel
Levels = 2^bits 8-bit = 256 10-bit = 1,024 12-bit = 4,096

Every extra bit doubles the number of steps between black and white. Log footage spreads the scene's range across those steps, so a grade that stretches an 8-bit log image shows banding in skies and gradients sooner than a 10-bit one.

Rules of thumb: record and finish log and HDR at 10-bit or more; keep the bit depth through every transcode (an 8-bit intermediate throws away what a 10-bit camera recorded); and 8-bit is fine for finished SDR material that only needs cutting.

Apple ProRes

ProRes is Apple's family of intraframe codecs, from Proxy for offline editing to 4444 XQ for the highest-quality masters. Apple publishes target data rates in its ProRes white paper; the actual rate varies with picture content, by up to about 10% per frame above the target.

Apple ProRes target data rates in megabits per second, and storage per hour at UHD 23.976/24
FlavorSampling1080p 23.976/241080p 29.97/30UHD 23.976/24UHD GB/hour
ProRes 422 Proxy4:2:2, 10-bit364514565
ProRes 422 LT4:2:2, 10-bit82102328148
ProRes 4224:2:2, 10-bit117147471212
ProRes 422 HQ4:2:2, 10-bit176220707318
ProRes 44444:4:4:4, up to 12-bit + 16-bit alpha2643301,061477
ProRes 4444 XQ4:4:4:4, up to 12-bit + 16-bit alpha3964951,591716

Rates in Mb/s. The 4444 rates are without alpha. All four 422 flavors are 10-bit 4:2:2, and 422 HQ is the workhorse; 4444 and 4444 XQ are the only flavors that carry an alpha channel. For DCI 4K (4096 × 2160) at 24 fps, 422 HQ is 754 Mb/s. The 4K production guide has the 4K and raw figures, and the ProRes data rates cheat sheet puts them on one page.

Avid DNxHR and DNxHD

DNxHD is Avid's HD-only family; DNxHR extends it to any resolution, and Avid now calls the whole thing Avid DNx with five levels: LB, SQ, HQ, HQX and 444. The old DNxHD names were their HD data rates: at 1080p 23.976, DNxHD 36, 115, 175 and 175x are now LB, SQ, HQ and HQX.

Avid DNxHR data rates in megabits per second, and storage per hour at UHD 23.976
LevelNotes1080p 23.9761080p 29.97UHD 23.976UHD GB/hour
LBOffline; DNxHD 36 / 45 at HD364514465
SQDNxHD 115 / 145 at HD116144462208
HQ8-bit; DNxHD 175 / 220 at HD174218698314
HQXHigh Quality Extended: higher bit depth; DNxHD 175x / 220x174218698314
4444:4:4 and RGB only3504371,398629

Avid publishes these rates in MB/s. They appear to be binary megabytes, judging by the old DNxHD names: converted at × 8.39 to Mb/s, as here, they line up with DNxHD 36, 145 and 220. Avid labels HQ as its 8-bit high-quality level and HQX as High Quality Extended, the level to use for 10-bit and 12-bit YCbCr sources; 444 is the only level for 4:4:4 and RGB. HQ and HQX share a data rate.

H.264 and HEVC

H.264 (AVC) and H.265 (HEVC) are ITU-T standards built for efficient delivery. What a given file can hold depends on its profile, which is worth checking in your clip's metadata:

H.264 and HEVC profiles with their chroma sampling and bit depth
ProfileChromaBit depth
H.264 High4:2:08-bit
H.264 High 104:2:0Up to 10-bit
H.264 High 4:2:2 (and High 4:2:2 Intra)Up to 4:2:2Up to 10-bit
HEVC Main4:2:08-bit
HEVC Main 104:2:0Up to 10-bit
HEVC Main 4:2:2 10Up to 4:2:2Up to 10-bit

HEVC is the newer and more efficient of the two, and usually takes more processing to decode. Both edit well on machines with hardware decoding for that exact profile; 10-bit 4:2:2 long-GOP files are the ones most likely to stutter. When they do, transcode to ProRes or DNxHR, or make proxies (see the proxy workflow guide).

Choosing a codec for each stage

Codec choices for each stage of post-production
StageTypical choiceWhy
Offline editProRes Proxy, DNxHR LB, or the originalsSmall, light to play, relinks to the originals
Online, gradeCamera originals, ProRes 422 HQ/4444, DNxHR HQX/444Full bit depth and color for the grade
VFX platesProRes 4444/4444 XQ, DNxHR 444, or image sequences4:4:4, high bit depth, alpha where needed
MastersProRes 422 HQ or 4444 XQ, or IMF as the spec saysThe delivery spec decides
Review and webH.264 or HEVCSmall files that play anywhere
Storage for a codec
GB per hour = Mb/s × 3,600 ÷ 8,000 = Mb/s × 0.45

Example: 40 hours of UHD 23.976 footage transcoded to ProRes 422 HQ

Calculation:
707 × 0.45 = 318.2 GB an hour; × 40
Result:
About 12.7 TB, before backups

CineMath's Data & Storage calculator does this for any runtime: type in the maker's data rate and it gives the size, the record time on a card or drive, or the bitrate that hits a target size. The free bitrate calculator works out the size in your browser. For backups and RAID on top, see video storage planning.

Editing codec questions

What is the best codec for editing?

An intraframe codec built for editing: Apple ProRes 422 or 422 HQ, or Avid DNxHR SQ or HQ (HQX or 444 for high-bit-depth sources). Every frame decodes on its own, so scrubbing, reverse play and multicam stay responsive. Camera H.264 and HEVC files are fine to cut on a fast machine, but transcode or make proxies when playback struggles.

Is ProRes better than DNxHR?

They are close equivalents at similar data rates: ProRes 422 HQ at UHD 23.976 is 707 Mb/s, DNxHR HQ about 698 Mb/s. Pick the one your pipeline prefers. ProRes is Apple's and the house codec of Final Cut Pro; DNxHR is Avid's and the house codec of Media Composer, usually wrapped in MXF on Avid systems.

What is the difference between intraframe and long-GOP?

An intraframe codec compresses each frame on its own. A long-GOP codec stores a full frame only now and then and describes the frames in between as changes from their neighbors. Long-GOP files are much smaller for the same look, but the computer has to decode several frames to show one, which makes editing heavier.

Do I need 10-bit for editing?

For log footage, HDR, or anything that will be graded hard, yes: 10-bit has 1,024 code values per channel against 256 in 8-bit, which keeps gradients smooth when the image is pushed. For finished Rec. 709 material that only needs cutting, 8-bit is enough.

How much space does ProRes take per hour?

At 23.976 or 24 fps, from Apple's figures: 1080p ProRes 422 HQ is about 79 GB an hour, ProRes 422 53 GB, ProRes Proxy 16 GB. At UHD: 422 HQ about 318 GB, 422 212 GB, Proxy 65 GB. Multiply the Mb/s by 0.45 to get GB per hour.

Next: if the originals are too heavy to cut, set up proxies with the proxy workflow guide, and size the drives with Data & Storage.

Calculators for this guide