3d0c/gmf

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

ssadok opened this issue · 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!

3d0c commented

Hello, @ssadok

Try to build it from ffmpeg-4 branch.

Hello @3d0c,

Thank you for your suggestion to use the ffmpeg-4 branch. I have tried using the latest commit on this branch (5646e6e), 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.

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