Camera & Video Guide · 2026

Video Codecs Explained: H.264 vs H.265 vs ProRes vs RAW

What a codec actually is, why it's not the same thing as your file format, and which one to actually use for delivery, editing or archiving.

By Asfar Khan · AK Studios · Islamabad

Resolution, frame rate and bitrate get most of the attention because they're easy to understand and easy to see. Codec is the one setting almost nobody thinks about directly — and yet it quietly determines whether your export will play smoothly everywhere, how big your files are, how well your footage holds up in a grade, and whether your editing timeline scrubs smoothly or grinds to a stutter.

This is the fourth piece in our video-fundamentals series — see the companion guides on resolution, frame rate and bitrate for the other settings that, together with codec, determine everything about how your footage looks, how big it is, and how it behaves in an edit.

Table of Contents

  1. What Is a Codec?
  2. Codec vs Container: A Common Mix-Up
  3. Delivery Codecs: H.264, H.265 & AV1
  4. Editing Codecs: ProRes & DNxHD/DNxHR
  5. RAW vs Log vs Standard Codecs
  6. Intraframe vs Interframe Compression
  7. Codec Comparison Table
  8. Best Codec by Use Case
  9. Why Editors Use Proxy Files
  10. Common Myths About Codecs
  11. Codec Decision Tree
  12. Common Mistakes to Avoid
  13. Final Thoughts
  14. Frequently Asked Questions

What Is a Codec?

A codec — short for coder-decoder — is the algorithm that compresses raw video data down to a manageable size, and decompresses it back into a viewable image when you hit play. Without compression, video would be almost unusably large: a single minute of uncompressed 4K footage can run into tens of gigabytes. Codecs exist to make that data small enough to store, upload and stream, while preserving as much visual quality as the compression method allows.

Different codecs make fundamentally different trade-offs between file size, visual quality, editing performance and hardware compatibility. There's no single "best" codec — there's the right codec for what you're doing with the footage right now, which is exactly why professional workflows usually involve switching codecs at least once between recording and final delivery.

Codec vs Container: A Common Mix-Up

One of the most common points of confusion is treating a file extension like .mp4 or .mov as if it were the codec. It isn't. MP4 and MOV are containers — file wrappers that hold the compressed video and audio streams plus metadata like subtitles, chapter markers and timecode. The actual compression is handled by whatever codec is packed inside that container.

In practice, this means two .mp4 files can use completely different codecs — one might contain H.264 video, another H.265 — and a device that plays one smoothly might struggle with the other, even though both are "just MP4 files." When something won't play or import properly, the container extension is rarely the actual problem; the codec inside it usually is.

Quick way to remember it: the container is the box, the codec is what's actually packed inside it. Checking a file's properties (not just its extension) in your editing software or a tool like MediaInfo will show you the real codec.

Delivery Codecs: H.264, H.265 & AV1

H.264

AVC

The universal standard

H.264 has been the dominant delivery codec for well over a decade, and for good reason: it's supported by essentially every device, browser, phone and piece of editing software made in the last fifteen years. That universal compatibility is its single biggest advantage.

Trade-off: it's less compression-efficient than newer codecs, meaning it needs a higher bitrate than H.265 or AV1 to hit the same visual quality — so files are correspondingly larger for the same look.

Still the safest default when you're not sure what will play the file, and remains the recommended upload format for platforms like YouTube.

H.265

HEVC

Roughly 2x more efficient

H.265 (High Efficiency Video Coding) generally matches H.264's visual quality at roughly half the bitrate, which means meaningfully smaller files for 4K and HDR content — a genuinely useful advantage for anyone shooting or storing a lot of high-resolution footage.

Trade-off: hardware decode support, while common on modern phones and computers, still isn't as universally guaranteed as H.264's — some older devices, browsers and editing software handle it poorly or not at all.

Most modern smartphones and mirrorless cameras default to H.265 for 4K recording specifically because of this file-size advantage.

AV1

Royalty-Free, Growing Fast

Most efficient of the three

AV1 is a newer, royalty-free codec developed by an industry alliance that includes companies like Google, Netflix and Amazon. It's more compression-efficient than H.265, achieving comparable quality at an even lower bitrate — which matters enormously to platforms streaming video at massive scale.

Trade-off: encoding AV1 is more computationally demanding than H.264 or H.265, and while hardware decode support is growing fast in newer chips, it's less universal than the older codecs.

Most creators won't export directly to AV1 today — it's more relevant as the format platforms like YouTube re-encode your upload into for efficient delivery to viewers.

Editing Codecs: ProRes & DNxHD/DNxHR

Delivery codecs are optimized to be small. Editing codecs are optimized for the opposite priority — smooth real-time playback and maximum quality preservation while you work, with file size treated as a distant second concern.

