FFmpeg: 自实现ijkplayer播放器-02环境搭建

文章目录

安装环境

IDE: Qt5.12

库:

  • ffmpeg-4.2.1-win32
  • SDL

项目工程配置

pro文件

cpp 复制代码
TEMPLATE = app
TARGET = SimpleIJKPlayer
DESTDIR = bin
QT += core gui widgets
#CONFIG += debug
#DEFINES += _UNICODE WIN64 QT_WIDGETS_LIB

win32 {
LIBS += -L$$PWD/lib/SDL2/lib/x86 \
    -L$$PWD/lib/ffmpeg-4.2.1-win32-dev/lib \
    -lSDL2 \
    -lavcodec \
    -lavdevice \
    -lavfilter \
    -lavformat \
    -lavutil \
    -lswresample \
    -lswscale

INCLUDEPATH += 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.h

SOURCES += 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.cpp

FORMS += src/mainwid.ui \
    src/ctrlbar.ui \
    src/show.ui \
    src/playlist.ui \
    src/title.ui \
    src/about.ui \
    src/settingwid.ui

RESOURCES += src/mainwid.qrc

库文件

将配置文件解压后放到工程路径下

对应配置文件网盘链接:

链接:https://pan.baidu.com/s/1YO7ftVvrJMiflAOS_0roVw?pwd=regr

提取码:regr

相关推荐
枫叶梨花2 天前
从 M4S 到 MP4:用 FFmpeg 轻松合并音视频文件
ffmpeg·音视频
米优2 天前
FFmpeg添加水印
ffmpeg
blanks20203 天前
qt mac 解决 info.plist 自定义问题
ffmpeg
学而知不足~3 天前
FFmpeg03:多媒体文件处理基础
ffmpeg
dualven_in_csdn4 天前
ffmpeg编译
ffmpeg
Kevin Wang7274 天前
FFmpeg如何使用GPU加速
ffmpeg
feiyangqingyun5 天前
纯Qt结合ffmpeg实现本地摄像头采集/桌面采集/应用程序窗口采集/指定采集帧率和分辨率等
qt·ffmpeg·qt桌面采集·qt摄像头采集·qt程序窗口采集
shelutai5 天前
ubuntu 编译ffmpeg6.1 增加drawtext,libx264,libx265等
linux·ubuntu·ffmpeg
陆远方6 天前
AttributeError: module ‘ffmpeg‘ has no attribute ‘probe‘
ffmpeg
进击ing小白6 天前
FFmpeg的基本概述(二)
ffmpeg