wysaid / android-gpuimage-plus

Android Image & Camera Filters Based on OpenGL.
MIT License
1.79k stars 473 forks source link

How we can use both this library and OpenCV, FFmpeg withou conflict? #187

Open WyJong opened 6 years ago

WyJong commented 6 years ago

Hi Wysaid, I use this library and openCV, FFmpeg

compile group: 'org.bytedeco', name: 'javacv', version: '1.3.1' compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.0.0-1.1', classifier: 'android-arm' compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '2.8.1–1.1', classifier: 'android-arm'

It's show error "Can not find some SO file from OpenCV or FFmpeg", I have to use SO file of OpenCV instead of compile to fix it. But I think it's not good.

Do you have any solution? Thanks

wysaid commented 6 years ago

just remove ffmpeg&facetracker of this repo

WyJong commented 6 years ago

Thanks Wysaid. But can you give me more explain? What should I do?

Line in my project : avutil.av_log_set_level(avutil.AV_LOG_DEBUG); Error: couldn't find "libjniavutil.so"

wysaid commented 6 years ago

rebuild the jni part of this repo with simple ndk-build

WyJong commented 6 years ago

Do you think It's right way.

wysaid commented 6 years ago

The source code is just there. You can configure your setting as you wish.

wysaid commented 6 years ago

OpenCV in the repo has nothing to do with recording video. You can remove it directly if you do not use the FaceTracker module.

WyJong commented 6 years ago

Hi Wysaid,

  1. Can you give me some info about conflict when I use your library and javaCV, openCV, ffmpeg in Gradle?

  2. I try to build JNI with your instruction on Windows but I got only CGE & CGEExt not include FFmpeg and facetracker?

  3. How Can I use full your library (inlcude facetracker, ffpmeg) and javaCV, openCV, ffmpeg in Gradle?

Thanks you so much.

wysaid commented 6 years ago

Hi, you can replace the ffmpeg module with your own, and compile with that. And make sure only one ffmpeg.so is in your project.