Comments (7)
I think the issue lies in FRAME option
Or writing the buffer to outputstream
from android-opus-codec.
What I'm aiming for:
Convert any audio to opus format at 24kbps bitrate
from android-opus-codec.
@omkar-tenkale I'm not sure but I think the problem is that the output file doesn't have the needed headers that a player can read and understand that the file is opus audio so that's why it failed to play.
from android-opus-codec.
Can you add some helper methods in the library eg
encodeToFile(InputStream input,File output,ProgressListener listener)
from android-opus-codec.
Can you please clarify use of FRAME_SIZE option and if it affects buffer size
Also which parameters affect final file size and how
eg Bitrate directly proportional to output file size
from android-opus-codec.
@omkar-tenkale sorry but currently I'm not planning to add methods for saving the output to file.
As for codec parameters - since this project it's just a wrapper around C implementation of opus you can check the official documentation here for encoder and here for decoder.
from android-opus-codec.
sorry but currently I'm not planning to add methods for saving the output to file.
Not a good news,hope you'll add it later
I'll be using this lib for converting audio to opus then,
https://github.com/tanersener/mobile-ffmpeg
Only drawback is its >30mb while this library is <1mb
from android-opus-codec.
Related Issues (19)
- crashed decoder on Android 6.0 HOT 5
- Java Usage HOT 1
- Enable/disable CBR/VBR mode
- Incorrect issue filled
- write the encoded byte[]
- License HOT 3
- FEC - how to use HOT 1
- Two OPUS instances mixing audio HOT 1
- App crash due to java.lang.ArrayIndexOutOfBoundsException: length=3; index=3 HOT 2
- [decode] error: corrupted stream HOT 1
- About opusenc.so
- Does not support Android 5.1?
- Opus 1.4 Update HOT 1
- Do I need to execute ndk-build command again ? HOT 2
- Build failed with an exception HOT 4
- How to add this library for encoding and decoding in VOIP app of 325 bytes? How to use .aar and use to encode and decode? A full detailed tutorial or blog post please! HOT 1
- .aar Issue libeasyopus.so not coming with Android .jar.. Only getting libopus.so and another .so file.. but no easyopus.so file.. ALSO ANOTHER ERROR HOT 1
- build failed: More than one file was found with OS independent path 'META-INF/opus_debug.kotlin_module'. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-opus-codec.