当前位置: 首页 > article >正文

windows下ffmpeg源码编译

 参考:windows上使用vs2019和msys64编译 ffmpeg 4.3 | 码农家园 (codenong.com)

 

安装命令:

pacman -S nasm
pacman -S yasm
pacman -S make
pacman -S cmake
pacman -S diffutils
pacman -S pkg-config
pacman -S git

1.编译 x264
将 x264放到home文件下

进入x264目录下

/home/x264

设置编译工具 CC=cl ./configure --enable-shared

编译 make -j16

2. 编译 fdk-aac

使用vc进行编译

nmake -f Makefile.vc 

指定安装目录:nmake -f Makefile.vc prefix=.\install install

将生成的install

粘贴到 

中并修改 (fdk-aac.pc 由 fdk-aac.pc.in得到)

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Fraunhofer FDK AAC Codec Library
Description: AAC codec library
Version:
Libs: -L${libdir} -lfdk-aac
Libs.private:
Cflags: -I${includedir}

3.编译h265

其它可以检测到的cmake 可以换一个名字

编译(出行权限问题,重新用管理员打开vs, 进入msys2重新编译)

./make-Makefiles.sh

同理将目录复制到msys64\usr\local 下

4.编译ffmpeg

CC=cl.exe ./configure --prefix=./install --toolchain=msvc --enable-shared --disable-programs --disable-ffplay --disable-ffmpeg --disable-ffprobe --enable-libx264 --enable-gpl --enable-libfdk-aac --enable-nonfree --enable-libx265


make -j16
make install


http://www.kler.cn/a/157768.html

相关文章:

  • 新知识-Tuple元组的使用
  • 25. Oracle的回收站
  • shell编程-sed命令详解(超详细)
  • android.view.WindowLeaked解决方法
  • 使用Docker本地部署chatgpt
  • 【算法专题】前缀和
  • U2 文法和语言
  • 【Vue】使用 Vue CLI 脚手架创建 Vue 项目(使用GUI创建)
  • 8.Python TCP网络编程入门指南
  • 操作系统——进程同步
  • 如何通过Java的iTextPDF库制作一个PDF表格模板并填充数据
  • Leetcode每日一题学习训练——Python3版(从二叉搜索树到更大和树)
  • 【电机控制】PMSM无感foc控制(六)相电流检测及重构 — 双电阻采样、三电阻采样
  • 实战项目 to do
  • ai绘画Midjourney绘画提示词Prompt教程
  • 【恋上数据结构】二叉堆学习笔记
  • 非标设计之气缸类型
  • 【Node.js】笔记梳理 7 - mongoose
  • [C#]文件的读写-1
  • python3实现定时拉取rabbitmq队列里面的数据,并输出到文件中。