Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: libavresample/avresample.h: No such file or directory #127

Open
zengqingfa opened this issue Sep 15, 2021 · 1 comment
Open

Comments

@zengqingfa
Copy link

I have ffmpeg installed.
I want to test the code in joy4/examples/audio_decode/main.go when the program reported the following error:

# github.com/nareix/joy4/cgo/ffmpeg
In file included from /root/go/pkg/mod/github.com/nareix/[email protected]/cgo/ffmpeg/audio.go:4:0:
./ffmpeg.h:5:10: fatal error: libavresample/avresample.h: No such file or directory
 #include <libavresample/avresample.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

when I execute go get github.com/nareix/joy4/cgo/ffmpeg ,the error appears again.

Then execute the following commands.

sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev

sudo apt install -y libavdevice-dev libavfilter-dev libswscale-dev libavcodec-dev libavformat-dev libswresample-dev libavutil-dev

But the program still reports errors, so what can I do?

@cedricve
Copy link

From ffmpeg 5.x, avresample is no longer available, you might need to downgrade. We are working on modifying it to work with later ffmpeg versions. https://github.com/kerberos-io/joy4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants