selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
636 stars 158 forks source link

Compilation problem: undefined reference to `avcodec_parameters_copy' #22

Closed rprata closed 7 years ago

rprata commented 7 years ago

Hi, I tried to compile this project on Ubuntu16.04, however I had this problem: _undefined reference to `avcodec_parameterscopy'

So, what's the libac version and how that you compile libav (configure flags)?

Best Regards, Renan

selsta commented 7 years ago

sudo apt-get install libavformat-dev libavcodec-dev

Does that help?

fstarkenberg commented 7 years ago

I hade the same issue but got it working when using an older commit. git checkout a68e51d9668ff1b4cfb70af1e3ef94001bdc521b worked for me.

selsta commented 7 years ago

That means you are using an old version of FFmpeg.

fstarkenberg commented 7 years ago

ffmpeg version 2.8.11-0ubuntu0.16.04.1. That makes sense and is probably to be expected by an LTS release.

rprata commented 7 years ago

@selsta, you should inform the ffmpeg minimum version in your README. I updated here and worked. Thank you.