Comparisons

H.264 vs H.265: Choose for Playback, Editing and File Size

Choose a codec for your recipient, editor and storage needs. Compare supported workflows and inspect two actual sample outputs with matching text crops.

Oct 22, 2026
6 min read
C
Cubix Team

H.264/AVC is often the practical starting point for sharing with an unknown audience. H.265/HEVC is worth considering when the receiving devices and apps support it and its encoding tradeoffs suit your workflow. Neither choice guarantees playback, faster editing or a particular percentage saving.

Both are video compression standards. They are separate from MP4 and MOV, which are containers; see MP4 vs MOV for that decision. This article focuses on choosing a codec for a destination and workflow. For step-by-step size reduction, use the existing video compression guide.

H.264 vs H.265: practical differences

QuestionH.264 / AVCH.265 / HEVC
Will it play?Broad support for common delivery profiles, but check the actual recipient and fileSupport depends on device, OS, app, profile and sometimes an installed decoder
Will it be smaller?Size depends on bitrate, duration, content and encoder settingsCan deliver useful compression efficiency, but a smaller file at acceptable quality must be checked
Will it edit smoothly?Hardware decoding, clip properties, effects and timeline load matterThe same checks matter; supported hardware decoding can make a substantial difference
Can it carry HDR?Check the supported profile and destination workflowMain 10 is used in many HDR workflows, but the codec alone does not establish HDR
Can I export it?Your app needs a suitable encoderPlayback support does not imply that your editor can encode HEVC

The MDN codec guide describes capabilities and compatibility limits. Apple's HEVC guidance also makes device, resolution, frame rate and app support relevant. Check current destination specifications before a long export; an OS name alone is not a compatibility test.

Choose for the job

Your situationA practical next step
Sending to unknown recipient devicesStart with a common H.264/AAC MP4 specification and test with the recipient
Recording into a known HEVC-capable workflowTest a short HEVC recording through playback, import, edit and export before committing
Editing several high-resolution tracksCheck your editor's hardware decoding and proxy options with your actual clips
Capturing software UI or fine textCompare text at the intended viewing size; motion and detail both affect encoding results
Delivering to an upload platformFollow its current codec, profile, audio and color requirements
Delivering HDRVerify bit depth, color primaries, transfer function, metadata and destination support together

A device may decode a file but lack a suitable hardware encoder, or your editor may offer an encoder while a recipient cannot play its output. Treat encoding, playback and timeline editing as separate checks.

Why a codec choice is not a file-size promise

Codec choice checklist covering destination support, encoder settings, file bytes and visual inspection

Original decision diagram. It contains no measured savings by footage category.

For an estimate, file bytes ≈ total average bitrate in bits per second × duration in seconds ÷ 8. Include audio and allow for container overhead. At the same total average bitrate and duration, the sizes will be similar regardless of the codec name; exact output bytes can differ.

HEVC may reach an acceptable visual result at a lower bitrate for a particular source. How much lower depends on the source, encoder, preset and quality target. Do not apply a universal “50% smaller” rule or assign fixed savings to drone footage, talking heads or screen recordings.

Constant-quality encoding is another case: you choose a quality setting and the encoder varies bitrate. HandBrake explains its quality control. CRF/RF values are not proof of equal quality across different encoders; matching a number is not a controlled quality comparison.

Enjoying this read?

Get weekly insights on video editing, AI workflows, and creator growth straight to your inbox.

Join Newsletter

A reproducible eight-second example

On October 22, 2026 we encoded an original synthetic source containing fine text, a moving test pattern and a tone. It is not a camera recording or a codec benchmark.

Both outputs use 1280 × 720 pixels, 30 fps, eight seconds, 8-bit YUV 4:2:0 SDR with BT.709 tags, and AAC audio at a requested 128 kbps/48 kHz. FFmpeg 8.0.1 used the software libx264 and libx265 encoders, the medium preset and CRF 26. The HEVC MP4 uses the hvc1 tag. Neither encode used a hardware encoder.

OutputSettingsObserved total bytes
H.264 MP4libx264, medium, CRF 26740,664
H.265 MP4libx265, medium, CRF 26, hvc1917,831

These settings are not matched quality. Different encoders and rate-control scales make the same CRF value an insufficient basis for an efficiency claim. These bytes describe only the supplied files; they establish no general savings percentage, encode-speed ranking or device-support result.

The crops below use the same frame time (4 seconds) and the same text region. They are enlarged 2× with nearest-neighbor scaling so you can inspect edges; they are not screenshots from an editing app.

H.264 text crop

H.264 output text crop at four seconds, enlarged two times from the supplied sample

H.265 text crop

H.265 output of the same text region at four seconds, enlarged two times

Open the H.264 sample and H.265 sample in your intended playback app. The inspection record supplies full file hashes, stream properties and encoder-build information. Both files passed a local FFmpeg 8.0.1 decode check; that does not establish hardware acceleration, editor responsiveness or support on another device.

Reproduce the encoding settings

Starting with your own suitable source, these commands illustrate the settings used. A different source produces different results.

ffmpeg -i source.mkv -map 0:v:0 -map 0:a:0 -c:v libx264 -preset medium -crf 26 -threads 2 -c:a aac -b:a 128k -pix_fmt yuv420p -movflags +faststart h264-example.mp4
ffmpeg -i source.mkv -map 0:v:0 -map 0:a:0 -c:v libx265 -preset medium -crf 26 -threads 2 -x265-params pools=2:frame-threads=2 -tag:v hvc1 -c:a aac -b:a 128k -pix_fmt yuv420p -movflags +faststart h265-example.mp4

Test a short file before a long recording

Keep the original. Send a short representative file through the actual playback and editing path. Check motion, fine text, sound, seeking and your final delivery. Record device, OS and app versions alongside the result. Do not infer smooth multi-track editing from successful standalone playback.

HEVC encoding alone does not create HDR. Likewise, converting an existing lossy H.264 recording into HEVC cannot restore lost detail; weigh additional encoding loss and time against any storage benefit. A separate delivery copy may be useful, but retain the original where possible.

For a recording-size estimate, use the screen recording planner. Its estimate is not a measured encode result. For reducing an existing file, continue with the compression workflow.

Don’t miss the next one.

Join our newsletter for exclusive tips, product updates, and the latest from the Cubix team.

Join Newsletter
C

Cubix Team

Product team

Part of the visionary team at Cubix, redefining the future of video creation through agentic AI and seamless workflows.

Planning your recording storage and file size?

Estimate storage from bitrate and duration before recording, then check your actual encoded files.

Plan recording storage with our calculator