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

相关推荐
shelutai4 小时前
FFMPEG: Overlay a video on a video after x seconds
ffmpeg
aqi0011 小时前
FFmpeg开发笔记(五十三)移动端的国产直播录制工具EasyPusher
android·ffmpeg·音视频·直播·流媒体
「QT(C++)开发工程师」1 天前
【FFmpeg应用场景概述】
ffmpeg
cuijiecheng20181 天前
音视频入门基础:AAC专题(6)——FFmpeg源码中解码ADTS格式的AAC的Header的实现
ffmpeg·音视频·aac
yunhuibin1 天前
ffmpeg面向对象——参数配置秘密探索及其设计模式
学习·设计模式·ffmpeg
superconvert2 天前
主流流媒体的综合性能大 PK ( smart_rtmpd, srs, zlm, nginx rtmp )
websocket·ffmpeg·webrtc·hevc·rtmp·h264·hls·dash·rtsp·srt·flv
cuijiecheng20182 天前
音视频入门基础:AAC专题(8)——FFmpeg源码中计算AAC裸流AVStream的time_base的实现
ffmpeg·音视频·aac
0点51 胜2 天前
[ffmpeg] 视频格式转换
ffmpeg
Jerry 二河小鱼3 天前
在Linux中安装FFmpeg
linux·运维·服务器·ffmpeg
0点51 胜3 天前
[ffmpeg] 音视频编码
ffmpeg·音视频