ffmpeg -i input.mp4 -pix_fmt yuv420p output.mp4

Category: Media & Conversion

ffmpeg -i input.mp4 -pix_fmt yuv420p output.mp4

Force a widely compatible pixel format

Forces the yuv420p pixel format, the color encoding most players and web tools expect. Some sources produce formats like yuv444p that play poorly on older devices. Add this flag when a converted file looks wrong or will not play.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.