We're trying to recompile ffmpeg project using javacpp and with the --enable-libfdk-aac
enabled, the build works, but we can't use libfdk_aac to decode an audio_stream.
We are calling : avcodec_find_decoder_by_name("libfdk_aac")
and getting the following result:
Exception: avcodec_find_decoder() error: Unsupported audio format or codec not found: 86018.
We've modified the ccpbuild.sh in the ffmpeg directory in the following way:
Adding the instruction:
--enable-libfdk-aac
in the ENABLE variableGetting the dependency :
download https://github.com/mstorsjo/fdk-aac/tarball/master fdk-aac.tar.gz
Unpacking it:
tar -xzvf ../fdk-aac.tar.gz
Installing it:
cd ../mstorsjo-fdk-aac* autoreconf -fiv ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic make -j $MAKEJ make install
I'm running all this on a macosx platform.
The process seems to be ok, and I can compile the project properly with maven, but then it does not work when I'm calling the codec "libfdk_aac". I was wondering if I'm doing something wrong, or is there any other place where I need to register this codec ? (especially since this is an external library)
Many Thanks