Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, MacPorts, Nix, pacman, scoop, winget 安装 x264

查看 x264 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install x264

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install x264

MacPorts ports tree · multimedia/x264/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add x264

Alpine Linux edge package indexes · x264 · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install x264

Debian stable package indexes · x264 · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#x264

nixpkgs package indexes · pkgs/by-name/x2/x264/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S x264

Arch Linux sync databases · x264 · 来源: geo.mirror.pkgbuild.com

Windows

Scoop已验证 · 92%
scoop install main/x264

Scoop official bucket manifest trees · bucket/x264.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id VideoLAN.x264 -e

Windows Package Manager source index · VideoLAN.x264 · 来源: cdn.winget.microsoft.com

概览

软件包摘要

H.264/AVC encoder

命令和别名

  • x264

历史

项目历史与用法

x264 is VideoLAN's open-source H.264/MPEG-4 AVC encoder library and command-line encoder. It is one of the defining software video encoders of the broadband-video era: a GPL project that became both a default tool for enthusiasts and a commercially licensed engine inside many professional products.

The project began in 2004, shortly after the first H.264/AVC specification was released in May 2003. x264's history is bound to VideoLAN and FFmpeg, because VideoLAN hosts the source community while FFmpeg exposes x264 through `libx264`, making it available to a huge base of transcoding workflows.

项目历史

x264 was started to produce an open-source encoder that implemented the H.264/AVC standard with high quality and high performance. The project's commonly cited developer lineage begins with Laurent Aimar, then Loren Merritt, and later includes Fiona Glaser, Anton Mitrofanov, Henrik Gramner, and other contributors who worked heavily on psycho-visual tuning, rate control, threading, and hand-optimized assembly.

A major institutional turn came in 2010 with the formation of x264, LLC. The community kept the GPL version available, while the company provided commercial licensing for users who wanted to ship x264 in proprietary products without releasing their own source under the GPL. That dual path helped x264 remain both a free-software project and a commercial codec product.

采用历史

x264's adoption accelerated because it arrived when H.264 was becoming the practical common denominator for web video, Blu-ray workflows, mobile devices, and streaming services. The x264 licensing site describes it as the most widely deployed AVC encoder and says its use expanded into billions of devices and commercially licensed products.

FFmpeg integration was decisive for package-manager users. FFmpeg documents x264 as an external library for H.264 encoding, enabled with `--enable-libx264`, and many frontends and scripts use FFmpeg rather than invoking the `x264` binary directly. That relationship made x264 a core codec package even on systems where users only see it through a larger media pipeline.

使用方式

The standalone `x264` command commonly reads raw or YUV4MPEG video and writes an H.264 elementary stream or supported container output. Its famous operational model is preset plus quality target: users pick a speed preset, choose CRF or bitrate/rate-control settings, and let the encoder balance compression effort against time.

In daily use x264 is also a library dependency. Video tools call it through APIs such as FFmpeg's `libx264` wrapper to create H.264 streams for archival, streaming ladders, screen recordings, social video, and compatibility-focused transcodes. Its GPL licensing matters operationally: enabling it can change the license obligations of the resulting FFmpeg build.

为什么软件包爱好者会关心

x264 is a package-nerd landmark because it made 'software H.264 encoder' mean something specific: a small command and library with deep SIMD assembly, mature rate control, and highly tuned presets. It became a benchmark against which later encoders, including HEVC encoders, were compared.

It is also a classic example of codec packaging complexity. The same upstream can be an executable, a linkable library, a GPL licensing trigger, and a commercially licensed component, so package metadata around x264 often carries more legal and ecosystem meaning than a normal CLI tool.

时间线

  • 2003-05: The first H.264/AVC specification is released.
  • 2004: The x264 project starts as an open-source AVC encoder.
  • 2008: Fiona Glaser joins the x264 development effort, one of several contributors associated with later quality and performance work.
  • 2010: x264, LLC is formed to provide commercial licensing while GPL development continues.
  • 2010s: x264 becomes deeply embedded in FFmpeg-based transcoding and professional encoding workflows.

Related projects

  • VideoLAN hosts the x264 source project and is also known for VLC.
  • FFmpeg integrates x264 through `libx264` and is the path by which many users invoke it.
  • x265 is the HEVC successor-era encoder that explicitly leverages ideas and optimizations from x264.
  • OpenH264 is a separate H.264 encoder project with different licensing and deployment tradeoffs.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