ProRes (Apple)

A family of intraframe codecs spanning Proxy, LT, 422, 422 HQ, 4444 and 4444 XQ — each a different balance of quality and file size, widely used across editing platforms, not just Apple's own.

DNxHD / DNxHR (Avid)

Avid's equivalent family of intraframe editing codecs, serving the same purpose as ProRes with broadly comparable quality — the choice often comes down to which editing ecosystem a project lives in.

Both exist because delivery codecs like H.264 and H.265, despite being great for small file size, are relatively demanding to decode smoothly in real time when you're scrubbing back and forth on a timeline — the opposite of what you want mid-edit. Editing codecs trade file size for editing performance, producing files that are often several times larger than an equivalent delivery export, in exchange for a timeline that actually scrubs and plays back smoothly.

RAW vs Log vs Standard Codecs

These three terms get used almost interchangeably by creators, but they describe genuinely different things.

RAW

Minimally processed sensor data with no color or exposure decisions baked in — maximum grading flexibility, at the cost of enormous file sizes and heavy hardware demands. Common in cinema cameras as proprietary formats like REDCODE RAW, ARRIRAW or Blackmagic RAW.

Log

Still compressed with a standard codec (often H.265 or ProRes), but recorded with a flat, low-contrast profile that preserves more dynamic range than a standard picture style — a middle ground between RAW's flexibility and a normal codec's manageable file size.

Standard Codec

A normal delivery or editing codec (H.264, H.265, ProRes) recording with the camera's standard color processing already applied — the least grading flexibility, but the smallest, most immediately usable files.

The practical trade-off is consistent across all three: more grading flexibility always costs more in file size and processing demand. RAW gives you the most room to fix or stylize color after the fact; a standard codec gives you the least room, but the smallest, easiest-to-handle files straight off the camera.

Intraframe vs Interframe Compression

This is the technical distinction underneath almost everything above, and it's worth understanding directly rather than just memorizing which codec goes where.

Intraframe (All-I)

Each frame is compressed completely independently, like a sequence of individual photos. Larger files, but any single frame can be decoded on its own — which is exactly why scrubbing an intraframe timeline feels instant and smooth. ProRes and DNxHD/DNxHR work this way.

Interframe (Long-GOP)

Only some frames are stored in full (reference frames); the rest store just the differences from nearby frames. Much smaller files, but decoding any single frame may require reconstructing from its neighbors — which is why scrubbing H.264/H.265 footage can stutter on underpowered systems. H.264, H.265 and AV1 all work this way.

Neither approach is objectively better — they're built for different jobs. Interframe compression is what makes small, efficient delivery files possible at all; intraframe compression is what makes a smooth, responsive editing experience possible. Professional workflows use both, deliberately, at different stages of the same project.

Codec Comparison Table

CodecTypeRelative EfficiencyBest For
H.264 / AVCInterframeBaselineUniversal delivery, maximum compatibility
H.265 / HEVCInterframe~2x more efficient than H.2644K/HDR delivery, smaller files at equal quality
AV1InterframeMore efficient than HEVCPlatform-side streaming delivery
ProResIntraframeLow (by design)Editing and mastering
DNxHD / DNxHRIntraframeLow (by design)Editing and mastering, Avid workflows
RAW (REDCODE, ARRIRAW, BRAW)Minimal/proprietaryLowest — largest filesMaximum color-grading flexibility

Best Codec by Use Case

YouTube & Social Delivery

H.264 remains the safest, most universally accepted upload format — the platform re-encodes it into whatever format best serves each viewer anyway.

4K/HDR Archival Delivery

H.265 gives noticeably smaller files than H.264 at the same visual quality, worth using where playback compatibility isn't a concern.

Active Editing Timeline

ProRes or DNxHR for smooth scrubbing and grading performance — transcode or use proxies rather than editing camera-native H.264/H.265 directly on demanding footage.

High-End Color Grading

RAW or Log, if your camera and workflow support it, to preserve maximum dynamic range and flexibility before committing to final color.

Long-Term Master Archiving

A high-quality intraframe codec like ProRes 422 HQ, preserving far more detail than a compressed delivery file for whatever future re-edit or re-export you might need.

Why Editors Use Proxy Files

Camera-native footage — especially high-resolution H.265 or RAW — can be too demanding for many systems to play back and scrub smoothly in real time during editing, even when the same footage renders and exports just fine. The fix professional editors use is a proxy workflow: creating lower-resolution, intraframe copies of the footage to edit with, while the timeline still references the original full-quality files.

Once editing is finished, the project relinks to the original camera-native or RAW footage for color grading and final export — so nothing about the final quality is compromised, but the actual editing process stays fast and responsive throughout. This is standard practice on any project involving 4K+ footage, RAW recording, or editing on a laptop rather than a dedicated workstation.

