FFmpeg Encoded MP4 Plays Black in QuickTime / Safari / WhatsApp

FFmpeg defaulted to `yuv444p` pixel format from PNG/RGB input instead of `yuv420p`.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: FFmpeg Encoded MP4 Plays Black in QuickTime / Safari / WhatsApp Platform: Media
Common Root Causes:
  • FFmpeg defaulted to `yuv444p` pixel format from PNG/RGB input instead of `yuv420p`.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Always add `-pix_fmt yuv420p -movflags +faststart` for universal web/mobile MP4 compatibility.
Safe Diagnostic Command:
ffprobe -v error -select_streams v:0 -show_entries stream=pix_fmt <out.mp4>
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

FFmpeg defaulted to `yuv444p` pixel format from PNG/RGB input instead of `yuv420p`. Recommended diagnostic: `ffprobe -v error -select_streams v:0 -show_entries stream=pix_fmt <out.mp4>`. Remediation: Always add `-pix_fmt yuv420p -movflags +faststart` for universal web/mobile MP4 compatibility.

Worked Examples

  • Run `ffprobe -v error -select_streams v:0 -show_entries stream=pix_fmt <out.mp4>` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-ffmpeg-yuv444p-quicktime-black · Independently verified: 2026-11-25

Related Resources