下载FFmpeg依赖库 ffmpeg-3.4.2-win64-dev, ffmpeg-3.4.2-win64-shared 下载地址:https://ffmpeg.zeranoe.com/builds/
QtAV-depends-windows-x86%2Bx64.7z 下载地址:https://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64.7z/download
QtAV的安装编译总指导说明:https://github.com/wang-bin/QtAV/wiki/Build-QtAV
下载QtAV的源代码:https://github.com/wang-bin/QtAV
将ffmpeg-4.1-win64-dev\include 和 ffmpeg-4.1-win64-dev\lib下所有文件,拷贝到:\Qt\5.11.2\msvc2017xx\include和Qt\5.11.2\msvc2017xx\lib目录下:
选择Debug或release模式,编译QtAV的代码,生成Debug或release目录文件。
接下来将QtAV生成的开发库和头文件安装到Qt的开发环境下。首先打开QtAV的生成路径,如下图所示的文件。其中包含一个名为“sdk_install.bat”的可执行脚本,双击执行安装.
运行选择player:
选择了player,再点击运行按钮,可能运行会报如下的错误
Starting D:\qt-workspace\build-QtAV-Desktop_Qt_5_12_3_MinGW_64_bit-Release\bin\Player.exe ...
程序异常结束。
The process was ended forcefully.
D:/qt-workspace/build-QtAV-Desktop_Qt_5_12_3_MinGW_64_bit-Release/bin/Player.exe crashed.
解决方法:
运行正常:
参考链接:
1:https://www.cnblogs.com/motadou/p/9310560.html
2:https://blog.csdn.net/anyuliuxing/article/details/92801348
微尘.. 发布了18 篇原创文章 · 获赞 1 · 访问量 2113 私信 关注