vbartacek/aacdecoder-android

Issues with some mp3 streams

Opened this issue · 2 comments

Hi!

I am unable to play some of the streams using Mp3Player from this library:

01-22 17:28:59.074 6478-14869/audio-example E/Mp3Player: AacPlayer exception http://ant-waw-01.cdn.eurozet.pl:8602
01-22 17:28:59.076 6478-14869/audio-example D/AudioPlayerService: Sending: audio-example:stream_error
01-22 17:28:59.076 6478-14872/audio-example D/BufferReader: run() stopped.
01-22 17:28:59.078 6478-14873/audio-example D/BufferReader: run() started....
01-22 17:28:59.082 6478-14868/audio-example D/BufferReader: next() awaken
01-22 17:28:59.082 6478-14868/audio-example D/Decoder: start() SYNC word found at offset=0
01-22 17:28:59.082 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.082 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.082 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.082 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 1024 bytes, status=12
01-22 17:28:59.082 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.082 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.083 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.083 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 1024 bytes, status=12
01-22 17:28:59.083 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.083 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.083 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.083 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 1024 bytes, status=12
01-22 17:28:59.083 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.083 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 838 bytes, status=12
01-22 17:28:59.084 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 419 bytes, status=12
01-22 17:28:59.084 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 209 bytes, status=12
01-22 17:28:59.084 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 105 bytes, status=12
01-22 17:28:59.084 6478-14868/audio-example D/Decoder[OpenCORE-MP3]: start() Status[0]: 12 - consumed 0 bytes
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() frame decode error=12
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 52 bytes, status=12
01-22 17:28:59.084 6478-14868/audio-example E/Decoder[OpenCORE-MP3]: start() init failed status=12
01-22 17:28:59.084 6478-14868/audio-example E/Decoder: start() failed err=-1
01-22 17:28:59.085 6478-14868/audio-example I/Decoder: stop() stopping native decoder

Any ideas how can fix this?

This stream plays without any problem using native Android MediaPlayer

Same issue here...Have you found any solutions?

+1