[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/

相关推荐
心动啊1212 小时前
FFMPeg在Python中的使用
ffmpeg
猿小路8 小时前
视频流熟知
ffmpeg·h.264
chen_2278 小时前
动态桌面方案
c++·qt·ffmpeg·kanzi
GeniuswongAir21 小时前
苹果电脑上启动一个 RTSP 推流,用来做测试
ffmpeg
Benny的老巢1 天前
n8n工作流通过Execute Command用FFmpeg处理音频,报错 stderr maxBuffer length exceeded的解决方案
ffmpeg·音频合成·n8n·n8n工作流·execute command
七夜zippoe2 天前
Spring Data JPA原理与实战 Repository接口的魔法揭秘
java·ffmpeg·事务·jpa·repository
Benny的老巢2 天前
n8n工作流中FFmpeg 视频截取失败排查:文件路径和参数顺序错误解决方案
chrome·ffmpeg·音视频
RockWang.3 天前
【配置】FFmpeg配置环境ubuntu踩坑记录。
ffmpeg
王者鳜錸3 天前
Java使用FFmpeg获取音频文件时长:完整实现与原理详解
java·开发语言·ffmpeg·音频时长
桃杬3 天前
用现代 C++ 封装 FFmpeg:从摄像头采集到 H.264 编码的完整实践
c++·ffmpeg·h.264