Merge pull request #8 from bdhood/master

Add -pix_fmt yuv420p
This commit is contained in:
Daniel Widerin 2022-03-07 10:28:16 +01:00 committed by GitHub
commit 9f06939cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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