I need to compile ffmpeg from source for CentOS. The goal it to convert MP3 and WAV to FLAC. I tried to compile ffmpeg with this guide: https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
and it worked fine, but took approximately 20min and compiled a bunch unnecessary things, even thought I did not used next options as recommended in guide, but used:
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure
--prefix="/opt/tmg/ffmpeg_build"
--pkg-config-flags="--static"
--extra-cflags="-I/opt/tmg/ffmpeg_build/include"
--extra-ldflags="-L/opt/tmg/ffmpeg_build/lib"
--extra-libs=-lpthread
--extra-libs=-lm
--bindir="/opt/tmg/ffmpeg_build/bin"
--enable-gpl
--enable-libfreetype
My question is what do I need for MP3 and WAV to FLAC and how do I compile just that part?
I found in configuration --disable-all
option, but what do I have to enable?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…