A week ago I was able to install MakeMKV 1.10.5 on an Ubuntu 16.04 system without issue. Yesterday, the installation failed while running configure in the OSS directory, with the error message:
configure: error: The libavcodec library is too old. Please get a recent one from http://www.ffmpeg.org
. I was using the latest version (3.3) from ffmpeg.org, so I had a difficult time believing this. The only difference I can detect between now and a week ago is ffmpeg went from 3.2.? to 3.3.
Guessing that configure is not accurately detecting the libavcodec version number, I commented out the version check (lines 15969 - 15971) from configure I was able to complete the installation and am currently transcoding the BD of A Clockwork Orange.
I got this exact same problem today. Downloaded and built ffmpeg 3.3, installed, and when I went to build makemkv-oss-1.10.5 it failed to configure claiming libavcodec was too old.
...
INSTALL libavutil/ffversion.h
INSTALL libavutil/libavutil.pc
brion@lightyear:~/Downloads/makemkv/ffmpeg-3.3$ cd ../makemkv-oss-1.10.5/
brion@lightyear:~/Downloads/makemkv/makemkv-oss-1.10.5$ PKG_CONFIG_PATH=/tmp/ffmpeg/lib/pkgconfig ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for -objcopy... no
checking for objcopy... objcopy
checking for -ld... /usr/bin/ld -m elf_x86_64
checking for a BSD-compatible install... /usr/bin/install -c
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress2 in -lz... yes
checking openssl/opensslconf.h usability... yes
checking openssl/opensslconf.h presence... yes
checking for openssl/opensslconf.h... yes
checking for AES_encrypt in -lcrypto... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ffmpeg... yes
checking whether LIBAVCODEC_VERSION_MAJOR is declared... yes
checking LIBAVCODEC_VERSION_MAJOR... 57
checking for AVFrame.nb_samples... yes
checking whether AV_SAMPLE_FMT_U8P is declared... yes
checking for avcodec_encode_audio2... no
configure: error: The libavcodec library is too old. Please get a recent one from http://www.ffmpeg.org
brion@lightyear:~/Downloads/makemkv/makemkv-oss-1.10.5$
avcodec_encode_audio2 is definitely in the code of ffmpeg 3.3
And now, several months later, I decide to upgrade to 1.10.8, not knowing that this will be impossible. Of course ignorant of this issue.
I get the same libavcodec version too old detection fault, or LIBAVCODEC_MAJOR_VERSION wrong.
I have tried several rebuilds of several ffmpeg versions: 3.4.1, 3.3.3, 2.7.4 (?, not sure, it was the one that worked before).
I have tried to roll back to makemkv 1.9.9 - this one worked before. Now this one fails with "application failed to initialize" when I try to start it.
This started because of an attempt to see if makemkv could encode atmos truehd from a file I have here into lpcm. I decided to use ffmpeg command line for this instead, it works fine.
But I need makemkv to be able to get bd disks ripped to the hd, and I need atmos truehd working for this. This does not work without compiling with ffmpeg.
An updated guide for compiling and installing makemkv, one that actually works, would be appreciated.
snurre wrote:And now, several months later, I decide to upgrade to 1.10.8, not knowing that this will be impossible. Of course ignorant of this issue.
I get the same libavcodec version too old detection fault, or LIBAVCODEC_MAJOR_VERSION wrong.
I have tried several rebuilds of several ffmpeg versions: 3.4.1, 3.3.3, 2.7.4 (?, not sure, it was the one that worked before).
I have tried to roll back to makemkv 1.9.9 - this one worked before. Now this one fails with "application failed to initialize" when I try to start it.
This started because of an attempt to see if makemkv could encode atmos truehd from a file I have here into lpcm. I decided to use ffmpeg command line for this instead, it works fine.
But I need makemkv to be able to get bd disks ripped to the hd, and I need atmos truehd working for this. This does not work without compiling with ffmpeg.
An updated guide for compiling and installing makemkv, one that actually works, would be appreciated.
If someone is still reading:
Any idea how to roll back to version 1.9.9 using ffmpeg 2.7.2?
Seems the forum and the software is dead, very unfortunate, as this is the only way to legally watch bd movies in a proper way.
Good News, everyone! I think I found the problem (more or less) and a solution!
The problem: The guide makes you compile a full ffmpeg with a lot of shit that we don't need at all. In this case some CUDA Hardware-Acceleration-Support (used for video-decoding) is somehow getting in the way.
The solution: Disable (almost) everything we don't need when configuring ffmpeg:
This will only build the libraries and the encoders we need, no ffmpeg binaries or documentation. I wasn't really able to figure out which decoders makemkv needs, so I had to enable all of them, but --disable-autodetect still keeps unneeded stuff like CUDA disabled.
There is a linker dependency ordering issue at the root of this: When checking on the various bits required to compile the OSS portion of MKV, the library 'libavutil.a' is being injected too far down the link order.
Not sure what controls this as AUTOCONF is used. Trying to peel the onion. The offending (configuration test) sequence that fails to compile is: