Qt + the visual studio environment configuration environment FFmpeg

FFmpeg introduced, download, description

 FFmpeg是领先的多媒体框架,提供了音视频的编码,解码,转码,封装,解封装,流,滤镜(滤波器),播放等功能。
 它几乎支持所有的音视频格式,不管是标准委员会,社区,还是公司设计的。
 它是高度可移植,跨平台的:可以在Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris等系统上,
 在各种不同的编译环境,机器架构,配置下编译,运行,并通过测试。

FFmpeg is an open source project itself, and released under the LGPL / GPL agreement, so anyone can freely use, as long as comply with LGPL / GPL agreement.

FFmpeg's official website is www.ffmpeg.org .

1. Download the Windows version of FFmpeg build the package, enter https://ffmpeg.zeranoe.com/builds/
Here Insert Picture Description
select the version [4.2.1] -> System Architecture [Wndow 64-bit], then download the [Shared] + [Dev] (also can shove).
2, unzip downloaded to introduce some of them now:

  ffmpeg_dev:包含example例子、include头文件、lib静态链接库。

  ffmpeg_shared:包含bin动态库、doc文档、presets不清楚。

  并且在 ffmpeg_shared/bin 下提供了三个命令行工具:

  ffmpeg.exe:视频转换工具。

  ffplay.exe:视频播放工具。

  ffprobe.exe:视频分析工具。

Qt + the Visual Studio development environment configuration

Change project Properties:
1, C / C ++ -> General
-> Accessories directory containing: all .h folder added ffmpeg of the include;
2, Linker -> General
-> Additional Library Directories: Add ffmpeg lib folder directory
3 connector -> input
-> additional dependencies: All .lib file on the ffmpeg
example:

	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\avcodec.lib
	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\avdevice.lib
	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\avfilter.lib
	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\avformat.lib
	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\avutil.lib
	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\postproc.lib
	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\swresample.lib
	F:\vs2013_projects\MyffMpeg\MyffMpeg\ffmpeg\lib\swscale.lib

4, in debug / release the generated folder .exe, .dll file dll Copy all files all incoming bin ffmpeg clip.

Published 56 original articles · won praise 10 · views 20000 +

Guess you like

Origin blog.csdn.net/birenxiaofeigg/article/details/103799637