hikoqiu / jni_invoke_ffmpeg Goto Github PK
View Code? Open in Web Editor NEWUse Android NDK jni to invoke ffmpeg2.8.4 compiled *.so to deal with video.
Use Android NDK jni to invoke ffmpeg2.8.4 compiled *.so to deal with video.
请问你用的什么手机跑的demo
Hi HikoQiu,
I am running ndk-build on my project and tried to generate .so file but getting the following error for this project.
even I got the same error for https://github.com/Kernald/ffmpeg-android.
D:\Android\JNIHikoProject\app\src\main\jni>ndk-build
[armeabi-v7a] Compile thumb : myjni <= myjni.c
[armeabi-v7a] Compile thumb : myjni <= ffmpeg.c
D:/Android/JNIHikoProject/app/src/main/jni/ffmpeg.c:27:20: fatal error: config.h: No such file or directory
#include "config.h"
^
compilation terminated.
make: *** [D:/Android/JNIHikoProject/app/src/main/obj/local/armeabi-v7a/objs/myjni/ffmpeg.o] Error 1
Also getting many errors in ffmpeg.c file, It is standard ffmpeg file your own created file.
If I solved include(header) file issue get another one issue i.e
D:/Android/JNIHikoProject/app/src/main/jni/ffmpeg.c:694:1: error: 'FF_DISABLE_DEPRECATION_WARNINGS' undeclared (first use in this function)
FF_DISABLE_DEPRECATION_WARNINGS
I am doing an ndk build to get the following error message.
I have copied the .so files to the libs directory, and placed the files in jni folder to the corresponding jni folder on my app.
/var/folders/2p/0jqlz1c94t537_53qn3h8v9h0000gn/T//ccJtcQLv.s: Assembler messages:
/var/folders/2p/0jqlz1c94t537_53qn3h8v9h0000gn/T//ccJtcQLv.s:4105: Error: bad instruction `cmovg r3,r8'
/var/folders/2p/0jqlz1c94t537_53qn3h8v9h0000gn/T//ccJtcQLv.s:4106: Error: bad instruction `cmovg r2,r3'
/var/folders/2p/0jqlz1c94t537_53qn3h8v9h0000gn/T//ccJtcQLv.s:4108: Error: bad instruction `cmovl r1,r3'
/var/folders/2p/0jqlz1c94t537_53qn3h8v9h0000gn/T//ccJtcQLv.s:4110: Error: bad instruction `cmovg r3,r8'
make: *** [/Users/madhavanmalolan/myapp/app/obj/local/armeabi-v7a/objs/myjnitest/ffmpeg.o] Error 1
i am using ndk r12b. Is there something that i may be missing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.