ffmpeg version ok?

The place to discuss linux version of MakeMKV
Post Reply
chihwahli
Posts: 19
Joined: Wed Mar 19, 2025 7:57 pm

ffmpeg version ok?

Post by chihwahli »

Installed the MakeMKV with the instructions, but cannot install FFMpeg latest version:
viewtopic.php?t=224

My version after a default Ubuntu 24.04 install:
dpkg -l "*avcodec*" | grep ii
ii libavcodec-dev:amd64 7:6.1.1-3ubuntu5 amd64 FFmpeg library with de/encoders for audio/video codecs - development files
ii libavcodec60:amd64 7:6.1.1-3ubuntu5 amd64 FFmpeg library with de/encoders for audio/video codecs - runtime files
ii libavcodec60:i386 7:6.1.1-3ubuntu5 i386 FFmpeg library with de/encoders for audio/video codecs - runtime files

It is older than the version mentioned in the makeMKV install instructions.
FFMpeg has version 8.1.2

Ubuntu package searcher, tells that these are the lastest ones for Ubuntu. They have been tested etc.
https://packages.ubuntu.com/search?keyw ... ection=all

I tried to install the latest version from FFMpeg, but get error:
./configure --prefix=/tmp/ffmpeg --enable-static --disable-shared --enable-pic
nasm not found or too old. Please install/update nasm or use --disable-x86asm for a build without hand-optimized assembly.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
./configure --prefix=/tmp/ffmpeg --enable-static --disable-shared --enable-pic --enable-libfdk-aac
nasm not found or too old. Please install/update nasm or use --disable-x86asm for a build without hand-optimized assembly.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
so, I am ok, or ?
tomty89
Posts: 176
Joined: Sun Dec 13, 2020 8:48 am

Re: ffmpeg version ok?

Post by tomty89 »

So, is nasm installed after all? https://packages.ubuntu.com/noble/nasm
so, I am ok, or ?
You will have to compile a recent ffmpeg (at least 2.0) if you need a FLAC encoder that handles 24-bit audio. Also you will have to enable libfdk-aac support in ffmpeg in order to use AAC encoder. Starting from version 1.12.1 DTS-HD decoding is handled by ffmpeg as well, so you would need a recent one.
So, depends on whether you are planning to transcode on-the-fly (during ripping) DTS-HD stream into another codec and/or audio stream (of any codec) into an 24-bit FLAC or AAC stream. (If you are not even going to make MakeMKV transcode on-the-fly at all, then it shouldn't matter.)

(EDIT: after reading it more carefully it seems that the guide is somewhat outdated. In other words, it's unclear whether ffmpeg 6.1.1 is considered "not recent" anyway. You might need to check the ffmpeg release notes to find out about DTS-HD and 24-bit FLAC support. But you probably need to compile your own ffmpeg build for FDK-AAC encoder anyway. No idea if MakeMKV could leverage the perhaps-inferior builtin AAC encoder either.)

(Btw, note that if you have already compiled and installed makemkv-oss, you'll need to do it again with the as instructed in the guide after building the latest ffmpeg.)
chihwahli
Posts: 19
Joined: Wed Mar 19, 2025 7:57 pm

Re: ffmpeg version ok?

Post by chihwahli »

ok, then I stay with my Ubuntu FFMpeg version that was pre-compiled.
https://superuser.com/questions/1914131 ... -on-ubuntu

It seems it can break software. If software is upgraded from one major to another major version: 6.x to 7.x. Some programs calls might have changed, deprecated.
tomty89
Posts: 176
Joined: Sun Dec 13, 2020 8:48 am

Re: ffmpeg version ok?

Post by tomty89 »

If you follow the guide correctly, the new ffmpeg you made would only be used by MakeMKV (after you rebuild the oss part as instructed), as it is not installed to your system but "statically linked" from MakeMKV, which is kinda like "fusing it into MakeMKV".

But yeah most likely you do not really need to anyway. Can wait until you literally want the specfic transcoding (and that it doesn't seem to work). The transcoding function itself takes a bit of knowledge to configure, IIRC. Kind of an "advanced feature", so to speak.
Post Reply