Coder Social home page Coder Social logo

Comments (6)

ryanheise avatar ryanheise commented on June 4, 2024

Can you share the full logs?

from just_waveform.

AhmedbGayess avatar AhmedbGayess commented on June 4, 2024

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.

ryanheise avatar ryanheise commented on June 4, 2024

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.

AhmedbGayess avatar AhmedbGayess commented on June 4, 2024

Thank you very much!

from just_waveform.

ryanheise avatar ryanheise commented on June 4, 2024

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.

ryanheise avatar ryanheise commented on June 4, 2024

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)

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.