Ubuntu 18.06 FFmpeg 编译安装

2024-07-25 311 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

相关文章

MacBook系统升级到Sequoia15.1 SSH密钥无权限解决
haproxy 负载rabbitmq集群 报client unexpectedly closed TCP connection
Nginx Apache CORS OPTIONS预检请求配置
windows 2012 命令行批量修改文件权限 删除
CICD持续部署 Jenkins 部署
CICD持续集成 SonarQube 代码检测部署

发布评论