ffmpeg MP4 not working in Quick Look on Mac: the fix
ffmpeg MP4 won't preview in Finder Quick Look? Check pix_fmt and codec tag with ffprobe, re-encode to yuv420p, or recompress the MOV instead.
GuideUpdated 7 min read
On this page
You converted a .mov to .mp4 with ffmpeg, the file plays in other players, and Finder shows a generic icon or a blank Quick Look window when you press Space. This page explains why that happens and how to fix it.
Why an ffmpeg MP4 won't preview in Quick Look
Quick Look uses the same media frameworks as QuickTime Player. Apple says its apps work with many formats, but some files use older or specialized formats that need different software (Apple Support: if a media file doesn't open). An ffmpeg MP4 can be perfectly valid and still land on the wrong side of that line. These are the usual causes, most common first:
- Pixel format kept from the source. If you don't set
-pix_fmt, ffmpeg picks a format based on the input. Footage in 4:4:4, 4:2:2 or 10-bit then becomes H.264 in a "High 4:4:4", "High 4:2:2" or "High 10" profile. ffmpeg itself warns about this when it picks 4:2:2: it suggests-pix_fmt yuv420pfor compatibility with older players. Apple's H.264 path is built around 8-bit 4:2:0, so these files are the most common failures. - HEVC tagged
hev1. ffmpeg's libx265 writeshev1by default in MP4. Apple's players expecthvc1. The video is fine, but the tag is wrong for Apple. - A codec Apple doesn't play inside MP4. VP9, or an old codec from a camera or screen recorder, will not open.
- An unusual audio track. Audio that isn't AAC can stop playback even when the video is fine.
- A broken file. An interrupted ffmpeg run, or a
.mp4that is really Matroska or WebM inside.
I can't tell you which one applies to your file without looking at it. The next section takes about a second.
Check the file with ffprobe
ffprobe ships with ffmpeg. This command only reads the file:
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,profile,pix_fmt,codec_tag_string -of default=nw=1 output.mp4Compare what it prints with this table:
| What you see | Likely to preview? | Fix |
|---|---|---|
h264, profile High, Main or Baseline, yuv420p | Yes | Video is fine; check audio and the later steps |
h264, yuv444p or yuv422p | Usually not | Re-encode with -pix_fmt yuv420p |
h264, yuv420p10le, profile High 10 | Usually not | Re-encode to 8-bit yuv420p, or use HEVC |
hevc, tag hev1 | Often not | Re-tag as hvc1 |
vp9 or another non-Apple codec | No | Re-encode to H.264 or HEVC |
Fix 1: re-encode to 8-bit yuv420p H.264
This writes a new file and leaves the original alone. To undo it, delete output.mp4.
ffmpeg -i input.mov -c:v libx264 -pix_fmt yuv420p -profile:v high -crf 23 -c:a aac -movflags +faststart output.mp4What each part does:
-c:v libx264encodes H.264.-pix_fmt yuv420pforces 8-bit 4:2:0.-profile:v highis the normal profile for this kind of encode.-c:a aacmakes the audio AAC.-movflags +faststartmoves the index to the front of the file. It helps web playback and does no harm locally.
People who hit this problem report that the combination of libx264, yuv420p, AAC, +faststart and the baseline profile (-profile:v baseline) produced a file that previewed. Baseline is the most limited H.264 profile and compresses less efficiently. Try high first and fall back to baseline only if the file still won't open.
Odd dimensions
yuv420p needs an even width and height. If ffmpeg stops with a "not divisible by 2" error, add a scale filter:
ffmpeg -i input.mov -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -pix_fmt yuv420p -profile:v high -crf 23 -c:a aac -movflags +faststart output.mp4Smaller or bigger result
A higher -crf value gives a smaller file at lower quality. Move it a few points at a time and check the result.
Fix 2: make HEVC open in Quick Look
If you used libx265 and the file won't preview, re-encode with the Apple tag:
ffmpeg -i input.mov -c:v libx265 -tag:v hvc1 -pix_fmt yuv420p -c:a aac output.mp4For a 10-bit source, use -pix_fmt yuv420p10le instead. 10-bit is fine for HEVC, unlike H.264. This needs an ffmpeg build with libx265.
If you already have an HEVC file and only the tag is wrong, you can re-tag without re-encoding:
ffmpeg -i in.mp4 -c copy -tag:v hvc1 out.mp4This copies the streams into a new file and changes only the tag.
Fix 3: skip the conversion and recompress the MOV
People who ask about this problem online often get the same reply: why convert at all? MOV and MP4 carry similar container overhead, so the savings come from re-encoding the video, not from changing the extension. If the original MOV previewed fine, recompressing it as a MOV keeps you in a container that already worked.
You can do that in ffmpeg with -c:v libx264 -pix_fmt yuv420p -crf 23 and a .mov output name. You can also do it in Gizmojar, which compresses with the Mac's hardware encoder where available rather than with ffmpeg:
- Press ⌃⌥Space (Control-Option-Space, the default shortcut) to open the command bar, then drop your
.movonto it. - Pick Compress: type "compress" and press ↵, or open the Video drawer with ⌘1.
- Press ⌘↵ to open the options. For a smaller file, set Quality: to Balanced or Small (the default is High) and leave Resolution: on Keep. For a hard cap, choose Fit Under Size and enter a number of MB in Fit under:.
- Press ↵ to run.
The result is saved next to the original as <name> (compressed).mov. For MOV, MP4 and M4V inputs, Compress keeps the same container. Your original is not changed, and Undo in the banner moves the result to the Trash. If a result isn't at least 2% smaller than the original, Gizmojar doesn't save it and shows "Original kept".
A few details that matter here:
- Compress never upscales and keeps orientation. Use HEVC (smaller files) is off by default. Files named "Screen Recording…" always use HEVC.
- If you do need an MP4, use Convert with Format: set to MP4 and Video: set to H.264. The Keep (no re-encode) choice only re-wraps the stream. That is fast and lossless, but it can fail when the codec doesn't fit MP4, and the error then ends "Try H.264 instead of “Keep”".
- For a job you repeat, a watch folder or a recipe can run it automatically.
One limit: Gizmojar reads only what macOS can open. If Quick Look and QuickTime Player can't open your ffmpeg MP4, Gizmojar may not be able to either. Go back to the original MOV, or fix the MP4 with ffmpeg first.
Gizmojar is part of MacSuite, and you can try it free for 7 days. See the Gizmojar page, or how to compress a video on Mac and how to convert MOV to MP4 on Mac for more options.
Which route to pick
| Situation | Use |
|---|---|
| You need an MP4 and ffmpeg is already in your workflow | Fix 1 with -pix_fmt yuv420p |
The source is HEVC and the tag is hev1 | Fix 2, or re-tag with -c copy -tag:v hvc1 |
| You only wanted a smaller file | Recompress the MOV (Fix 3) |
| You want to avoid command-line flags | Gizmojar Compress or Convert on the original |
Checklist before you try again
- The video stream is H.264 or HEVC, not VP9 or something older.
- H.264 is 8-bit
yuv420p. - HEVC is tagged
hvc1. - Audio is AAC.
- Width and height are even numbers.
- The file finished writing and
ffprobe output.mp4reports a real MP4/MOV container.
If it still doesn't preview
Test in QuickTime Player. If the file plays there, the video is fine and the problem is Quick Look itself (step 2). If it fails there too, the codec or pixel format is still wrong, so run
ffprobeon the new file.Reset the Quick Look cache. This clears cached previews, which macOS rebuilds:
bash qlmanage -r cacheTo check whether the problem is specific to Finder, preview the file from Terminal:
bash qlmanage -p output.mp4Rule out the audio. Re-encode with
-c:a aac, or drop the audio with-anas a test. If it previews without audio, the audio track was the problem.Check the file finished writing. If ffmpeg was interrupted, re-run the command and let it return.
Check the real container. Run
ffprobe output.mp4and read theInput #0line. A.mp4that is Matroska or WebM inside won't open.Update macOS. Apple's own advice for files that won't open is to check for software updates first.
If nothing works, send the details to whoever supports the player involved. For Quick Look, that is Apple Support. For ffmpeg behavior, use the ffmpeg project's bug tracker or mailing list. Include the exact ffmpeg command, the full ffprobe output, your macOS version, and whether QuickTime Player opens the file.
Subject: MP4 made with ffmpeg won't preview in Quick Look
Mac: <model>, macOS <version>
Command used: ffmpeg -i input.mov -c:v libx264 ... output.mp4
ffprobe output (video stream): codec h264, profile <profile>, pix_fmt <pix_fmt>, tag <tag>
Result: Finder shows a generic icon / Quick Look is blank
QuickTime Player: opens / does not open
Already tried: -pix_fmt yuv420p, baseline profile, qlmanage -r cacheCommon questions
Does -pix_fmt yuv420p lower quality?
It converts to 8-bit 4:2:0. From a 4:4:4 or 10-bit source you lose some color detail. That is hard to see in normal footage but can show on sharp colored text or fine graphics.
Is -movflags +faststart required for Quick Look?
No. It lets playback start before the whole file loads, which matters for web delivery. For Quick Look, the pixel format and codec tag are the more likely causes.
Should I use MOV or MP4?
MP4 is the safer choice for sending files to other people and platforms. For files you keep on your own Mac, MOV is fine, and Apple's QuickTime Player exports MOV rather than MP4.
Will changing the container alone fix it?
Only if the streams are already Apple-friendly. Re-wrapping with -c copy changes the container, not the pixel format, so a 4:2:2 H.264 stream stays 4:2:2. The exception is the hev1 to hvc1 re-tag shown in Fix 2.