在github上面看到一篇文章,惊呆我了,直接运行一脚本就帮你把ffmpeg集成好ACC、libx265并安装好,根本不用自己操作什么,有这个脚本完全自己想要什么就加什么,下面是git地址:https://github.com/tangingw/libx265_installer.git
脚本内容:
#!/bin/bash
source installer.cfg
function display_message {
clear
echo $1
sleep 5
}
function update_sys {
display_message "Updating Ubuntu using apt-get update"
apt-get update
display_message "Installing required packages"
apt-get install -y autoconf automake build-essential mercurial git libarchive-dev fontconfig checkinstall
apt-get install -y libass-dev libfreetype6-dev libsdl1.2-dev libtheora-dev libgnutls-dev
apt-get install -y libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo libtool libva-dev
apt-get install -y libbs2b-dev libcaca-dev libopenjpeg-dev librtmp-dev libvpx-dev libvdpau-dev
apt-get install -y libwavpack-dev libxvidcore