Ubuntu 18.06 FFmpeg 编译安装

2024-07-25 457 0

sudo apt-get update && sudo apt-get -y install \
  autoconf \
  automake \
  build-essential \
  cmake \
  pkg-config \
  zlib1g-dev \
  wget \
  git-core \
  libtool \
  libass-dev \
  libfreetype6-dev \
  libxvidcore-dev \
  libtheora-dev \
  libvorbis-dev  \
  libmp3lame-dev \
  libfdk-aac-dev \
  libx264-dev \
  libx265-dev \
  libnuma-dev
wget https://ffmpeg.org/releases/ffmpeg-7.0.1.tar.xz
tar xf ffmpeg-7.0.1.tar.xz

./configure \
  --prefix=/usr/local/ffmpeg \
  --enable-gpl \
  --enable-version3 \
  --enable-nonfree \
  --enable-postproc \
  --enable-pthreads \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libfdk-aac \
  --enable-libx264 \
  --enable-libx265 \
  --enable-libtheora \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libopus \
  --enable-libxvid \
  --enable-libass

make -j 8 && make install

root@store53:~# cat /etc/ld.so.conf.d/ffmpeg.conf 
/usr/local/ffmpeg/lib
root@store53:~# ldconfig

root@store53:~# vim /etc/profile.d/ffmpeg.sh
export PATH=/usr/local/webserver/ffmpeg/bin/:$PATH

root@store53:~# source /etc/profile

相关文章

OpenResty ModSecurity 编译
vCenter 7.0 禁用 vSphere 集群服务 (vCLS)
ESXI 7.0 分布式交换机 LACP 配置
yum 和 apt-get 安装指定版本
DELL R640 RAC0504 无机柜可显示
MacBook系统升级到Sequoia15.1 SSH密钥无权限解决

发布评论