1.centos安装ffmpeg
sudo yum install ffmpeg ffmpeg-devel -y
2.ubuntu安装ffmpeg
sudo apt install ffmpeg
3.windows 下Ubuntu环境(WSL)
win10 WSL(Ubuntu)编译ffmpeg for Android
4.windows下sysm2
Windows下编译FFmpeg 32位和64位DLL
#!/bin/bash
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
PREFIX="./bin-$1"
echo "Install dir: $PREFIX"
./configure \
--prefix=$PREFIX \
#ldlibflags 用于3.0.12版本
--extra-ldlibflags="-static-libgcc" \
--extra-cflags="-I/usr/local/include" \
--extra-ldflags="-L/usr/local/lib" \
--disable-static \
--enable-shared \
#--enable-version3 \
#--enable-w32threads \
#--enable-gpl \
#--enable-x86asm \
make clean
make -j6 #改成你的CPU核心数
make install