HydrogenAudio

Digital Audio/Video => General A/V => Topic started by: Knot1983 on 2019-08-27 09:39:05

Title: libavcodec/libfdk-aacenc.c error while compiling ffmpeg
Post by: Knot1983 on 2019-08-27 09:39:05
Hello!
I've been suggested to write in this forum because of my problem with libfdk-aacenc.c error while compiling ffmpeg.

Summarizing:
I'm trying to install FFMPEG on my Raspeberry following this procedure: https://gist.github.com/adddog/d82581faf10d666d35b9771eaa65d5ac.

While doing this step of the procedure:

Code: [Select]
sudo apt-get install -y xserver-xorg-dev libxext-dev build-essential libxi-dev libglu1-mesa-dev libglew-dev
wget http://www.ijg.org/files/jpegsrc.v9c.tar.gz
tar xvfz jpegsrc*
cd jpeg-9c
./configure --enable-shared --prefix=$CONFIGURE_PREFIX
make -j4
sudo make install

I'm getting this error while compiling:

Code: [Select]
libavcodec/libfdk-aacenc.c:289:34: error: ‘AACENC_InfoStruct {aka struct <anonymous>}’ has no member named ‘encoderDelay’; did you mean ‘nDelay’?

Can you please help me?  :(
Title: Re: libavcodec/libfdk-aacenc.c error while compiling ffmpeg
Post by: nu774 on 2019-08-27 10:02:49
There was a major API change on libfdk-aac side (FDKv2) on 2018-8-31, and the error is because you are using recent libfdk-aac and old ffmpeg that does not yet support newer API.

You need ffmpeg at least newer than this commit:

commit ffb9b7a6bab6c6bfd3dd9a7c32e3724209824999
Author: Martin Storsjö <martin@martin.st>
Date:   Tue Sep 4 11:29:37 2018 +0300


Title: Re: libavcodec/libfdk-aacenc.c error while compiling ffmpeg
Post by: Knot1983 on 2019-08-27 10:18:56
Hi nu774 . Can you help me to understand which step shall I update of this procedure? (
 https://gist.github.com/adddog/d82581faf10d666d35b9771eaa65d5ac)

While failing, I was doing steps from 54 to 58. Shall I change the release in line 54? Or remove/add anything in line 56 (.configure)

Thanks a lot!

Regards!
Title: Re: libavcodec/libfdk-aacenc.c error while compiling ffmpeg
Post by: nu774 on 2019-08-27 11:00:56
I can't answer your question because I don't know why the script specifically fetches 3.4 branch of ffmpeg.
Alternatively, you can fetch older release of fdk-aac from here: https://github.com/mstorsjo/fdk-aac/archive/v0.1.6.tar.gz
Title: Re: libavcodec/libfdk-aacenc.c error while compiling ffmpeg
Post by: Knot1983 on 2019-08-27 11:04:33
How to fetch old release? Can you explain me the procedure?

Thanks
Title: Re: libavcodec/libfdk-aacenc.c error while compiling ffmpeg
Post by: nu774 on 2019-08-27 14:00:55
I'm under no obligation to feed you from a spoon, don't PM me about this.
Why don't you ask the guy who wrote it?
Title: Re: libavcodec/libfdk-aacenc.c error while compiling ffmpeg
Post by: Knot1983 on 2019-08-27 14:11:54
I asked him but it seems to be worst than you to give advice. If you don't want to give me support it doesn't matter. I don't like people behaving like you. I prefer to don't solve the issue rather than crying to get your help.

The reason why I'm pushing you via PM is because it's more than a week trying to install this package but unfortunately the code is bugged. If the code would have been bug-free I would not have any reason to open this post.

At some point if I'll not solve the issue alone I'll escalate to someone having a higher rule in order to educate who write open source code on how to correctly answer users like me.

Thanks a lot! Really!