u2takey / ffmpeg-go

golang binding for ffmpeg
Apache License 2.0
1.66k stars 167 forks source link

A confused bug returned in gin server #92

Closed flyingsnoopy closed 1 year ago

flyingsnoopy commented 1 year ago

When we use ffmpeg-go in our project nyasite admin.go:104 err := ffmpeg.Input(src).Output(src+".mp4", ffmpeg.KwArgs{ // "c:v": "libsvtav1", }).Run() to transform video file uploaded by users into standard mp4 file, it returns an error0xc00000a020 error: %s (0x7ff672ccf7a0,0xc0001231a0) exit status 1but transform successfully, no Mather whether I add err check or not. But when I try to repeat it in an in dived project only including the transforming part, it returns nothing but 0. I can't get any information about this bug from the Internet. Could someone help me? environment: os windows11 22H2 go1.20.3 ffmpeg 4.2.3

flyingsnoopy commented 1 year ago

I fixed it by update my ffmpeg from 4.2.3 to 6.0.Now it works