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:
yuv420p
You can use -pix_fmt yuv420p
or -vf format=yuv420p
to make sure your output uses this pixel format (assuming you're outputting H.264 video).