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

相关推荐
≮傷£≯√1 天前
QT配置FFmpeg
开发语言·qt·ffmpeg
Everbrilliant891 天前
Android FFmpeg 实战:从基础到播放器的完整技术解析
android·ffmpeg·ffmepg实战·音视频同步实现·ffmpegpractices·ffmpegpractice·opengl 视频渲染
苏灿烤鱼2 天前
从微信公众号内容到视频号视频:自动化视频生成的技术实现
人工智能·python·ffmpeg
桐桐桐2 天前
视频画面裁剪与尺寸压缩实战:ffmpeg crop/scale 用法与在线替代
ffmpeg·音视频·视频
程序员老陆2 天前
音频为什么不编码成“声卡格式”(例如S16)?因为声卡只负责响,编码器只负责省
ffmpeg·音视频
cpp_learner3 天前
FFmpeg 硬件解码全流程解析
ffmpeg
星花月3 天前
视频压缩为什么会变糊?从码率、分辨率到 H.264/H.265 的参数选择指南
ffmpeg·音视频·h.265·视频编解码·视频
cpp_learner3 天前
FFmpeg 像素格式转换与图像缩放实战
ffmpeg
程序员老陆3 天前
FFmpeg 新编码 API 完全指南:avcodec_send_frame / avcodec_receive_packet
ffmpeg·音视频·编码
cpp_learners4 天前
FFmpeg H264视频编码全流程解析
ffmpeg·音视频