gmf icon indicating copy to clipboard operation
gmf copied to clipboard

Compilation error: could not determine kind of name for C.AV_FRAME_DATA_FILM_GRAIN_PARAMS

Open ssadok opened this issue 2 years ago • 3 comments

Hello gmf maintainers,

I encountered a compilation error while using the gmf library with FFmpeg version 4.4.2 on Ubuntu 22.04. The error message is as follows: frame_go112.go:302:2: could not determine kind of name for C.AV_FRAME_DATA_FILM_GRAIN_PARAMS My FFmpeg version details are: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

It seems that the gmf library references a feature that is not available in this FFmpeg version. Could you please help me resolve this issue or update the library to be compatible with this version of FFmpeg?

Thank you for your assistance!

ssadok avatar Apr 23 '23 02:04 ssadok

Hello, @ssadok

Try to build it from ffmpeg-4 branch.

3d0c avatar Apr 23 '23 17:04 3d0c

Hello @3d0c,

Thank you for your suggestion to use the ffmpeg-4 branch. I have tried using the latest commit on this branch (5646e6e80daf0dda59b4473ddb1821210eb37748), but I am still encountering the following error:

/opt/gopath/pkg/mod/github.com/3d0c/[email protected]/frame_go112.go:302:2: could not determine kind of name for C.AV_FRAME_DATA_FILM_GRAIN_PARAMS

Here are the versions of Go and FFmpeg I am using:

Go version: go1.17.13 linux/amd64 FFmpeg version: ffmpeg version 4.4.2-0ubuntu0.22.04.1 I would appreciate any further guidance or suggestions on how to resolve this issue.

Thank you in advance.

ssadok avatar Apr 27 '23 17:04 ssadok

did you get any solution ? I am facing the same issue.

ayushanurag2002 avatar Mar 26 '24 09:03 ayushanurag2002