FFmpeg windows软件开发环境搭建

简介:

FFmpeg说明

        FFmpeg是一个自由软件,可以运行音频和视频多种格式的录影、转换、流功能1,包含了libavcodec ─这是一个用于多个项目中音频和视频的解码器库,以及libavformat——一个音频与视频格式转换库。

下载链接
https://ffmpeg.zeranoe.com/builds/win64/


目录说明

注意:shared版本和static版本包含了可以独立执行的FFmpeg工具
dev版本用于软件开发,里面包含了FFmpeg的库文件(lib)和头文件(h)
shared版本提供了dll文件,以及依赖该dll文件的可执行程序ffmpeg.exe,ffplay.exe, ffprobe.exe
static版本提供了可执行程序ffmpeg.exe,ffplay.exe, ffprobe.exe,由于将dll编译进程序里面,因此体积比较大


简单描述ffplay

ffplay播放RTSP视频流

ffplay.exe rtsp://192.168.0.150:554/h264/ch1/main/av_stream

ffmpeg 展示所有的解码器

Decoders:

 V..... = Video(视频流)

 A..... = Audio(音频流)

 S..... = Subtitle(字幕流)


如何添加FFmpeg动态库到工程
1)从dev目录下载合适的版本例如ffmpeg-20171013-ad56e80-win64-dev,里面包含了工程需要的FFmpeg中的lib文件和h文件
2)从shared目录下载相应的版本(也就是跟上面dev下载的时间保持一致)ffmpeg-20171013-147c1e0-win64-shared,里面包含了
工程编译之后运行程序依赖的dll文件
3)往工程中添加头文件路径和lib库路径,并且将dll拷贝到可执行程序目录下


编译错误
错误    C3861    “UINT64_C”: 找不到标识符
打开libautil/common.h文件在include包含文件之后添加如下代码
#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif 


参考
https://www.jianshu.com/p/7ed3be01228b






     本文转自fengyuzaitu 51CTO博客,原文链接:http://blog.51cto.com/fengyuzaitu/2059832,如需转载请自行联系原作者

相关文章
|
15天前
|
Java 测试技术 网络安全
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
46 0
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
|
5月前
|
Oracle 关系型数据库 Linux
VirtualBox 7.1.10 (macOS, Linux, Windows) - 开源跨平台虚拟化软件
VirtualBox 7.1.10 (macOS, Linux, Windows) - 开源跨平台虚拟化软件
319 0
VirtualBox 7.1.10 (macOS, Linux, Windows) - 开源跨平台虚拟化软件
|
3月前
|
安全 数据挖掘 Android开发
Cellebrite UFED 4PC 7.72 (Windows) - Android 和 iOS 移动设备取证软件
Cellebrite UFED 4PC 7.72 (Windows) - Android 和 iOS 移动设备取证软件
198 2
Cellebrite UFED 4PC 7.72 (Windows) - Android 和 iOS 移动设备取证软件
|
3月前
|
人工智能 数据可视化 数据挖掘
Cellebrite Physical Analyzer 7.67 (Windows) - 取证数据分析软件
Cellebrite Physical Analyzer 7.67 (Windows) - 取证数据分析软件
81 1
Cellebrite Physical Analyzer 7.67 (Windows) - 取证数据分析软件
|
2月前
|
自然语言处理 监控 安全
Magnet DVR Examiner 3.19 for Windows - 视频取证软件
Magnet DVR Examiner 3.19 for Windows - 视频取证软件
39 0
Magnet DVR Examiner 3.19 for Windows - 视频取证软件
|
4月前
|
Linux API iOS开发
Blender 4.5 (Linux, macOS, Windows) - 开源 3D 创意软件 (渲染 建模 雕刻)
Blender 4.5 (Linux, macOS, Windows) - 开源 3D 创意软件 (渲染 建模 雕刻)
197 1
Blender 4.5 (Linux, macOS, Windows) - 开源 3D 创意软件 (渲染 建模 雕刻)
|
4月前
|
Linux iOS开发 MacOS
Krita 5.2.10 (Linux, macOS, Windows) - 开源免费绘画软件
Krita 5.2.10 (Linux, macOS, Windows) - 开源免费绘画软件
181 0
Krita 5.2.10 (Linux, macOS, Windows) - 开源免费绘画软件
|
6月前
|
安全 测试技术 Linux
Flawnter 5.9.1 (macOS, Linux, Windows) - 应用程序安全测试软件
Flawnter 5.9.1 (macOS, Linux, Windows) - 应用程序安全测试软件
185 2
Flawnter 5.9.1 (macOS, Linux, Windows) - 应用程序安全测试软件

热门文章

最新文章