本文主要是介绍FFmpeg: 自实现ijkplayer播放器-02环境搭建,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
文章目录
- 安装环境
- 项目工程配置
- 库文件
安装环境
IDE: Qt5.12
库:
- ffmpeg-4.2.1-win32
- SDL
项目工程配置
pro文件
TEMPLATE = app
TARGET = SimpleIJKPlayer
DESTDIR = bin
QT += core gui widgets
#CONFIG += debug
#DEFINES += _UNICODE WIN64 QT_WIDGETS_LIBwin32 {
LIBS += -L$$PWD/lib/SDL2/lib/x86 \-L$$PWD/lib/ffmpeg-4.2.1-win32-dev/lib \-lSDL2 \-lavcodec \-lavdevice \-lavfilter \-lavformat \-lavutil \-lswresample \-lswscaleINCLUDEPATH += src \lib/SDL2/include \lib/ffmpeg-4.2.1-win32-dev/include
}unix {
LIBS += \-lSDL2 \-lavcodec \-lavdevice \-lavfilter \-lavformat \-lavutil \-lswresample \-lswscale
}HEADERS += src/customthread.h \src/datactl.h \src/globalhelper.h \src/settingwid.h \src/about.h \src/CustomSlider.h \src/videoctl.h \src/mainwid.h \src/medialist.h \src/title.h \src/playlist.h \src/show.h \src/ctrlbar.h \src/sonic.hSOURCES += src/main.cpp \src/about.cpp \src/CustomSlider.cpp \src/customthread.cpp \src/globalhelper.cpp \src/settingwid.cpp \src/videoctl.cpp \src/ctrlbar.cpp \src/mainwid.cpp \src/medialist.cpp \src/playlist.cpp \src/show.cpp \src/title.cpp \src/sonic.cppFORMS += src/mainwid.ui \src/ctrlbar.ui \src/show.ui \src/playlist.ui \src/title.ui \src/about.ui \src/settingwid.uiRESOURCES += src/mainwid.qrc
库文件
将配置文件解压后放到工程路径下
对应配置文件网盘链接:
链接:https://pan.baidu.com/s/1YO7ftVvrJMiflAOS_0roVw?pwd=regr
提取码:regr
这篇关于FFmpeg: 自实现ijkplayer播放器-02环境搭建的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!