nareix / joy4

Golang audio/video library and streaming server
MIT License
2.66k stars 501 forks source link

Cgo compile error #38

Open OceanW opened 6 years ago

OceanW commented 6 years ago

examples/audio_decode$ go build

github.com/nareix/joy4/cgo/ffmpeg

could not determine kind of name for C.AV_CODEC_FLAG_GLOBAL_HEADER could not determine kind of name for C.av_frame_alloc could not determine kind of name for C.av_packet_unref could not determine kind of name for C.avresample_get_out_samples

How to fix this? Help!

ericxtang commented 6 years ago

Seems like your local libav is not the right version. If you are on a mac, try re-installing ffmpeg with brew.

tehmaze commented 5 years ago

libavresample was initially merged into ffmpeg to be a drop-in replacement for libav, but was never maintained by ffmpeg itself in favor of their own libswresample. According to upstream, libswresample can do everything libavresample can do and more, plus libavresample has been entirely deprecated at the end of last year.