Skip to content

Commit

Permalink
Merge pull request #783 from ElderOrb/player_update
Browse files Browse the repository at this point in the history
  • Loading branch information
dericed authored Aug 26, 2023
2 parents a047c5a + 9bb3a76 commit 0798b69
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 403 deletions.
69 changes: 47 additions & 22 deletions .github/workflows/qctools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ jobs:
- compiler: gcc-9
packages: gcc-9 g++-9
env: { 'CC': 'gcc-9', 'CXX': 'g++-9' }
- qt_version: "5.15.2"
qt_packages: "libxkbcommon-dev libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0"

runs-on: ubuntu-latest

Expand Down Expand Up @@ -313,10 +315,9 @@ jobs:
libiec61883-dev
- name: Install Qt 5.15
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
arch: win64_mingw81
version: 5.15.2
version: ${{ matrix.qt_version }}

- name: Cleanup
run: |
Expand Down Expand Up @@ -363,6 +364,9 @@ jobs:
- compiler: gcc-9
packages: gcc-9 g++-9
env: { 'CC': 'gcc-9', 'CXX': 'g++-9' }
- qt_version: "6.5.0"
qt_modules: "qtmultimedia qt5compat"
qt_packages: "libxkbcommon-dev libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0"

runs-on: ubuntu-latest

Expand Down Expand Up @@ -402,11 +406,11 @@ jobs:
libxkbcommon-dev \
libxv-dev
- name: Install Qt 6.2
uses: jurplel/install-qt-action@v2
- name: Install Qt 6
uses: jurplel/install-qt-action@v3
with:
version: 6.2.0
modules: 'addons.qtmultimedia qt5compat'
version: ${{ matrix.qt_version }}
modules: ${{ matrix.qt_modules }}

- name: Cleanup
run: |
Expand Down Expand Up @@ -446,6 +450,10 @@ jobs:
build-windows-mingw:

strategy:
matrix:
qt_version: ["5.15.2"]

runs-on: windows-latest

steps:
Expand Down Expand Up @@ -478,10 +486,10 @@ jobs:
make install
- name: Install Qt 5.15
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
arch: win64_mingw81
version: 5.15.2
version: ${{ matrix.qt_version }}

- name: Install wget & unzip
run: |
Expand Down Expand Up @@ -527,6 +535,12 @@ jobs:
build-windows-mingw-Qt6:

strategy:
matrix:
include:
- qt_version: "6.3.0"
qt_modules: "qtmultimedia qt5compat"

runs-on: windows-latest

steps:
Expand Down Expand Up @@ -558,12 +572,12 @@ jobs:
..
make install
- name: Install Qt 6.2
uses: jurplel/install-qt-action@v2
- name: Install Qt 6
uses: jurplel/install-qt-action@v3
with:
arch: win64_mingw81
version: 6.2.0
modules: 'addons.qtmultimedia'
arch: win64_mingw
version: ${{ matrix.qt_version }}
modules: ${{ matrix.qt_modules }}

- name: Install wget & unzip
run: |
Expand Down Expand Up @@ -609,6 +623,10 @@ jobs:
build-windows-vs:

strategy:
matrix:
qt_version: ["5.15.2"]

runs-on: windows-latest

steps:
Expand Down Expand Up @@ -646,9 +664,9 @@ jobs:
nmake install
- name: Install Qt 5.15
uses: jurplel/install-qt-action@v2
with:
version: 5.15.2
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}

- name: Install wget & unzip
run: |
Expand Down Expand Up @@ -694,6 +712,12 @@ jobs:
build-windows-vs-Qt6:

strategy:
matrix:
include:
- qt_version: "6.3.0"
qt_modules: "qtmultimedia qt5compat"

runs-on: windows-latest

steps:
Expand Down Expand Up @@ -730,11 +754,12 @@ jobs:
..
nmake install
- name: Install Qt 6.2
uses: jurplel/install-qt-action@v2
with:
version: 6.2.0
modules: 'addons.qtmultimedia'
- name: Install Qt 6
uses: jurplel/install-qt-action@v3
with:
arch: win64_msvc2019_64
version: ${{ matrix.qt_version }}
modules: ${{ matrix.qt_modules }}

- name: Install wget & unzip
run: |
Expand Down
33 changes: 0 additions & 33 deletions Project/QtCreator/QCTools.pro
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,6 @@ USE_BREW = $$(USE_BREW)

