Operating Systems Bug Report

MP4 plays in Chrome but QuickTime Player refuses it: VP9, Opus and yuv444p inside .mp4

Exported product demos opened fine in Chrome and VLC but QuickTime Player and iPhones said the file was not compatible. The .mp4 container held codecs and a pixel format Apple players do not decode. ffprobe found it in seconds; one ffmpeg command fixed it.

Leila Farahani Leila Farahani @leilafarahani · November 18, 2026 · 7 min read · 236 Views
582-mp4-plays-in-chrome-not-quicktime-player

Our marketing team records product demos with a screen recorder, edits them in a web-based tool, and exports MP4 files for the website and for sales to send by email. One week the sales team started getting replies like "the attachment won't open". On a Mac, double-clicking the file gave:

The document "demo-onboarding.mp4" could not be opened.
The file isn't compatible with QuickTime Player.

The same files played fine in Chrome, in Firefox and in VLC. On iPhones, the Files app showed a blank preview. Older exports from the same team played everywhere.

Reproducing it

Every file exported after the editing tool's latest update failed in QuickTime. Files exported before the update worked. We had one good and one bad file of the same demo to compare.

What we ruled out

  • A corrupt download. Checksums of the email attachment and the original matched, and Chrome played the whole file without errors.

  • The .mp4 extension being wrong. The container really was MP4; file reported it as an ISO Media file with an isom brand.

  • macOS version. It failed on macOS 15 and 26 alike, and on iOS.

Root cause

ffprobe on the bad file showed VP9 video and Opus audio in the MP4 container, and a test export with H.264 still failed because its pixel format was yuv444p. The tool's update had switched the default "high quality" export from H.264 with AAC to VP9 with Opus, both legal inside MP4 and well supported by browsers, but not by QuickTime Player or Apple's media frameworks for this kind of file. The H.264 option kept the full-colour 4:4:4 pixel format from the screen capture, which Apple's players do not decode either.

What is happening under the hood

A file extension names a container, not the codecs inside it. MP4 can carry many video codecs (H.264, HEVC, AV1, VP9) and audio codecs (AAC, Opus, FLAC, MP3). Each player supports a different subset. Browsers that ship their own software decoders, like Chrome and Firefox, play VP9 and Opus in MP4 because they need them for web video. QuickTime Player relies on the system media framework, which focuses on H.264, HEVC, ProRes and AAC.

The second trap is the pixel format. H.264 has profiles. Most players and nearly all hardware decoders handle 8-bit 4:2:0 chroma subsampling (yuv420p), the format of almost every video online. Screen recordings are captured as RGB, and when ffmpeg encodes RGB input with libx264 without being told otherwise, it can keep full chroma and produce yuv444p, which needs the High 4:4:4 Predictive profile. Many players, including Apple's, refuse it.

A safe "plays everywhere" MP4 is still: H.264, High or Main profile, yuv420p, 8-bit, AAC audio.

Environment

Component

Version / value

Players

QuickTime Player on macOS 15 and macOS 26, iOS 26 Files and Mail

Browsers

Chrome 141, Firefox 144 (both played the file)

Tools

ffmpeg 8.0, ffprobe 8.0

Bad export

MP4, VP9 video, Opus audio; H.264 variant with yuv444p

Good export

MP4, H.264 High, yuv420p, AAC-LC

Minimal reproduction

These commands create both problem files from any source clip:

# VP9 + Opus in MP4: plays in Chrome, not in QuickTime
ffmpeg -i source.mov -c:v libvpx-vp9 -b:v 2M -c:a libopus out-vp9.mp4

# H.264 but 4:4:4 chroma: Chrome may play it, QuickTime will not
ffmpeg -i screen.mov -c:v libx264 -pix_fmt yuv444p -c:a aac out-444.mp4

Who is affected

Anyone shipping MP4 files that leave the browser: email attachments, downloads, files uploaded to messaging apps, and video for iOS apps that use system players. Web pages that serve VP9 or AV1 to Safari are covered by separate support rules; this post is about the file that someone opens locally.

The fix

1. Inspect before guessing. One ffprobe call shows codec, profile, pixel format and the codec tag for every stream:

ffprobe -v error \
  -show_entries stream=index,codec_type,codec_name,profile,pix_fmt,codec_tag_string,width,height \
  -of compact demo-onboarding.mp4
