3d0c / gmf

Go Media Framework
MIT License
885 stars 170 forks source link

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

Open ssadok opened 1 year ago

ssadok commented 1 year ago

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!

3d0c commented 1 year ago

Hello, @ssadok

Try to build it from ffmpeg-4 branch.

ssadok commented 1 year ago

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/gmf@v0.0.0-20220425074253-5646e6e80daf/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.

ayushanurag2002 commented 5 months ago

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