include(ffmpeg.pri)

QTAVPLAYER = $$absolute_path($$_PRO_FILE_PWD_/qctools-QtAVPlayer)
message('QTAVPLAYER: ' $$QTAVPLAYER)

QTAVPLAYERLIB = $$absolute_path($$_PRO_FILE_PWD_/qctools-QtAVPlayer-lib)
message('QTAVPLAYER library support files: ' $$QTAVPLAYERLIB)

defineReplace(nativePath) {
OUT_NATIVE_PATH = $$1
# Replace slashes in paths with backslashes for Windows
win32:OUT_NATIVE_PATH ~= s,/,\\,g
return($$OUT_NATIVE_PATH)
}

win32: {
system('xcopy $$nativePath($$QTAVPLAYERLIB/*) $$nativePath($$QTAVPLAYER/) /E /Y')
message('xcopy $$nativePath($$QTAVPLAYERLIB/*) $$nativePath($$QTAVPLAYER/) /E /Y')
} else {
macx: {
system('cp -R $$shell_path($$QTAVPLAYERLIB/*) $$shell_path($$QTAVPLAYER/)')
message('cp -R $$shell_path($$QTAVPLAYERLIB/*) $$shell_path($$QTAVPLAYER/)')
} else {
system('cp -r -u $$shell_path($$QTAVPLAYERLIB/*) $$shell_path($$QTAVPLAYER/)')
message('cp -r -u $$shell_path($$QTAVPLAYERLIB/*) $$shell_path($$QTAVPLAYER/)')
}
}

