Add -pix_fmt yuv420p #8

This commit is contained in:
aluvare 2021-12-02 17:17:13 +01:00
parent d779ad2d6d
commit 9bc8f3566c

View File

@ -130,6 +130,8 @@ func (enc *X264ImageCustomEncoder) Init(videoFileName string) {
"-preset", "veryfast",
"-g", "250",
"-crf", strconv.Itoa(enc.ConstantRateFactor),
// https://github.com/saily/vnc-recorder/pull/8
"-pix_fmt", "yuv420p",
videoFileName,
)
cmd.Stdout = os.Stdout