lincollincol / Amplituda

Audio processing library, which provides waveform data
Apache License 2.0
221 stars 31 forks source link

Error submitting a packet for decoding! #56

Open songiang95 opened 1 year ago

songiang95 commented 1 year ago

I has an issue when process long mp3 file (over 1 hour) download from youtube via (https://www.y2mate.com/). Please take a look.

lincollincol commented 1 year ago

@songiang95 Hello! Please, provide error logs or youtube video url

songiang95 commented 1 year ago

@songiang95 Hello! Please, provide error logs or youtube video url

Video url: https://www.youtube.com/watch?v=NP5NAwRZm0k I download audio of this video via https://www.y2mate.com/

Log:

linc.com.example I/System.out: Process audio: 1% 
linc.com.example I/System.out: Process audio: 2% 
linc.com.example I/System.out: Process audio: 3% 
linc.com.example I/System.out: Process audio: 4% 
linc.com.example I/System.out: Process audio: 5% 
linc.com.example I/System.out: Process audio: 6% 
linc.com.example I/System.out: Process audio: 7% 
linc.com.example I/System.out: Process audio: 8% 
linc.com.example I/System.out: Process audio: 9% 
linc.com.example I/System.out: Process audio: 10% 
linc.com.example I/System.out: Process audio: 11% 
linc.com.example I/System.out: Process audio: 12% 
linc.com.example I/System.out: Process audio: 100% 
linc.com.example E/AMPLITUDA: Processing time: 4.6440 seconds
linc.com.example I/System.out: Stop Progress
linc.com.example W/System.err: linc.com.amplituda.exceptions.processing.PacketSubmittingException: Error submitting a packet for decoding
linc.com.example W/System.err: Read Amplituda doc here: https://github.com/lincollincol/Amplituda
linc.com.example W/System.err:     at linc.com.amplituda.AmplitudaResultJNI.getExceptionFromCode(AmplitudaResultJNI.java:105)
linc.com.example W/System.err:     at linc.com.amplituda.AmplitudaResultJNI.getErrors(AmplitudaResultJNI.java:85)
linc.com.example W/System.err:     at linc.com.amplituda.AmplitudaProcessingOutput.<init>(AmplitudaProcessingOutput.java:32)
linc.com.example W/System.err:     at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:364)
linc.com.example W/System.err:     at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:218)
linc.com.example W/System.err:     at linc.com.example.MainActivity.onCreate(MainActivity.java:27)
linc.com.example W/System.err:     at android.app.Activity.performCreate(Activity.java:7383)
linc.com.example W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
linc.com.example W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3256)
linc.com.example W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
linc.com.example W/System.err:     at android.app.ActivityThread.-wrap12(Unknown Source:0)
linc.com.example W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
linc.com.example W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:108)
linc.com.example W/System.err:     at android.os.Looper.loop(Looper.java:166)
linc.com.example W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:7529)
linc.com.example W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
linc.com.example W/System.err:     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
linc.com.example W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
linc.com.example I/System.out: Audio info:
linc.com.example I/System.out: millis = 4633208
linc.com.example I/System.out: seconds = 4633
linc.com.example I/System.out: 
linc.com.example I/System.out: source = /storage/emulated/0/nonstop3.mp3
linc.com.example I/System.out: source type = PATH
linc.com.example I/System.out: 
linc.com.example I/System.out: Amplitudes:
linc.com.example I/System.out: size: = 22205
fus3rx commented 1 year ago

W/System.err: linc.com.amplituda.exceptions.processing.PacketSubmittingException: Error submitting a packet for decoding! W/System.err: Read Amplituda doc here: https://github.com/lincollincol/Amplituda W/System.err: at linc.com.amplituda.AmplitudaResultJNI.getExceptionFromCode(AmplitudaResultJNI.java:105) W/System.err: at linc.com.amplituda.AmplitudaResultJNI.getErrors(AmplitudaResultJNI.java:85) W/System.err: at linc.com.amplituda.AmplitudaProcessingOutput.(AmplitudaProcessingOutput.java:32) W/System.err: at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:394) W/System.err: at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:74) W/System.err: at com.masoudss.lib.utils.WaveformOptions.getSampleFrom(WaveformOptions.kt:13) W/System.err: at com.masoudss.lib.WaveformSeekBar.setSampleFrom(WaveformSeekBar.kt:220) W/System.err: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) W/System.err: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) W/System.err: at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) W/System.err: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) W/System.err: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) W/System.err: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) W/System.err: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) W/System.err: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

thirumalVenket12 commented 10 months ago

Am also having the same issue which is posted above one.

am fetching the wave from the MP3 file it's having the same issue

linc.com.amplituda.exceptions.processing.PacketSubmittingException: Error submitting a packet for decoding! 2024-01-24 12:52:02.552 27884-27884 System.err W Read Amplituda doc here: https://github.com/lincollincol/Amplituda 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.AmplitudaResultJNI.getExceptionFromCode(AmplitudaResultJNI.java:105) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.AmplitudaResultJNI.getErrors(AmplitudaResultJNI.java:85) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.AmplitudaProcessingOutput.(AmplitudaProcessingOutput.java:32) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:364) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:74) 2024-01-24 12:52:02.553 27884-27884 System.err W at com.masoudss.lib.utils.WaveformOptions.getSampleFrom(WaveformOptions.kt:13) 2024-01-24 12:52:02.553 27884-27884 System.err W at com.masoudss.lib.WaveformSeekBar.setSampleFrom(WaveformSeekBar.kt:226)

thirumalVenket12 commented 10 months ago

Am also having the same issue which is posted above one.

am fetching the wave from the MP3 file it's having the same issue

linc.com.amplituda.exceptions.processing.PacketSubmittingException: Error submitting a packet for decoding! 2024-01-24 12:52:02.552 27884-27884 System.err W Read Amplituda doc here: https://github.com/lincollincol/Amplituda 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.AmplitudaResultJNI.getExceptionFromCode(AmplitudaResultJNI.java:105) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.AmplitudaResultJNI.getErrors(AmplitudaResultJNI.java:85) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.AmplitudaProcessingOutput.(AmplitudaProcessingOutput.java:32) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:364) 2024-01-24 12:52:02.553 27884-27884 System.err W at linc.com.amplituda.Amplituda.processAudio(Amplituda.java:74) 2024-01-24 12:52:02.553 27884-27884 System.err W at com.masoudss.lib.utils.WaveformOptions.getSampleFrom(WaveformOptions.kt:13) 2024-01-24 12:52:02.553 27884-27884 System.err W at com.masoudss.lib.WaveformSeekBar.setSampleFrom(WaveformSeekBar.kt:226)

@lincollincol any update on the above issue

ArturMazay commented 1 month ago

Тоже такая ошибка вылетает, пофиксите?