wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.99k stars 1.51k forks source link

QtAV doesn't build with Qt 6.2 #1406

Open awesomeerictech opened 2 years ago

awesomeerictech commented 2 years ago

QtAV, Qt version and platform

or commit id if not using release version

Reproduction steps

Expected behavior

Actual behavior

Log file

set environment var QTAV_LOG=all or C++ api QtAV::setLogLevel(All) to enable log.

For Player and QMLPlayer example app, choose log level all in config page.

Sample files (optional)

cgilles commented 2 years ago

Hi, For digiKam project we use QtAv to play video in application. We have started to port digiKam to Qt6. Of course QtAv need to compile with Qt6. I just generated a patch to support pure Qt 6.2.3 API for our AppImage continuous deployment server. File is here :

https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/3rdparty/ext_qtav/qtav-qt6-pure.patch

Best Gilles Caulier

awesomeerictech commented 2 years ago

I have realized that your project doesn't use QML , how can i generate a patch to enable me to create qtav qml-based application

awesomeerictech commented 2 years ago

QtAV doesn't even work with ffmpeg 5 , i have given up in it.

cgilles commented 2 years ago

Hi, digiKam do not use QML as it fully based on C++. No need to increase a large code complexity with this stuff. C++ is always optimum than QML. To create a patch, use github Merge Request feature. Fork QtAv in your account, patch code and commit. And end request a merge with original QtAv repository through the web interface. This is the standard workflow. If you wan to patch QML part of QtAv, you can check the unit tests first based on QML. Best Gilles Cauiler

awesomeerictech commented 2 years ago

personally i need to use QML because i am targeting different devices, i can't create user interface with Widgets .