stream|index=0|codec_name=vp9|profile=Profile 0|codec_type=video|codec_tag_string=vp09|width=1920|height=1080|pix_fmt=yuv420p
stream|index=1|codec_name=opus|profile=unknown|codec_type=audio|codec_tag_string=Opus|width=N/A|height=N/A|pix_fmt=N/A

On a Mac without ffmpeg you can get a rough answer from Spotlight metadata:

mdls -name kMDItemCodecs demo-onboarding.mp4

2. Re-encode to the compatible set. For files that leave the browser we now always run:

ffmpeg -i demo-onboarding.mp4 \
  -c:v libx264 -profile:v high -pix_fmt yuv420p -crf 20 -preset medium \
  -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" \
  -c:a aac -b:a 160k \
  -movflags +faststart \
  demo-onboarding-h264.mp4

What each part does:

  • -pix_fmt yuv420p forces 4:2:0 chroma, the format every player supports.

  • The scale filter rounds width and height down to even numbers. 4:2:0 needs even dimensions, and libx264 stops with width not divisible by 2 if a screen capture is, say, 1279 pixels wide.

  • -crf 20 keeps quality high for screen content; raise it for smaller files.

  • -movflags +faststart puts the index at the start of the file so it can start playing before it is fully downloaded.

3. Fix the export preset. We changed the editing tool's preset to "H.264, compatible" for anything leaving the website, and kept VP9 only for the web player, which serves it next to an H.264 fallback.

Alternatives and trade-offs

  • HEVC instead of H.264. Smaller files at the same quality and supported by Apple devices, but support on older Windows machines depends on installed extensions. Use the hvc1 tag for Apple players.

  • Keep 4:4:4 for screen recordings. Text edges in coloured UI look sharper in 4:4:4. If you need it, ship it only to a player you control and give everyone else a 4:2:0 copy.

  • A MOV container. It does not help here: the problem is the codecs, and MOV with VP9 or Opus has the same support issue.

How to test the fix

We added a check script that fails if a file is outside our compatible set:

#!/usr/bin/env bash
# check-mp4.sh: exit 1 if a file will not play in Apple players
set -euo pipefail
f="$1"
v=$(ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,pix_fmt -of csv=p=0 "$f")
a=$(ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of csv=p=0 "$f" || true)
[[ "$v" == "h264,yuv420p" || "$v" == "hevc,yuv420p" ]] || { echo "bad video: $v"; exit 1; }
[[ -z "$a" || "$a" == "aac" ]] || { echo "bad audio: $a"; exit 1; }
echo "ok: $f"

Then we opened each re-encoded file in QuickTime Player, sent it to an iPhone through Mail, and played it in Chrome and Firefox to confirm nothing regressed.

Confirming in production

The check script now runs in the asset pipeline for every MP4 uploaded to our download centre and email templates. Over the next month it rejected four uploads, each an export from a personal laptop with the new default preset, and the sales team reported no more "won't open" replies.

Regression guard

  • The asset pipeline refuses MP4 files that fail check-mp4.sh and tells the uploader which command to run.

  • The shared export preset is versioned in our design-tools repository, so a tool update that changes defaults shows up in review.

Security implications

None beyond normal media handling. Re-encoding untrusted uploads with ffmpeg means running a complex parser on user input, so do it in a sandboxed worker with resource limits, keep ffmpeg updated, and never pass user-controlled strings into the command line unquoted.

Prevention checklist

  • Treat .mp4 as a container and always check codecs with ffprobe.

  • For files that leave the browser, ship H.264 or HEVC, yuv420p, AAC.

  • Round dimensions to even numbers when forcing 4:2:0.

  • Add -movflags +faststart to every MP4 you publish.

  • Validate uploads automatically instead of trusting export presets.

References

Add a label

#macos #ffmpeg #ffprobe #mp4 #quicktime
Written by
Leila Farahani @leilafarahani

I lead a small team responsible for observability and quality tooling, and I spend a fair share of my time on application security reviews. That mix means I see many incidents twice: once when they happen and again when we ask why nothing warned us. The posts here come from that second look. An alert that never fired because the metric disappeared, sampling that dropped exactly the traces we needed, a catch-all that reported success for weeks, a secret recoverable from an image layer, tests that passed against mocks while production failed. Each one covers how the gap was found, what we changed in code or configuration, and how we verified the fix with a test or a drill. Security topics stay defensive and practical: controls you can add to your own code and a way to test each one.

Advertisement

Comments

0

No comments yet. Be the first to comment!

Sign In to post a comment.