[ffmpeg]编译 libx264

步骤

  1. 下载 libx264

    git clone https://code.videolan.org/videolan/x264.git
    cd x264

  2. 环境搭建
    然后在开始菜单中找到并打开 x64 Native Tools Command Prompt for VS 2019 :

    打开 msys2_shell.cmd
    -use-full-path
    这时会打开 MSYS 的新窗口,先把一些汇编依赖安装好:

    pacman -Syu
    pacman -S make
    pacman -S diffutils
    pacman -S yasm
    pacman -S nasm

  3. 编译
    生成工程
    OPTIONS="--enable-shared"
    CC=cl ./configure $OPTIONS --enable-shared --prefix=/build
    编译
    make -j 16
    安装
    make install

清空环境

make clean

参考文献

https://glumes.com/windows-compile-ffmpeg-with-libx264/

相关推荐
Memory_荒年1 天前
FFmpeg:音视频界的“万能瑞士军刀”
ffmpeg
QJtDK1R5a1 天前
V4L2 vs GStreamer vs FFmpeg:Linux多媒体处理的三个层级
linux·运维·ffmpeg
AI视觉网奇4 天前
webrtc 硬编码
ffmpeg·webrtc
九转成圣4 天前
避坑指南:彻底解决 FFmpeg drawtext 烧录多行文本出现“方块(□)”乱码的终极方案
ffmpeg
bbq烤鸡4 天前
ffmpeg精确极速剪辑方案
ffmpeg
小镇学者4 天前
【python】 macos 安装ffmpeg 命令行工具
python·macos·ffmpeg
QMCY_jason4 天前
RK3588平台编译 ffmpeg-rockchip 使用rkmpp rkrga 进行硬件转码
ffmpeg
悢七5 天前
单机部署 OceanBase 集群
数据库·ffmpeg·oceanbase
yy我不解释5 天前
关于FFmpeg的安装使用(m3u8转码MP4)
ffmpeg
Chars-D5 天前
FFmpeg源码深度剖析:架构、模块与转码流水线
架构·ffmpeg