x264cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本r3222
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.videolan.org/developers/x264.html

安装元数据

软件包元数据

软件包键brew:x264
版本r3222
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/x264
主页https://www.videolan.org/developers/x264.html
仓库https://code.videolan.org/videolan/x264
上游文档https://www.videolan.org/developers/x264.html
许可证GPL-2.0-or-later
源码归档https://code.videolan.org/videolan/x264.git
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namex264
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libx264-164 2:0.164.3108+git31e19f9-2+b1

x264 video coding library

https://www.videolan.org/developers/x264.html

sudo apt install libx264-164
  • Section: libs
  • Architecture: amd64
  • Source Package: x264
  • 1 依赖
  • normalized package name match
  • 匹配方式:X264
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libx264-164 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libx264-dev 2:0.164.3108+git31e19f9-2+b1

development files for libx264

https://www.videolan.org/developers/x264.html

sudo apt install libx264-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: x264
  • 1 依赖
  • normalized package name match
  • 匹配方式:X264
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libx264-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

x264 2:0.164.3108+git31e19f9-2+b1

video encoder for the H.264/MPEG-4 AVC standard

https://www.videolan.org/developers/x264.html

sudo apt install x264
  • Section: graphics
  • Architecture: amd64
  • Source Package: x264
  • 7 依赖
  • normalized package name match
  • 匹配方式:X264
Debian stable package indexes · deb.debian.org · Debian stable package indexes: x264 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

x264

nix profile install nixpkgs#x264
  • normalized package name match
  • 匹配方式:X264
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/x2/x264/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libx264-164 2:0.164.3108+git31e19f9-1

x264 video coding library

https://www.videolan.org/developers/x264.html

sudo apt install libx264-164
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: x264
  • 1 依赖
  • normalized package name match
  • 匹配方式:X264
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libx264-164 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libx264-dev 2:0.164.3108+git31e19f9-1

development files for libx264

https://www.videolan.org/developers/x264.html

sudo apt install libx264-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: x264
  • 1 依赖
  • normalized package name match
  • 匹配方式:X264
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libx264-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

x264 2:0.164.3108+git31e19f9-1

video encoder for the H.264/MPEG-4 AVC standard

https://www.videolan.org/developers/x264.html

sudo apt install x264
  • Section: universe/graphics
  • Architecture: amd64
  • 7 依赖
  • normalized package name match
  • 匹配方式:X264
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: x264 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

x264 0.164.3108-r1

Free library for encoding H264/AVC video streams

https://www.videolan.org/developers/x264.html

sudo apk add x264
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: x264
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:X264
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: x264 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

x264-bash-completion 0.164.3108-r1

Bash completions for x264

https://www.videolan.org/developers/x264.html

sudo apk add x264-bash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: x264
  • normalized package name match
  • 匹配方式:X264
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: x264-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

x264-dbg 0.164.3108-r1

Free library for encoding H264/AVC video streams (debug symbols)

https://www.videolan.org/developers/x264.html

sudo apk add x264-dbg
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: x264
  • 1 依赖
  • normalized package name match
  • 匹配方式:X264
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: x264-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

x264-dev 0.164.3108-r1

Free library for encoding H264/AVC video streams (development files)

https://www.videolan.org/developers/x264.html

sudo apk add x264-dev
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: x264
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:X264
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: x264-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

x264-libs 0.164.3108-r1

Free library for encoding H264/AVC video streams (libraries)

https://www.videolan.org/developers/x264.html

sudo apk add x264-libs
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: x264
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:X264
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: x264-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

x264 3:0.165.r3222.b35605a-2

Open Source H264/AVC video encoder

https://www.videolan.org/developers/x264.html

sudo pacman -S x264
  • License: GPL-2.0-only
  • Architecture: x86_64
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:X264
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: x264 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

x264

sudo port install x264
  • normalized package name match
  • 匹配方式:X264
MacPorts ports tree · api.github.com · MacPorts ports tree: multimedia/x264/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/x264

scoop install main/x264
  • normalized package name match
  • 匹配方式:X264
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/x264.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

VideoLAN.x264

winget install --id VideoLAN.x264 -e
  • normalized package name match
  • 匹配方式:X264
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: VideoLAN.x264 from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment