x264
1.1、x264简介
是什么 ?:H.264 codec
开发语言:C
官方主页:https://www.videolan.org/developers/x264.html
源码仓库:https://github.com/mirror/x264
1.2、通过包管理器安装x264
操作系统包管理器仓库安装命令
Allvcpkgofficial
vcpkg install x264
vcpkg install x264:x64-osx
vcpkg install x264:x64-linux
vcpkg install x264:x64-windows
Windowsscoopofficialscoop install x264
WindowsChocolateyofficialchoco install -y advanced-codecs
macOSHomeBrewofficialbrew install x264
GNU/LinuxLinuxBrewofficialbrew install x264
aptofficialsudo apt-get install -y x264
CentOSyumRPMFusionsudo yum install -y x264 x264-devel
dnfRPMFusionsudo dnf install -y x264 x264-devel
openSUSEzypperPackMansudo zypper install -y x264 x264-devel
Alpine Linuxapkofficialsudo apk add x264 x264-dev x264-libs

Arch Linux

ArcoLinux

Manjaro Linux

pacmanofficialsudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm x264
Gentoo LinuxPortageofficialsudo emerge x264
1.3、通过源码安装x264 

step1、安装依赖

下载时cURL
解压时tarbzip2
编译时POSIX shGNU CoreUtilsmakegcc
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用curl命令下载x264源码包 (

curl -LO http://ftp.videolan.org/pub/x264/snapshots/last_stable_x264.tar.bz2

step3、使用tar解压x264源码包

tar vxf last_stable_x264.tar.bz2

step4、进入x264-snapshot-20191204-2245-stable目录,并查看它的内容:

step5、配置、编译、安装

./configure && make && sudo make install
1.4、x264命令
1.5、x264中包含的头文件
1.6、x264中包含的库文件
  • libx264.{a | so | dylib}