Comments (6)
Can you share the full logs?
from just_waveform.
Yes sure, thanks for the quick response.
I/System.out(18165): extractor format = {sample-rate=44100, track-id=1, durationUs=4551120, mime=audio/mp4a-latm, profile=2, channel-count=1, csd-0=java.nio.HeapByteBuffer[pos=0 lim=2 cap=2]}
I/System.out(18165): channel count = 1
I/System.out(18165): sample rate = 44100
I/System.out(18165): expected sample count = 200704
I/System.out(18165): samples per pixel: 678 = 44100 / 65
I/System.out(18165): scaled samples length = 592
E/libc (18165): Access denied finding property "ro.kirin.product.platform"
E/HwExtendedCodec(18165): mime: audio/mp4a-latm matching compontent failed!
I/OMXClient(18165): IOmx service obtained
I/ACodec (18165): In onAllocateComponent create compenent, codec name: OMX.google.aac.decoder
W/HwExtendedUtils(18165): hw configLocalPlayBack err = -2147483648
I/ACodec (18165): onStart
W/System.err(18165): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
W/System.err(18165): at android.media.MediaFormat.getInteger(MediaFormat.java:979)
W/System.err(18165): at com.ryanheise.just_waveform.WaveformExtractor.processAudio(WaveformExtractor.java:141)
W/System.err(18165): at com.ryanheise.just_waveform.WaveformExtractor$ProcessThread.run(WaveformExtractor.java:71)
I/System.out(18165): invokeMethod onError(Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference)
W/ACodec (18165): forcing OMX state to Idle when received shutdown in ExecutingState
from just_waveform.
Thanks, that is helpful. That means the error is occurring on this line (141):
outFormat.setInteger(MediaFormat.KEY_BIT_RATE, inFormat.getInteger(MediaFormat.KEY_BIT_RATE));
which means that the input format didn't contain the KEY_BIT_RATE
field. This should be guarded against nulls.
I will take a look at my next chance, but that may also give you some ideas on how to make your local copy work in the meantime.
from just_waveform.
Thank you very much!
from just_waveform.
Hi @AhmedbGayess would you like to try the latest commit on master
? Let me know if it works and I'll push out another release.
from just_waveform.
I'll close this since I committed that fix. If you still have the same issue with the latest release, comment below and I'll reopen.
from just_waveform.
Related Issues (20)
- [Bug] extracting few audio files in same time HOT 3
- Will there be windows and linux support? HOT 2
- audio/waveform.mp3 must be an existed file? HOT 3
- Is it possible to extract audio from Stream? HOT 1
- Hide logs in console HOT 10
- Is there a way to draw waveform from Uint8List directly from buffer ? HOT 3
- Web support HOT 3
- Question: Cant follow along with example code HOT 1
- add support window HOT 9
- Waveform from a Stream<Uint8List> HOT 1
- PlatformException(ExtAudioOpenURL error, ExtAudioOpenURL error, null, null) HOT 3
- extract from ipod-library HOT 3
- Frozen on 99% while generating. HOT 5
- How to cancel the waveform processing before done? HOT 2
- Example code load asset error HOT 5
- Detect silence and pauses within audio using the waveform generated HOT 7
- Align waveform bars to center HOT 1
- PlatformException(ExtAudioOpenURL error, ExtAudioOpenURL error, null, null) HOT 3
- Question : Whats codecs are supported with this plugin HOT 1
- large mp3 file size error HOT 4
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 just_waveform.