first compile on refresh installed ubuntu 24.04 (eos8)
when ./configure encounter some error
./configure --prefix=/home/fu/ffmpeg-6.1.3 --disable-static --enable-shared --enable-libfdk-aac --enable-debug=3 --enable-libx264 --enable-filter=delogo --enable-gpl --enable-nonfree --enable-libopus
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
fu@eos:~/Downloads/FFmpeg-n6.1-1.3$ sudo apt install nasm
fu@eos:~/Downloads/FFmpeg-n6.1-1.3$ ./configure --prefix=/home/fu/ffmpeg-6.1.3 --disable-static --enable-shared --enable-libfdk-aac --enable-debug=3 --enable-libx264 --enable-filter=delogo --enable-gpl --enable-nonfree --enable-libopus
ERROR: libfdk_aac not found
sudo apt-get install -y libfdk-aac-dev
ERROR: opus not found using pkg-config
sudo apt-get install libopus-dev
ERROR: x264 not found using pkg-config
sudo apt-get install libx264-dev
after above there is no error for now.
you can also install ffmpeg via
sudo apt install ffmpeg
if u dont know where ffpmeg is installed, you lookup by
ffmpeg -h
lookup device name by
fu@eos:/mnt$ ffmpeg -hide_banner -devices
Devices:
D. = Demuxing supported
.E = Muxing supported
--
DE alsa ALSA audio output
E caca caca (color ASCII art) output device
DE fbdev Linux framebuffer
D iec61883 libiec61883 (new DV1394) A/V input device
D jack JACK Audio Connection Kit
D kmsgrab KMS screen capture
D lavfi Libavfilter virtual input device
D libcdio
D libdc1394 dc1394 v.2 A/V grab
D openal OpenAL audio capture device
E opengl OpenGL output
DE oss OSS (Open Sound System) playback
DE pulse Pulse audio output
E sdl,sdl2 SDL2 output device
DE video4linux2,v4l2 Video4Linux2 output device
D x11grab X11 screen capture, using XCB
E xv XV (XVideo) output device
因为 重装了 brew 导致缺失了依赖, 程序崩溃
mac 下编译 ffmpeg
我们编译FFmpeg集成fdk-aac, x264, x265
brew install yasm sdl2 fdk-aac x264 x265
查看是否安装成功
➜ ~ brew list | grep -E 'fdk|x26|sdl'
fdk-aac
sdl2
x264
x265