Which pixel format for web mp4 video?
问题 I have to create video in mp4 format, and it seems that I can encode it with different pixel formats like yuv420p , yuv422p , yuvj422p . Which one I should use to maximize compatibility with most browsers/players? 回答1: Use yuv420p You can use the -vf format=yuv420p (or the alias -pix_fmt yuv420p ) output option to make sure your output is YUV 4:2:0. Example ffmpeg -i input -c:v libx264 -crf 23 -preset medium -vf format=yuv420p -c:a copy -movflags +faststart output.mp4 For web video the