Common Myths About Codecs

MythMP4 is a codec.
RealityMP4 is a container — a file wrapper. The actual codec (usually H.264 or H.265) is packed inside it, and that's what actually determines quality, file size and compatibility.
MythA newer codec is always the better choice.
RealityNewer codecs like H.265 and AV1 are more efficient, but efficiency isn't the only variable — H.264 still wins on compatibility, and intraframe codecs like ProRes deliberately sacrifice efficiency for editing performance.
MythRAW footage always looks better straight out of camera.
RealityRAW and Log footage are deliberately flat and unprocessed — they're designed to be graded, not viewed directly, and often look worse unedited than a standard picture profile until color work is applied.
MythConverting a delivery codec to ProRes improves its quality.
RealityTranscoding to ProRes improves editing performance, not the underlying image quality — you can't recover detail that was already discarded by the original codec's compression.

Codec Decision Tree

Not sure which codec fits your situation? Walk through this:

What are you doing with this footage right now?
│
├── Uploading to YouTube, Instagram or TikTok
│      → Export H.264 in an MP4 container. Safest,
│        most universally accepted delivery format.
│
├── Delivering 4K/HDR where compatibility isn't a concern
│      → Use H.265 for meaningfully smaller files at
│        equivalent quality.
│
├── Actively editing a demanding timeline (4K+, RAW, Log)
│      → Transcode to ProRes/DNxHR proxies, or edit
│        with a proxy workflow, then relink for final export.
│
├── Color grading with maximum flexibility
│      → Shoot and edit from RAW or Log if your camera
│        and pipeline support it.
│
└── Archiving a finished master
       → Export a high-quality intraframe codec
         (ProRes 422 HQ / DNxHR HQ), not a delivery file.

Common Mistakes to Avoid

Most codec headaches trace back to one of these habits — all fixable once you know what's actually happening under the hood.

A Practical Example: From Camera to Client Delivery

Say you shoot a corporate brand film on a mirrorless camera set to record 4K in H.265 — a sensible on-camera choice, since it keeps file sizes manageable on your memory cards. Back at the studio, rather than editing that H.265 footage directly, you generate ProRes Proxy copies for the actual edit, since scrubbing and applying effects in real time is far smoother on an intraframe codec.

Once picture lock and color grading are finished, you relink to the original camera-native H.265 files for the final render, then export two separate delivery files: an H.264 MP4 for the client's YouTube channel and social pages, and a ProRes 422 HQ master for the client's own archive. Same footage, three different codecs, each chosen for the specific job it needed to do.

Final Thoughts

Codec is the least visible of the four fundamental video settings, but it's arguably the one with the widest-reaching consequences — it affects your file sizes, your editing performance, your playback compatibility, and your grading flexibility, often all at once. Getting it right rarely means picking one "best" codec; it means deliberately switching codecs at the right points in your workflow, the same way professional pipelines already do.

Combined with the right resolution, frame rate and bitrate for the job, understanding codec closes the loop on the fundamentals that determine how your footage actually behaves — from the moment it's recorded to the moment someone presses play.

Practical takeaway: record in whatever efficient codec your camera defaults to, edit from proxies or an intraframe transcode if your timeline stutters, and always export a dedicated delivery codec (H.264/H.265) separately from whatever you archive as your master file.

Want Footage Delivered in the Right Codec, Every Time?

At AK Studios by Asfar Khan, every project is shot, edited and exported with the codec, resolution, frame rate and bitrate that actually fit the platform — reels, corporate films, event coverage and drone work across Islamabad, Rawalpindi and Pakistan.

Talk to Us

Frequently Asked Questions

What is a video codec?

A codec is the algorithm used to compress and decompress video data — it determines how efficiently footage is squeezed down for storage or delivery, and how it's decoded back into a viewable image. Common examples include H.264, H.265, AV1 and ProRes.

What's the difference between a codec and a container?

A codec compresses the actual video and audio data. A container (or format) is the file wrapper that holds that compressed data plus metadata like subtitles and chapter markers. MP4 and MOV are containers, not codecs — an MP4 file typically holds H.264 or H.265 video inside it, and the same container can technically hold different codecs.

Should I use H.264 or H.265?

H.265 (HEVC) compresses roughly twice as efficiently as H.264, so it produces smaller files at the same visual quality — but H.264 has more universal hardware playback support across older devices and browsers. For modern delivery where compatibility isn't a concern, H.265 is generally the better choice; for maximum compatibility, H.264 remains the safer default.

What is ProRes and when should I use it?

