Giter Site home page Giter Site logo

martoreto / opuscodec Goto Github PK

View Code? Open in Web Editor NEW
90.0 90.0 42.0 1.3 MB

Opus Audio Codec for Android

Java 0.28% Makefile 4.98% C 71.84% C++ 5.30% Perl 6 0.28% Assembly 1.07% Objective-C 4.42% Shell 10.18% M4 1.07% CSS 0.47% HTML 0.07% Batchfile 0.02%

opuscodec's People

Contributors

martoreto avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

opuscodec's Issues

build error with "NEON support not enabled"

ndk-build will fail, when building x86 biquad_alt_neon_intr.c

android/sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/arm_neon.h:28:2: error:
"NEON support not enabled"

#error "NEON support not enabled"

64bit support

Support for 64bit workaround would be great because play market will restrict apps which supports only 32bit platform since 2019

Error from codec: -1

Giving error on this line and the error is error from ciodec:-1
int encoded = encoder.encode(inBuf, 1290, encBuf);
Screen Shot 2021-07-06 at 6 54 11 PM

Initialization functions not found in libs

I copied the libs in x86 issue in my jniLibs folder, copied your source files , compiled and added them in my code

However I get this error. Any idea why its not reading the functions inside so or am i missing some files?

: : app_package fatal error : No implementation found for int app_package.widgets.recorder.OpusEncoder.nativeInitEncoder(int, int, int) (tried Java_app_package_widgets_recorder_OpusEncoder_nativeInitEncoder and Java_app_package_widgets_recorder_OpusEncoder_nativeInitEncoder__III)
                                                                java.lang.UnsatisfiedLinkError: No implementation found for int app_package.widgets.recorder.OpusEncoder.nativeInitEncoder(int, int, int) (tried Java_app_package_widgets_recorder_OpusEncoder_nativeInitEncoder and Java_app_package_widgets_recorder_OpusEncoder_nativeInitEncoder__III)
                                                                    at app_package.widgets.recorder.OpusEncoder.nativeInitEncoder(Native Method)
                                                                    at app_package.widgets.recorder.OpusEncoder.init(OpusEncoder.java:46)
                                                                    at app_package.widgets.recorder.AudioThread.run(AudioThread.java:67)

Build lib

Hello.
Could you please tell me, how I can build a jar from your sources?
First of all want to know, how can build native part.

Opus file support

It would be great if library could create *.opus file with headers, comments, granules and other stuff

libsenz.so not found

java.lang.UnsatisfiedLinkError: dlopen failed: library "libsenz.so" not found

Any chance to get support for arm64-v8a?

I am trying to use this lib in my project and because of having Split armeabi-v7a and arm64-v8a in my Gradle for my other native codes, on runtime I get this exception that arm64-v8a version of "libsenz.so" doesn't exist.

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.germanautolabs.chris.cat.debug-_Xw4yLcz0YgVU2VJPo4ITQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.germanautolabs.chris.cat.debug-_Xw4yLcz0YgVU2VJPo4ITQ==/lib/arm64, /data/app/com.germanautolabs.chris.cat.debug-_Xw4yLcz0YgVU2VJPo4ITQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]] couldn't find "libsenz.so"

I unzipped the AAR file of opuscodec:v1.2.1.2 file and there is only armeabi-v7a, x86 and x86_64.
How much is a chance that you publish a version including arm64-v8a?

FYI, Google play is pushing apps to use arm64-v8a instead of armeabi-v7a!

Add License

I would use this, but I need to know what license it's under. Can you add an open source LICENSE file? I'd recommend Creative Commons as that is what Opus uses.

Open Source License

I ran an audit of all the open source libraries that we are currently using in our projects. Noticed that no open source licenses are published on this repo? Would it be possible to add one to your project?

Crash on x86 emulator

Got a crash when trying to init encoder on x86 emulator:
04-16 05:49:12.448 20393-20393/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.018/4662058:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 20319, tid: 20319, name: *** >>> *** <<<
signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0xcfe16825
eax cfe65c18 ebx cfe65c18 ecx cd6ab514 edx 00000070
esi 00000003 edi cd6ab514
xcs 00000023 xds 0000002b xes 0000002b xfs 0000006b xss 0000002b
eip cfe16825 ebp ffe4a518 esp ffe4a518 flags 00010296
04-16 05:49:12.449 20393-20393/? A/DEBUG: backtrace:
#00 pc 00011825 /data/app/-O5Bd1zQWVx2i8Lx1uydXsg==/lib/x86/libsenz.so (silk_VAD_Init+21)
#1 pc 00015d6a /data/app/
-O5Bd1zQWVx2i8Lx1uydXsg==/lib/x86/libsenz.so (silk_init_encoder+106)
#2 pc 000096a9 /data/app/-O5Bd1zQWVx2i8Lx1uydXsg==/lib/x86/libsenz.so (silk_InitEncoder+57)
04-16 05:49:12.450 20393-20393/? A/DEBUG: #3 pc 00043b64 /data/app/
-O5Bd1zQWVx2i8Lx1uydXsg==/lib/x86/libsenz.so (opus_encoder_init+340)
#4 pc 0005251f /data/app/-O5Bd1zQWVx2i8Lx1uydXsg==/lib/x86/libsenz.so (Java_com_score_rahasak_utils_OpusEncoder_nativeInitEncoder+63)
#5 pc 0001e6e8 /data/app/
-O5Bd1zQWVx2i8Lx1uydXsg==/oat/x86/base.odex (offset 0x1e000)
#6 pc 000d8fff [anon:libc_malloc:e9000000]
#7 pc 0000bb7f

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.