-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SuperpoweredDecoder decodeAudio
Blocks Indefinitely For Some Sources
#779
Comments
Hey @pmarino, I can confirm that the issue can be reproduced. The decoder runs into an infinite loop while decoding this file. Please stay tuned while we further investigate the issue. |
Hi @ivannador, Thank you for looking into this issue. I noticed in the v2.6.8 release notes that there was a potential fix for the AAC decoding issue. However, after re-testing the affected source with the steps outlined above using v2.6.8, the issue still persists. |
@ivannador Any update on this? We are experiencing a higher than normal ANR rate in our mobile app due to this bug. |
Hey @tehsven We are looking into the issue, stay tuned. |
This file has some strange Huffman encoding that is not supported by our decoder. This file is not AAC-LC or HE-AAC, but some other variant. |
Thanks for the follow-up, @gaborszanto ! Interesting — when running From From |
I see this file has four tracks. Then maybe Superpowered is confused with those. Can you make it to include a single track? |
@gaborszanto , if we use ffmpeg -i example_recording.m4a -map 0:a:0 -c copy example_recording_single_track_audio.m4a example_recording_single_track_audio.m4a.zip
As noted earlier in this thread, the original |
Hi @ivannador, @gaborszanto & @pmarino The Google Recorder available on Google Play for Android devices with transcription and editing capabilities is reliably creating these unplayable files. We are receiving an increasing number of reports of our app hanging when attempting to play Google Recorder generated M4A files. How can we gracefully handle these files? Analyze returns an questionable waveform and the player does not return an error. Other players can play these files. Thank you. Your advice is appreciated. |
Superpowered version: 2.6.7
Describe the bug
When loading some sources into
SuperpoweredDecoder
,decodeAudio
will block indefinitely. I am able to reproduce the issue on numerous Android devices as well as macOS and Linux environments.I’ve attached a 32KHz / Mono .m4a which exhibits this issue in some of the latest Superpowered samples — the audio was directly exported from the Google Pixel Recorder app.
Steps to Reproduce
test.m4a
source in the root of theExamples_Linux
directory with the source aboveoffline1
,offline2
andoffline3
examplesExpected behavior
SuperpoweredDecoder
should return an error codeActual behavior
decodeAudio
blocks indefinitely and maxes out CPU usageLow-Latency-Android-iOS-Linux-Windows-tvOS-macOS-Interactive-Audio-Platform/Examples_Linux/src/offline1.cpp
Line 45 in c4c3daf
Device information
As noted above, I have been able to reproduce this issue on numerous Android devices and on macOS & Linux. I’ve attached device information for the Linux device that was used for testing the samples in this repository.
Additional context
Here is the output from
afinfo
for the attached source exhibiting the issue:example_recording.m4a.zip
The attached source plays as expected in various other players across iOS, Android and macOS, etc.
The text was updated successfully, but these errors were encountered: