Add -pix_fmt yuv420p

This commit is contained in:
Ben Hood 2021-04-09 22:48:13 -05:00
parent d779ad2d6d
commit e5db4f2150

View File

@ -130,6 +130,7 @@ func (enc *X264ImageCustomEncoder) Init(videoFileName string) {
"-preset", "veryfast",
"-g", "250",
"-crf", strconv.Itoa(enc.ConstantRateFactor),
"-pix_fmt", "yuv420p",
videoFileName,
)
cmd.Stdout = os.Stdout