Add -pix_fmt yuv420p

This commit is contained in:
Ben Hood 2021-04-09 22:53:34 -05:00
parent e5db4f2150
commit 0e5de504f3

View File

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