contains(DEFINES, USE_BREW) {
message('using ffmpeg from brew via PKGCONFIG')

Expand All @@ -59,24 +33,17 @@ contains(DEFINES, USE_BREW) {

write_file($$QTAVPLAYER/.qmake.conf, pkgConfig, append)
write_file($$QTAVPLAYER/.qmake.conf, linkPkgConfig, append)
} else {
message('including $$QTAVPLAYER/QtAVPlayerLib.pri')
include($$QTAVPLAYER/QtAVPlayerLib.pri)
}

SUBDIRS = \
qctools-qtavplayer \
qctools-lib \
qctools-cli \
qctools-gui

qctools-qtavplayer.file = qctools-QtAVPlayer/QtAVPlayerLib.pro

qctools-lib.subdir = qctools-lib
qctools-cli.subdir = qctools-cli
qctools-gui.subdir = qctools-gui

qctools-lib.depends = qctools-qtavplayer
qctools-cli.depends = qctools-lib
qctools-gui.depends = qctools-lib

Expand Down
2 changes: 1 addition & 1 deletion Project/QtCreator/qctools-QtAVPlayer
Submodule qctools-QtAVPlayer updated 79 files
+0 −2 .cmake.conf
+25 −93 .github/workflows/main.yaml
+0 −2 .gitignore
+0 −5 .qmake.conf
+0 −118 CMakeLists.txt
+0 −2 QtAVPlayer.pro
+18 −40 README.md
+0 −5 configure.json
+0 −1 examples/CMakeLists.txt
+0 −5 examples/examples.pro
+0 −15 examples/extract_frames/CMakeLists.txt
+3 −0 examples/extract_frames/extract_frames.pro
+0 −47 examples/qml_video/CMakeLists.txt
+3 −2 examples/qml_video/qml_video.pro
+0 −1 src/CMakeLists.txt
+0 −157 src/QtAVPlayer/CMakeLists.txt
+131 −0 src/QtAVPlayer/QtAVPlayer.pri
+0 −135 src/QtAVPlayer/QtAVPlayer.pro
+0 −197 src/QtAVPlayer/configure.json
+1 −1 src/QtAVPlayer/qavaudiocodec_p.h
+5 −4 src/QtAVPlayer/qavaudiofilter.cpp
+1 −1 src/QtAVPlayer/qavaudiofilter_p.h
+1 −1 src/QtAVPlayer/qavaudioformat.h
+1 −1 src/QtAVPlayer/qavaudioframe.h
+1 −1 src/QtAVPlayer/qavaudioinputfilter_p.h
+31 −13 src/QtAVPlayer/qavaudiooutput.cpp
+1 −1 src/QtAVPlayer/qavaudiooutput.h
+1 −1 src/QtAVPlayer/qavaudiooutputfilter_p.h
+1 −1 src/QtAVPlayer/qavcodec_p.h
+6 −7 src/QtAVPlayer/qavdemuxer.cpp
+1 −1 src/QtAVPlayer/qavdemuxer_p.h
+1 −1 src/QtAVPlayer/qavfilter_p.h
+1 −1 src/QtAVPlayer/qavfiltergraph_p.h
+1 −1 src/QtAVPlayer/qavfilters_p.h
+1 −1 src/QtAVPlayer/qavframe.h
+1 −1 src/QtAVPlayer/qavframecodec_p.h
+1 −1 src/QtAVPlayer/qavhwdevice_d3d11_p.h
+1 −1 src/QtAVPlayer/qavhwdevice_mediacodec_p.h
+1 −1 src/QtAVPlayer/qavhwdevice_p.h
+1 −1 src/QtAVPlayer/qavhwdevice_vaapi_drm_egl_p.h
+1 −1 src/QtAVPlayer/qavhwdevice_vaapi_x11_glx_p.h
+1 −1 src/QtAVPlayer/qavhwdevice_vdpau_p.h
+1 −1 src/QtAVPlayer/qavhwdevice_videotoolbox_p.h
+1 −1 src/QtAVPlayer/qavinoutfilter_p.h
+1 −1 src/QtAVPlayer/qaviodevice_p.h
+1 −1 src/QtAVPlayer/qavpacket_p.h
+0 −6 src/QtAVPlayer/qavplayer-config.h.in
+0 −32 src/QtAVPlayer/qavplayer-config_p.h.in
+4 −4 src/QtAVPlayer/qavplayer.h
+4 −4 src/QtAVPlayer/qavstream.h
+1 −1 src/QtAVPlayer/qavstreamframe.h
+1 −1 src/QtAVPlayer/qavsubtitlecodec_p.h
+1 −1 src/QtAVPlayer/qavsubtitleframe.h
+1 −1 src/QtAVPlayer/qavvideobuffer_cpu_p.h
+1 −1 src/QtAVPlayer/qavvideobuffer_gpu_p.h
+1 −1 src/QtAVPlayer/qavvideobuffer_p.h
+1 −1 src/QtAVPlayer/qavvideocodec_p.h
+1 −1 src/QtAVPlayer/qavvideofilter_p.h
+3 −3 src/QtAVPlayer/qavvideoframe.cpp
+3 −3 src/QtAVPlayer/qavvideoframe.h
+1 −1 src/QtAVPlayer/qavvideoinputfilter_p.h
+1 −1 src/QtAVPlayer/qavvideooutputfilter_p.h
+0 −14 src/QtAVPlayer/qtavplayerglobal.h
+0 −3 src/src.pro
+0 −3 sync.profile
+0 −1 tests/CMakeLists.txt
+0 −1 tests/auto/CMakeLists.txt
+0 −3 tests/auto/auto.pro
+0 −10 tests/auto/cmake/CMakeLists.txt
+0 −6 tests/auto/cmake/cmake.pro
+0 −2 tests/auto/integration/CMakeLists.txt
+0 −3 tests/auto/integration/integration.pro
+0 −22 tests/auto/integration/qavdemuxer/CMakeLists.txt
+6 −5 tests/auto/integration/qavdemuxer/qavdemuxer.pro
+0 −10 tests/auto/integration/qavplayer/CMakeLists.txt
+5 −4 tests/auto/integration/qavplayer/qavplayer.pro
+43 −6 tests/auto/integration/qavplayer/tst_qavplayer.cpp
+ tests/auto/integration/testdata/test_5beeps.mkv
+0 −2 tests/tests.pro
83 changes: 0 additions & 83 deletions Project/QtCreator/qctools-QtAVPlayer-lib/QtAVPlayerLib.pri

This file was deleted.

12 changes: 0 additions & 12 deletions Project/QtCreator/qctools-QtAVPlayer-lib/QtAVPlayerLib.pro

This file was deleted.

77 changes: 0 additions & 77 deletions Project/QtCreator/qctools-QtAVPlayer-lib/UseQtAVPlayerLib.pri

This file was deleted.

Loading

0 comments on commit 0798b69

Please sign in to comment.