FFmpeg编译:Windows平台MSYS2环境编译

编译环境 操作系统: Windows 11 编译环境: MSYS2 + UCTR64 编译软件: pacman -S mingw-w64-ucrt-x86_64-toolchain pacman -S git cmake 源码下载 ffmpeg ffmpeg-5.1.6.tar.xz fdk-aac fdk-aac-2.0.3.tar.gz x264 git clone https://gitee.com/MediaSource/x264.git x265 git clone https://gitee.com/MediaSource/x265.git 源码编译 x264编译 mkdir x264/build;cd x264/build ../configure --prefix=$PWD/../../library --enable-static --disable-cli --enable-strip make -j8 make install x265编译 mkdir x265/source/build;cd x265/source/build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=$PWD/../../../library \ -DENABLE_SHARED=FALSE \ -DENABLE_CLI=FALSE make -j8 make install fdk-aac编译 tar -xf fdk-aac-2.0.3.tar.gz mkdir fdk-aac-2.0.3/build;cd fdk-aac-2.0.3/build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=$PWD/.