当前位置:网站首页>mingw-w64、msys和ffmpeg的配置与编译
mingw-w64、msys和ffmpeg的配置与编译
2022-06-23 05:31:00 【羊毛韭菜】
mingw-w64、msys和ffmpeg的配置与编译
下载mingw-w64离线安装包:[https://www.cr173.com/soft/132367.html]
下载完解压,然后把mingw-w64\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64路径下的所有文件拷贝到C盘就可以了,目录如下:C:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64;
测试安装是否成功:
1、打开cmd,进入mingw64\bin目录,
2、输入一下命令gcc -v
3、将显示gcc的版本等信息,如果看到此信息,表示安装成功。
下载msys:[http://www.mingw.org/wiki/MSYS/]
直接点击安装,我安装在C盘,安装过程中会有一些提示,yes就行(包括黑窗口的也是 y)
然后到C:\msys\1.0\etc目录,复制fstab.sample为fstab,然后修改为如下(此文本上面的内容不变):
#You can use a # as the first character on the line as a comment indicator.
#Blank lines are ignored.
#Win32_Path Mount_Point
C:/mingw-w64/x86_64-4.9.2-posix-seh-rt_v3-rev1/mingw64 /mingw
c:/ActiveState/perl /perl
接着编辑C:\msys\1.0\msys.bat文件,在开头加上call “D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat”在这样环境变量就配置好了(这里的配置我还留有疑问)。
测试是否安装成功,启动msys终端,输入gcc -v
下载ffmpeg:[https://github.com/ffmpeg/ffmpeg]
下载完之后全部拷贝到C:\msys\1.0\home。
然后运行msys,cd到C:\msys\1.0\home\ffmpeg目录,执行./configure(这个时候可能会出现各种command not found问题,这是因为msys下的bin缺少了某些文件造成的,这些文件大部分都能从以下链接找到,然后添加到bin下就可以了,具体参照下面问题汇总)
成功之后执行:make (编译的时间可能有点长,请耐心等待)
然后:make install
到此为止,ffmpeg在windows上的编译已经全部编译完成,此时我们可以尝试使用ffmpeg命令来验证编译结果,执行./ffmpeg.exe -h
然后你会看到一些信息: 
windows64下FFmpeg编译问题汇总:
[https://blog.csdn.net/lz8362/article/details/79165334]
[http://gnuwin32.sourceforge.net/packages/coreutils.htm]
边栏推荐
- C# 获取DPI和真实分辨率的方式(可以解决一直是96的问题)
- 了解学习 JSX 的工作方式
- QT中的item views与Item widgets控件的用法总结
- Basic RF theory (DB)
- Kubesphere offline deployment without network environment
- golang正则regexp包使用-04-使用正则替换(ReplaceAll(),ReplaceAllLiteral(),ReplaceAllFunc())
- Sklearn classification in sklearn_ Report & accuracy / recall /f1 value
- 【已解决】“The Unity environment took too long to respond. Make sure that :\n“
- Easy EDA #学习笔记09# | ESP32-WROOM-32E模组ESP32-DevKitC-V4开发板 一键下载电路
- XShell7 下载
猜你喜欢

Understand how learning JSX works

C # database reports errors. Let's have a look

把CSMA/CD、Token Bus、Token Ring说清楚

Day_ 06 smart health project - mobile terminal development - physical examination appointment

Haas 506 2.0 Tutoriel de développement - bibliothèque de composants avancés - modem. SMS (ne prend en charge que les versions supérieures à 2,2)

Docker practice - redis cluster deployment and micro service deployment project

Get to know webassembly quickly

直播带货这么火,如何在小程序中实现视频通话及直播互动功能?
Link of Baidu URL Parameters? Recherche sur le chiffrement et le décryptage des paramètres d'URL (exemple de Code)

Day_ 11 smart communication health project - graphic report and poi Report
随机推荐
Haas506 2.0 development tutorial - Advanced Component Library -modem Net (only supports versions above 2.2)
Sklearn classification in sklearn_ Report & accuracy / recall /f1 value
Open source to the world (Part 2): the power of open source from the evolution of database technology BDTC 2021
Laravel log channel grouping configuration
坐标 转化
Jour 04 projet de santé mentale - gestion des rendez - vous - gestion des forfaits
Summary of business logic security ideas
云盒子联合深信服,为南京一中打造智慧双模教学资源分享平台
Mysql5.6 (5.7-8) is based on shardingsphere5.1.1 sharding proxy mode. Read / write separation
光谱共焦的测量原理及厚度测量模式
剑指 Offer 42. 连续子数组的最大和
如何查看本机IP
同步开关电源降低EMI布局 dv/dt di/dt
Coordinate transformation
ffplay实现自定义输入流播放
把CSMA/CD、Token Bus、Token Ring说清楚
开源生态|超实用开源License基础知识扫盲帖(下)
C language removes line breaks (or other characters) at the end of strings
Laravel log channel 分组配置
Topic35——34. 在排序数组中查找元素的第一个和最后一个位置