danbrough / andrudio Goto Github PK
View Code? Open in Web Editor NEWFFMpeg based drop-in replacement for the android mediaplayer
License: Apache License 2.0
FFMpeg based drop-in replacement for the android mediaplayer
License: Apache License 2.0
run test/main.c
audioplayer.c:91: player_thread::av_read_frame failed: code:-541478725 "End of file"
Does the JNI code work in x86_64 devices or emulators ?
I have no idea as I can't seem to get any of the atom 64bit emulators to boot.
Hi there
Just a couple of improvements I can think of after playing with the demo the other day.
That's all I can think of for further improvements. Actually I'm still learning ffmpeg library and this project helps me a great deal, so thank you :)
Hi there
I'm trying to run the demo in android studio and getting this error message. Any ideas :)
05-11 10:31:15.494 27702-27702/? D/dalvikvm﹕ Late-enabling CheckJNI
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo W/dalvikvm﹕ Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Ldanbroid/andrudio/demo/MainActivity;
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo W/dalvikvm﹕ Class init failed in newInstance call (Ldanbroid/andrudio/demo/MainActivity;)
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo D/AndroidRuntime﹕ Shutting down VM
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41f2aba8)
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: danbroid.andrudio.demo, PID: 27702
java.lang.UnsatisfiedLinkError: Couldn't load avutil from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/danbroid.andrudio.demo-2.apk"],nativeLibraryDirectories=[/data/app-lib/danbroid.andrudio.demo-2, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at danbroid.andrudio.LibAndrudio.initialize(LibAndrudio.java:39)
at danbroid.andrudio.demo.MainActivity.(MainActivity.java:26)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
Needs to support m3u and asx files.
For example: http://www.listenlive.eu/bbcradio1.m3u
Hi there
Just trying out the updated code and I'm running into the problem. Here's the log output.
09-03 13:18:32.716 27169-27169/? I/danbroid.andrudio﹕ ap_create()
09-03 13:18:32.716 27169-27169/? E/danbroid.andrudio﹕ pipe failed
09-03 13:18:32.716 27169-27169/? V/danbroid.andrudio﹕ ap_send_cmd::CMD_EXIT
09-03 13:18:32.716 27169-27169/? I/danbroid.andrudio﹕ ap_delete::calling join on 0
09-03 13:18:32.716 27169-27169/? I/danbroid.andrudio﹕ ap_delete::done
09-03 13:18:32.726 27169-27169/? E/danbroid.andrudio﹕ failed to create playe
If I'm not mistaken, it's caused by:
if (pipe2(player->pipe, O_NONBLOCK) != 0) { .. }
Thanks
java.lang.UnsatisfiedLinkError: dlopen failed: cannot find "libavutil.so" from verneed[0] in DT_NEEDED list for "/data/app/danbroid.andrudio.demo-1/lib/x86/libavresample.so"
This is on an Android6.0 Atom x86 emulator.
The Google Api's emulator for Atom x86 works fine.
Haven't come across this on any actual devices.
Seems to be an issue loading the prebuilt ffmpeg binaries.
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.