-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Wav file playback error #8388
Comments
Thanks for the high quality bug report! I think there are a couple of things going on here:
Once we fix (2) the stack trace will disappear, but the files will be treated as though they are zero duration with no content to be played, as per the specification. How have you implemented recording? Is it possible there's a bug in your recording code that's causing the issue with the generated files? If so then I think that's something you should resolve on your side. Note: If I override the |
Closing as "bad media" for now. The |
Thanks, it was indeed the Would you mind sharing what tools you used to debug this issue btw? We had tried to use all of the Android APIs available, and |
I didn't use any tools. I just used the ExoPlayer demo app to play the files, and added some break points and log lines directly into the ExoPlayer source code to figure out what was happening. |
Hi,
I'm unable to play back some
wav
files that I've recorded through my app. I've been able to record other files that I can play back though.The files in question:
Can play:
https://temp-audio-bucket-1.s3.ap-south-1.amazonaws.com/Recording+80.wav
Can't play:
https://temp-audio-bucket-1.s3.ap-south-1.amazonaws.com/Recording+1.wav,
https://temp-audio-bucket-1.s3.ap-south-1.amazonaws.com/Recording+76.wav
I've reproduced this issue in the sample app as well.
media.exolist.json
:For reference, I've got the same files working as expected when streaming them through the VLC Android app. (https://play.google.com/store/apps/details?id=org.videolan.vlc&hl=en_IN&gl=US)
Stacktrace that I see when trying to play
Recording 76
:which is similar to #8374 (comment) - though I have my doubts it's the same root cause as determined on that thread.
The difference in the
EventLogger
logs that I noticed seemed to point to the codec not getting initialized.Logs for Recording 1 (not working):
Logs for
Recording 80
(working):The codec
c2.android.raw.decoder
should support all these files in theory though.Please let me know if any further detail is needed!
The text was updated successfully, but these errors were encountered: