MP4 Compression and Quality — Lessons from Reddit
An evidence-led MP4 guide distilling genuine Reddit experiences, technical limits, privacy checks, and a reproducible workflow.
Outline for MP4 Compression and Quality
- The container misconception and why MP4 is not a quality setting
- Remuxing: what it is, when it works, and why it preserves quality
- When remuxing fails: incompatible codecs, subtitles, and metadata
- Inspecting source files before choosing a workflow
- Encoding a representative sample and validating before batch processing
- Device compatibility: profiles, levels, and testing on the strictest target
- Archival preservation vs. playback convenience
- Practical tools and their operational limits
You have a file that looks flawless in VLC. You run it through a converter, select MP4 as the output, and the result is softer, noisier, and somehow smaller than you expected. The audio has a metallic tinge. The conversion took forty minutes, and you are left with a file that is objectively worse than what you started with.
The damage did not come from MP4. It came from an unnecessary re-encode. MP4 is a container specification, defined in ISO/IEC 14496-14, not a compression algorithm. A container holds streams: video, audio, subtitles, metadata. The quality of those streams is determined by the codecs that encoded them and the settings used, not by the box they sit inside. You can place a losslessly compressed video stream into an MP4 container, or you can place a tenth-generation transcode that looks like a mosaic. The container does not care. The distinction that matters is whether you are copying streams or re-compressing them.
The Remux vs. Re-encode Distinction
If your source file already contains video and audio streams that are compatible with the MP4 specification, you can transfer those streams directly into an MP4 container without decoding or re-encoding a single frame. This operation is called a remux (short for remultiplex). It is a copy operation at the stream level. It takes seconds per gigabyte and is mathematically lossless: the output is bit-for-bit identical to the source streams.
Re-encoding is the opposite. The original video and audio are decoded to uncompressed form, then passed through an encoder that compresses them again according to new parameters. Every re-encode is a lossy generation. The encoder makes irreversible decisions about what detail to discard. Even if you match the original codec and bitrate exactly, the output will differ from the input. One generation may be visually transparent. Two generations will show measurable degradation. Three generations will show visible artifacts in flat areas and motion scenes.
A frequent failure pattern involves someone re-encoding an H.264 MKV to an H.264 MP4, degrading both video and audio when a simple remux would have preserved the original quality. The decision point is straightforward: inspect the source codecs, and if they are MP4-compatible, remux. If they are not, identify which stream requires re-encoding and leave the others untouched whenever possible.
When Remuxing Is Not Possible
The MP4 container has a defined set of codecs it can legally carry, per the ISO base media file format and the MP4 registration authority. The Library of Congress format specification for MP4 (FDD000155) documents these constraints. Video codecs with broad MP4 support include H.264/AVC, H.265/HEVC, MPEG-4 Part 2, and H.262/MPEG-2. Audio codecs with reliable support include AAC (LC, HE, HEv2), MP3, and MPEG-4 audio.
Common incompatibilities arise on the audio side. Opus, Vorbis, FLAC, AC-3, and DTS are not standard MP4 audio codecs. If your source MKV uses any of these, the audio track must be re-encoded to AAC for MP4 compatibility. The video stream, if it is H.264 or H.265, can still be copied losslessly.
Video codecs that are not MP4-compatible include VP9, AV1 (support exists in newer specifications but is absent from many hardware decoders), and lossless archival codecs like FFV1. If your source uses one of these, the video stream must be re-encoded.
Subtitles present a narrower set of constraints. MP4 supports timed text tracks (TTXT) and, in some implementations, SRT subtitles stored as a track. It does not reliably support PGS (Blu-ray image-based subtitles) or VobSub. Those streams must either be discarded or burned into the video frame, which forces a full video re-encode. The FDD000155 specification notes that subtitle support in MP4 is implementation-dependent and should not be assumed across players.
Rotation metadata is an additional hazard. Some MKV files carry a rotation tag that tells compliant players to rotate the video on display. MP4 does not have a standardized equivalent. If your source has a rotation tag, the video may play sideways or upside-down after remuxing unless you re-encode to physically rotate the pixels.
Inspect Before You Act
Do not guess what is inside your source file. Run a stream-level probe before choosing a workflow. The command-line tool ffprobe (part of FFmpeg) will report the container format, video codec and profile, audio codec and channel layout, frame rate, subtitle track formats, and any rotation metadata. Graphical alternatives include the media information panel in Shutter Encoder and the mkvinfo utility in MKVToolNix.
The decision logic follows directly from the probe output:
- Video codec is
h264orhevc, audio codec isaacormp4a: remux everything. - Video codec is compatible, audio codec is
opus,vorbis,flac,ac3, ordts: copy video, re-encode audio to AAC. - Video codec is
vp9,av1, orffv1: re-encode video to H.264 or H.265. - Subtitle track is
hdmv_pgs_subtitleorvobsub: burn in or discard. - Rotation metadata is present: re-encode video to apply the rotation.
Encoding a Representative Sample
If your workflow requires any re-encoding, do not queue an entire library and walk away. The worst outcome is discovering after an overnight batch that every file has banding in dark gradients or that audio drifts out of sync after the first chapter.
Extract a 30-second to two-minute segment from the middle of a representative source file. FFmpeg can do this without re-encoding the source: ffmpeg -ss 00:15:00 -i input.mkv -c copy -t 60 sample.mkv. Encode that sample with your chosen settings, then test it on every device you care about. Check for:
- Blockiness or banding in flat areas (sky, walls, shadow gradients)
- Audio sync after scene cuts
- Subtitle positioning and font rendering
- Whether the file opens at all on your oldest or most restrictive playback device
Scale to the full library only after the sample passes all checks.
Testing on the Strictest Target Device
A file that plays correctly in VLC or a modern browser may fail on a smart TV, a game console, or a hardware media player. The most common cause is a profile or level violation.
H.264 and H.265 define profiles (Baseline, Main, High) and levels (3.0, 4.0, 4.1, 4.2, 5.0, etc.) that constrain resolution, frame rate, and bitrate. A stream encoded at [email protected] will not play on a device whose decoder supports only up to [email protected]. If your source exceeds the level your target device supports, you must re-encode the video stream to a compliant level. Copying the stream will preserve the incompatibility.
If you cannot test on every target device, aim for a conservative encoding level. H.264 [email protected] is supported on effectively all devices manufactured after 2010. H.265 [email protected] covers most hardware from 2015 onward. If your source uses a higher level, re-encoding is required.
Archival Preservation vs. Playback Convenience
A low-bitrate H.264 encode can look acceptable on a phone screen and fall apart on a large television. The degradation is permanent. You cannot recover the discarded detail from a lossy encode.
If your goal is long-term preservation, keep the original file in its original container. If the source uses codecs incompatible with MP4, store the MKV as the archival master. The MP4 version is a derivative for playback convenience and sharing, not a replacement for the original. If you must re-encode to reduce file size, retain the source file. The smaller encode is a convenience copy, not an archival record.
Tools and Their Limits
FFmpeg is the most precise tool for both remuxing and re-encoding. It is command-line only and requires familiarity with its parameter syntax, but it is the engine underlying nearly every graphical video tool. HandBake provides a graphical interface for H.264, H.265, and AV1 encoding; its default filters may apply sharpening that some users prefer to disable. Shutter Encoder wraps FFmpeg in a broader GUI and handles batch operations and stream inspection well. MKVToolNix is the standard utility for inspecting and manipulating Matroska files before conversion.
None of these tools bypass the container and codec constraints described above. They all operate within the same specification limits. The practical difference is how easily each tool lets you inspect source streams, test a sample encode, and verify output before committing to a full batch.
Community reports reviewed
These discussions are used as reports of real user problems, not as technical specifications: