ffmpeg 编译参数说明

安装msys2 64位的用32位的,安装软件
pacman -S mingw-w64-i686-gcc
pacman -S make
pacman -S diffutils
pacman -S yasm
pacman -S autoconf automake libtool

下面的都可以不下载,通过pacman安装,下面也有说明
编译x264
ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
必须加上host,不然提示No working C compiler found

./configure –host=mingw32-i386 –enable-shared
make -j
make install

frei0r:滤镜效果
http://www.piksel.no/frei0r/releases/frei0r-plugins-1.3.tar.gz

./configure –host=mingw32-i686
这个好像还有些依赖我并不用这个功能,所以就没有编译
去掉–enable-frei0r

gnutls:加密协议库,实现了 SSL、TLS 和 DTLS 协议和相关技术
我也可以不用,需要用的时候我再来慢慢编译
–enable-gnutls

FreeType:
http://downloads.sourceforge.net/freetype/freetype-2.8.tar.bz2

libass:轻量级的对ASS / SSA格式字幕进行渲染的函数库.该库使用C编写,效率较高.据官方说明,LibASS和VSFilter兼容性最好
需要freetype
https://github.com/libass/libass/releases/download/0.13.6/libass-0.13.6.tar.xz
–enable-libass

aac
https://nchc.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.5.tar.gz
./configure –host=mingw32-i686
make -j
make install

libbluray:是专为Blu-Ray光盘播放的开源库,用于媒体播放器

–enable-libbluray

libbs2b:鲍尔立体声对双耳DSP
https://github.com/alexmarsev/libbs2b
./autogen.sh
需要libsndfile
http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
见下面的pcm安装,不要通过源码编译不然要冲突
./configure –host=mingw32-i686
make -j
make install
make -j
make install

caca:表示彩色字符模式
我现在不用

fontconfig

我发现可以通过pacman安装这些软件,自己注意下版本就好了
pacman -S mingw-w64-i686-fontconfig
pacman -S mingw-w64-i686-libgme
pacman -S mingw-w64-i686-gsm
pacman -S mingw-w64-i686-libmodplug
pacman -S mingw-w64-i686-lame
pacman -S mingw-w64-i686-opencore-amr
pacman -S mingw-w64-i686-openh264
pacman -S mingw-w64-i686-x265
pacman -S mingw-w64-i686-openjpeg
pacman -S mingw-w64-i686-opus
pacman -S mingw-w64-i686-snappy
pacman -S mingw-w64-i686-libtheora
pacman -S mingw-w64-i686-speex
pacman -S mingw-w64-i686-twolame
pacman -S mingw-w64-i686-libvorbis
pacman -S mingw-w64-i686-libvpx
pacman -S mingw-w64-i686-wavpack
pacman -S mingw-w64-i686-libwebp
pacman -S mingw-w64-i686-xvidcore
pacman -S mingw-w64-i686-x264-git

ilbc
pacman 没有
–enable-libilbc

libmfx:英特尔 QSV硬解码器
–enable-libmfx

librtmp:rtmp协议暂时不用
–enable-librtmp

soxr:它可以用于对PCM编码的音频进行重新采样
–enable-libsoxr

vidstab:使用vid.stab稳定
–enable-libvidstab

xavs:中国的音频视频标准。该项目旨在实现高质量的AVS编码器和解码器
–enable-libxavs

zimg:根据请求实时处理图片,并且进行压缩和存储,
–enable-libzimg

./configure –enable-gpl –enable-version3 –enable-cuda –enable-cuvid –enable-d3d11va –enable-dxva2 –enable-libmfx –enable-nvenc –enable-avisynth –enable-bzlib –enable-fontconfig –enable-frei0r –enable-gnutls –enable-iconv –enable-libass –enable-libbluray –enable-libbs2b –enable-libcaca –enable-libfreetype –enable-libgme –enable-libgsm –enable-libilbc –enable-libmodplug –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libopenh264 –enable-libopenjpeg –enable-libopus –enable-librtmp –enable-libsnappy –enable-libsoxr –enable-libspeex –enable-libtheora –enable-libtwolame –enable-libvidstab –enable-libvo-amrwbenc –enable-libvorbis –enable-libvpx –enable-libwavpack –enable-libwebp –enable-libx264 –enable-libx265 –enable-libxavs –enable-libxvid –enable-libzimg –enable-lzma –enable-zlib

./configure –enable-gpl –enable-version3 –enable-cuda –enable-cuvid –enable-d3d11va –enable-dxva2 –enable-nvenc –enable-avisynth –enable-bzlib –enable-fontconfig –enable-iconv –enable-libbs2b –enable-libfreetype –enable-libgme –enable-libgsm –enable-libmodplug –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libopenh264 –enable-libopenjpeg –enable-libopus –enable-libsnappy –enable-libspeex –enable-libtheora –enable-libtwolame –enable-libvo-amrwbenc –enable-libvorbis –enable-libvpx –enable-libwavpack –enable-libwebp –enable-libx264 –enable-libx265 –enable-libxvid –enable-lzma –enable-zlib

猜你喜欢

转载自blog.csdn.net/singleroot/article/details/73330591