GithubHelp home page GithubHelp logo

th3or14 / opencv-with-ffmpeg-on-qt-for-android Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 10.0 58 KB

How to compile native/C++ OpenCV with FFmpeg support and use it on Qt for Android

Shell 84.59% Dockerfile 15.41%

opencv-with-ffmpeg-on-qt-for-android's Introduction

Building the OpenCV libraries

  • Install Docker
  • Supported architectures are listed in build-wrapper.sh, you are free to reduce the list there according to your needs
  • Run ./build.sh

Running the sample application

  • Qt kits and devices management is left on you, check out docker/Dockerfile for versions of JDK, Android SDK and Android NDK used to build
  • Open sample/sample.pro in Qt Creator
  • Change ARCHITECTURE to the corresponding architecture for your current build
  • Set OPENCV_SRC_DIR=$PWD/opencv environment variable, where $PWD is a path to directory with this README.md
  • Build and run
  • In case of success the application generates a sample video

opencv-with-ffmpeg-on-qt-for-android's People

Contributors

th3or14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

opencv-with-ffmpeg-on-qt-for-android's Issues

Hints for compile with CMake and Clang for Qt 5.12.3

Hello,

I am trying to build OpenCV 4.0.1 with FFmpeg 4.1 for Qt 5.12.3. New versions of Qt use Clang as a compiler for Android devices and NDK version 19r. Could you please give me some advise where should I change what in your brilliant scripts to make it work? New branch would be ideal. Thank you in advance for your help.

Can't open file?

I built this on a fresh install of lubuntu. It seems to compile ok. The sample seems to compile and run on my phone (Moto z4 running Android 9). But it can't open the VideoWriter file. If I replace the code starting with

cv::VideoWriter vw;

with a normal file open, write, close, I can write a text file so I don't think it's a permission issue. Otherwise I get "Can't open file for writing!" The only change I made is using android-ndk-r20b rather than android-ndk-r20.

v8a & 64x support

Hello @th3or14
Tried your script and seems compiling successfully without any issue. However, I need both v8a and 64x version. Is there any technical reason that you haven't included them? Also have you tried to use the VideoCapture with RTSP on android using your compiled libs?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.