所需软件
准备
编译yasm
tar-zxvfyasm-1.2.0.tar.gz
准备
编译FFmpegcd @H_403_13@ffmpeg@H_403_13@PKG_CONFIG_PATH=/@H_403_13@usr/@H_403_13@local/@H_403_13@lib/@H_403_13@pkgconfig export@H_403_13@ PKG_CONFIG_PATH 或把上面2行加到vim~/.bash_profile
source~/.bash_profile./@H_403_13@configure --extra-cflags=-I/@H_403_13@usr/@H_403_13@local/@H_403_13@include \ --extra-ldflags=-L/@H_403_13@usr/@H_403_13@local/@H_403_13@lib --bindir=/@H_403_13@usr/@H_403_13@local/@H_403_13@bin \ --extra-libs="-ldl" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libx264 --enable-shared hash @H_403_13@-r . ~/@H_403_13@.bash_profileecho$PKG_CONFIG_PATH
接着输入ffmpeg检查是否安装成功,
如果出现如下错误:
error while loading shared libraries: libavdevice.so.54
解决方法: