valbok / QtAVPlayer

Free and open-source Qt Media Player library based on FFmpeg, for Linux, Windows, macOS, iOS and Android.
MIT License
282 stars 54 forks source link

Build FFMPEG for Android to use QtAVPlayer. #415

Closed binarysoft2011 closed 10 months ago

binarysoft2011 commented 10 months ago

Hi,

This question is not direct related with QtAVPlayer. So You may remove or close. To compile FFmpegAndroid library for QtAVPlayer, which ndk r is compartable? Do you use pre-build FFmpeg library or build by yourself.

I found it. Different Qt versions depend on different NDK versions, as listed below:

Qt version NDK version Toolchain Qt 5.14.0 or later Qt 5.13.2 or later Qt 5.12.6 or later NDK r20b or r21 android-clang Qt 5.12.0 to 5.12.5 Qt 5.13.0 to 5.13.1 NDK r19c android-clang Qt 5.11 and earlier NDK r10e GCC toolchain

I use Qt C++ MinGW 5.12.12 32bit on Windows Computer. I built library with FFmpeg 6.0.1 source. This library can be use in QtAVPlayer with above qt version in Windows. I tried to build Android FFmpeg library with android-ndk 21r. But it not successful.

Thanks.

valbok commented 10 months ago

I would not suggest to recompile ffmpeg, just use prebuilt libs. About NDK, any is compatible with Qt is fine. Don't remember specific issues, except gradle config.