Failed in compiling or installing fdk-aac and after that compiling libav with enable lib fdk-aac opt

Hi I am Rupesh from India and I want to use fdk-aac tool to convert mp3 file’s to m4a files and so I tried to compile source code but failed and after that I tried to install rpm file and succeeded but when I entered the command fdk-aac I am getting message as " command not found". I also want to compile libav with enable lib fdk-aac option and so I have again failed.

I tried to compile libav as below

./configure --enable-libfdk-aac --enable-nonfree

I am providing the output of last few lines of make install process below



CC	libavcodec/libfdk-aacenc.o
libavcodec/libfdk-aacenc.c: In function ‘aac_encode_init’:
libavcodec/libfdk-aacenc.c:289:35: error: ‘AACENC_InfoStruct {aka struct <anonymous>}’ has no member named ‘encoderDelay’; did you mean ‘nDelay’?
     avctx->initial_padding = info.encoderDelay;
                                   ^~~~~~~~~~~~
                                   nDelay
make: *** [Makefile:48: libavcodec/libfdk-aacenc.o] Error 1


Please try to suggest how to run fdk-aac command and after that compile libav with enable-libfdk–aac option.

Wherever you got your source, usually there are compile instructions.
I do notice that you’re compiling with a “non-free” flag which suggests it’s proprietary source.

Also,
If you haven’t already checked, before putting in the effort you should know what benefits to expect compared to the freely available pre-compiled codec (Typically from Packman when on an openSUSE machine).

TSU

I have also installed the following packages which is downloaded from software.opens use.org

fdk-aac-0.1.6-lp150.12.1.src.rpm
libfdk-aac1-0.1.6-lp150.12.1.x86_64.rpm

Upon installing there are no errors I mean the installation was successful. After sometime I have tried to install the above packages again and this time the first package installed successfully and for the second package I got error as “the package is already installed”.

From the above scenario I can say that libfdk-aac is installed properly and fdk-aac package is not installed properly.

I want to use fdk-aac command without any errors. At the same time I want to compile libav with enable libfdk-aac option.

On Wed 12 Dec 2018 08:16:03 AM CST, rupeshforu3 wrote:

I have also installed the following packages which is downloaded from
software.opens use.org

fdk-aac-0.1.6-lp150.12.1.src.rpm
libfdk-aac1-0.1.6-lp150.12.1.x86_64.rpm

Upon installing there are no errors I mean the installation was
successful. After sometime I have tried to install the above packages
again and this time the first package installed successfully and for the
second package I got error as “the package is already installed”.

From the above scenario I can say that libfdk-aac is installed properly
and fdk-aac package is not installed properly.

I want to use fdk-aac command without any errors. At the same time I
want to compile libav with enable libfdk-aac option.

Hi
You assumptions are incorrect, fdk-acc is a src rpm (it’s the package
the rpm is built from), so have you looked down in /usr/src/packages?

There is no packaged binary in libfdk-aac, it’s a library.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

I have also searched for fdk word in /usr directory and found files starting with lib and containing word fdk but unable to find binary called fdk-aac.

Surprisingly when I searched for “fdk-aac for Linux” I found source code tar file and in that they specified if you compile this source code you can get fdk-aac binary file and also they specified it can be compiled in cygwin of Windows.

Even someone has compiled source code of fdk-aac and created binary for it in windows.

Hi
The openSUSE package does not contain any binary file, it’s a library used by other packages, compile yourself if you need a binary. Also be aware just because a package is called xyz that if a binary file(s) exist it is called xyz.

Hi
There is a different program which by all accounts is what you need;

OK finally I got fdkaac command line utility for Linux but I want to use for converting mp3 files to m4a files recursively using a script.

Please try to reply to the following thread

https://forums.opensuse.org/showthread.php/534053-Converting-mp3-files-to-opus-and-m4a-recursively-using-command-line-tools-and-scripts-in-Linux