ProRes is Apple's family of intraframe editing codecs, designed for smooth editing performance and maximum quality preservation rather than small file size. Use it for editing and mastering, not for final delivery — it produces files several times larger than H.264 or H.265 at the same resolution.

What's the difference between RAW video and Log footage?

RAW video is minimally processed sensor data with no baked-in color decisions, offering maximum grading flexibility at the cost of huge file sizes and heavy hardware demands. Log footage is still compressed with a standard codec like H.265, but uses a flat, low-contrast profile that preserves more dynamic range than a standard picture profile for grading — it's a middle ground between RAW and a normal delivery codec.

What is intraframe vs interframe compression?

Intraframe (all-I) codecs like ProRes compress every frame independently, producing larger files but much smoother real-time scrubbing during editing. Interframe (Long-GOP) codecs like H.264 and H.265 compress using reference frames, reusing data between nearby frames for much smaller files, but requiring more processing power to decode and scrub smoothly.

Why do editors use proxy files instead of the original footage?

Original camera footage, especially high-bitrate interframe formats, can be too demanding to scrub and play back smoothly in real time on many systems. Editors create lower-resolution intraframe proxy copies to edit with instead, then relink to the original full-quality footage for final rendering and export.

Is AV1 better than H.265?

AV1 is more compression-efficient than H.265, achieving comparable quality at a lower bitrate, and it's royalty-free, which has driven adoption by platforms like YouTube and Netflix for delivery. Its main drawback is that encoding it is more computationally demanding, and hardware decode support, while growing, is still less universal than H.264 or H.265.

What codec does YouTube use?

YouTube accepts uploads in H.264 (the recommended format for uploading) but re-encodes every video internally into multiple codecs and resolutions for delivery, including AV1 for many viewers, to serve the most efficient format a viewer's device supports.

What codec should I export for Instagram and TikTok?

H.264 in an MP4 container remains the safest, most broadly compatible choice for Instagram and TikTok, since both platforms are optimized around it and re-compress uploads regardless of the source codec.

Why is my H.265 video not playing on some devices?

H.265 hardware decode support, while common on modern phones and computers, still isn't as universal as H.264 — older devices, some web browsers, and older editing software may not play it smoothly or at all without a software decoder, which is the most common cause of playback problems.

Is ProRes a RAW format?

No. ProRes is a compressed intraframe codec that still applies the camera's color and exposure decisions to the footage, just with much lighter compression than delivery codecs. True RAW formats like REDCODE RAW, ARRIRAW or Blackmagic RAW preserve the sensor's data before those decisions are baked in, offering more grading latitude than ProRes.

Do I need a powerful computer to edit RAW video?

Generally yes. RAW files are large and computationally demanding to decode in real time, so smooth RAW editing typically requires a capable CPU/GPU, fast storage, and often proxy workflows — especially for 4K or higher RAW footage on a laptop or older machine.

What is DNxHD/DNxHR and how does it compare to ProRes?

DNxHD/DNxHR is Avid's family of intraframe editing codecs, serving the same purpose as ProRes — smooth editing performance and quality preservation over small file size. The two are broadly comparable in quality and use case, with the choice often coming down to which editing software and platform ecosystem you're working in.

Does codec choice affect battery life when recording?

Yes, indirectly. Codecs with dedicated hardware encoding support (like H.264 and H.265 on most modern phones and cameras) are far more power-efficient to record than software-encoded formats, since dedicated silicon does the compression work instead of the main processor.

Can I convert H.264 to ProRes without losing quality?

You can transcode H.264 to ProRes for smoother editing, but you can't recover detail that H.264's compression already discarded — the ProRes file will be much larger and easier to edit, but its actual image quality ceiling is still limited by the original H.264 source.

What codec do professional cinema cameras record in?

It varies by camera and manufacturer — many higher-end cinema cameras offer proprietary RAW formats (like REDCODE RAW or Blackmagic RAW) alongside more manageable options like ProRes or H.265, letting the operator choose based on the shoot's grading needs versus storage and workflow practicality.

Why does the same bitrate look different across codecs?

Because codecs differ in compression efficiency — a more advanced codec like H.265 or AV1 can preserve more visual detail at a given bitrate than an older, less efficient codec like H.264, since the compression algorithm itself is doing a better job of representing the same information.

What is a Long-GOP codec?

Long-GOP (Group of Pictures) describes interframe codecs like H.264 and H.265 that compress video using a mix of full reference frames and much smaller frames that only store the differences from nearby frames — producing highly efficient, small files at the cost of heavier decoding demands compared to intraframe formats.

Which codec should I archive my final master files in?

A high-quality intraframe codec like ProRes 422 HQ or DNxHR HQ is the common professional standard for archival masters, since it preserves far more detail than a compressed delivery codec and is easier to re-edit or re-export from years later as standards change.

Explore More