H.264 vs H.265 vs AV1 — Lessons from Reddit

November 30, 2026 · MP4.now Editorial · Reddit Guides

An evidence-led MP4 guide distilling genuine Reddit experiences, technical limits, privacy checks, and a reproducible workflow.

Outline for H.264 vs H.265 vs AV1

  • Opening: The container–codec distinction and why MP4 imposes specific constraints
  • H.264: Compatibility baseline, profile/level signaling, and the storage cost
  • H.265: Compression gain, hardware decode fragmentation, and tagging requirements
  • AV1: Compression advantage, encode time penalty, and limited hardware decode
  • Preservation, apparent quality, and recoverability: Defining the three concepts and their hard limits
  • Operational guidance: Source inspection, remux vs. re-encode criteria, sample testing
  • Common failure modes: Audio, subtitles, and the cost of skipping inspection
  • Sources

A video file inside an MP4 container carries two independent decisions: the container format and the codec compressing the video stream. The container defines what metadata, audio formats, and subtitle tracks can legally travel with the video. The codec determines how the raw frames are compressed and, by extension, which devices can decode them in hardware. Confusing the two is the root of most failed encodes. The Library of Congress format description for MP4 (FDD000155) specifies that the container must explicitly signal codec identity, profile, and level. When that signaling is missing or mismatched, a file that plays on one device can silently fail on another.

H.264: The Compatibility Baseline

H.264 (AVC) remains the most reliably playable video codec inside MP4. Hardware decoders for H.264 exist in nearly every device manufactured in the last 15 years, from budget smartphones to set-top boxes and game consoles. The failure mode is not compatibility but storage efficiency. At a given perceptual quality, H.264 produces files roughly 30–50% larger than H.265 and larger still compared to AV1. For a 1080p source, a well-tuned H.264 encode at 8–10 Mbps can look identical to a 4–5 Mbps H.265 encode. The difference is measured in gigabytes over a library.

A recurring misconfiguration involves the profile and level fields. Using the High profile without verifying the level can produce a file that exceeds a decoder’s capabilities. Level 4.1 constrains 1080p to 30 fps; level 5.1 is required for 4K resolution. Exporting a 4K H.264 stream at level 4.1 produces a syntactically valid file that strict decoders will refuse to play or will play with dropped frames. The FDD000155 specification notes that profile and level must be explicitly signaled in the MP4 container. An incorrectly set value makes the encode unplayable on decoders that enforce these constraints.

H.265: Efficiency at the Cost of Hardware Fragmentation

H.265 (HEVC) reduces bitrate by roughly 30–50% compared to H.264 at equivalent perceptual quality. It is the standard codec for 4K Blu-ray and is widely used in streaming. The trade-off is a fragmented hardware decode landscape. Many devices manufactured before 2018 lack H.265 hardware decoding entirely. Software decoding is possible but draws significantly more power on laptops and can stutter on low-power SoCs such as those in budget streaming sticks or older smart TVs.

When remuxing an MKV containing an H.265 stream into MP4, the video stream can be copied without re-encoding. A common failure occurs when the resulting file plays audio but no video. The cause is usually incorrect codec tagging. The MP4 container requires the video track to be tagged with either hev1 or hvc1. FFmpeg defaults to one scheme; some players, particularly Apple devices, require the other. Use -tag:v hvc1 when targeting Apple hardware, or hev1 for broader compatibility. A file with the wrong tag is technically compliant but silently rejected by the player’s decoder initialization.

AV1: Compression Gains with Encode and Decode Constraints

AV1 delivers roughly 30% better compression than H.265. A 4K feature can drop to 5–6 Mbps with acceptable visual quality. The cost is twofold: encoding time and hardware decode availability. A single 10-minute 1080p clip can take over an hour to encode on a modern CPU using software encoding. Hardware-accelerated encoding is available on a narrow set of recent GPUs (NVIDIA RTX 40-series, Intel Arc, Apple M4), but software decoding remains the fallback for most existing hardware. A 2019 laptop decoding 4K AV1 in software will likely stutter or drop frames.

AV1 is a defensible choice for archival of infrequently accessed material, provided you accept that playback will require a specific hardware setup or a software player capable of real-time decode. For files intended to be shared or uploaded to platforms that re-encode regardless, AV1 introduces friction without a playback benefit. The MP4 container specification supports AV1, but destination devices often do not.

Preservation, Apparent Quality, and Recoverability

These three concepts are distinct and frequently conflated in encoding discussions.

Preservation means retaining all source information: frame structure, color metadata, timestamps, subtitle tracks, and rotation flags. Only a lossless copy or a remux preserves the source identically. Re-encoding to any lossy codec discards information irreversibly.

Apparent quality is what the viewer perceives on screen. A well-tuned H.265 or AV1 encode can appear identical to the source for most viewers. It is not preserving the source; it is producing an approximation that is visually acceptable.

Recoverability is the ability to re-encode or transcode the file in the future. Each generation of lossy encoding compounds compression artifacts. If you encode to AV1 today and later need to convert to another format, the artifacts from the AV1 pass are permanently baked into the output.

The hard limit: you cannot re-encode to a smaller file without losing information. The only question is how much loss occurs and whether it is perceptible under your viewing conditions.

Operational Steps

Inspect the source before any conversion. Use ffprobe or MKVToolNix to list all tracks: video codec, audio codec, subtitle format, frame rate, and color metadata. This step takes under a minute and prevents hours of wasted encoding.

Decide between remux and re-encode. Remux with - c copy when the video codec and audio format are already compatible with MP4. H.264 and H.265 video with AAC or AC-3 audio can typically be remuxed directly. Re-encode only when:

  • The video codec is incompatible with all target playback devices (e.g., VP9 or AV1 on older hardware).
  • The file size is unacceptably large and you accept the quality trade-off.
  • The audio format is unsupported in MP4 (DTS, TrueHD, FLAC, Opus). In this case, re-encode only the audio track to AAC and copy the video stream if it is already compatible.

Handle subtitles explicitly. MP4 supports SRT and VTT subtitle tracks. PGS (Blu-ray image-based) subtitles are not supported. Options include extracting and converting PGS to SRT via OCR, or burning the subtitles into the video frame during re-encode. Each path has different quality and workflow implications.

Test on the strictest target device. Encode a two-minute sample containing action, static shots, and dark scenes. Test playback on the oldest or most restrictive device in your playback chain. A file that plays correctly on a desktop media player may fail on a 2015 Roku or an older smart TV.

Set codec signaling fields explicitly. For H.264, verify that the profile and level match the resolution and frame rate of the source. For H.265, set the tagging scheme (hev1 or hvc1) to match the requirements of the intended playback hardware. For AV1, confirm that every target device supports AV1 decode before committing a large batch.

Common Failure Modes

The most frequently reported failure follows a pattern: a user re-encodes a large MKV to a smaller MP4 using H.265, then discovers the audio is Opus (unsupported in MP4) or the subtitles are missing. The encode is technically successful but unusable for the intended purpose. A five-minute source inspection would have revealed the incompatible audio format and prevented the wasted encode.

Another recurring failure involves remuxing without checking codec tagging. The video stream is copied losslessly, but the player shows a black screen because the hev1/hvc1 tag does not match what the decoder expects. The fix is a remux with the correct tag, not a re-encode.

Sources