Open aifer2007 opened 7 years ago
cg.mp3 info:
bit rate: 192 kbps sample rate: 44.100 kHz id3 : v2.3 code format : Lavf56.4.101
May I send the mp3 to you?
Sure, just upload it to Google Drive or something. You can send the link to buschfunk@yahoo.com if you don't want to write it here.
Hi, @MrBuddyCasino ,
I have sent the mp3 file to buschfunk@yahoo.com.
I try much aac and m4a , but always get errors like this:
E (7062) audio_player: unknown mime type: 0
E (7062) audio_player: failed to start decoder task
Your webserver might be misconfigured - you need to send the proper mime type header. audio/aac => .aac audio/mp4 => .mp4 audio/x-m4a => .m4a audio/mpeg => .mp3
Oh, I’ll try.
在 2017年5月16日,下午4:09,Michael Böckling notifications@github.com 写道:
Your webserver might be misconfigured - you need to send the proper mime type header. audio/aac => .aac audio/mp4 => .mp4 audio/x-m4a => .m4a audio/mpeg => .mp3
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MrBuddyCasino/ESP32_MP3_Decoder/issues/8#issuecomment-301708119, or mute the thread https://github.com/notifications/unsubscribe-auth/AG9XGj4awxzf6cbpnSHnLYkirUlmmzBxks5r6VnXgaJpZM4NbHbS.
Hi, I've problem with underflow buffer when I listen music via URL. The Error is this type "buffer underflow". I think the problem is the internet conection. But, i think that 10Mb of bandwidht the internet is sufficient for streaming radio.
E (7132) decoder: Buffer underflow, need 2881 bytes. E (7142) decoder: Buffer underflow, need 2881 bytes. E (7142) decoder: Buffer underflow, need 2881 bytes. E (7152) decoder: Buffer underflow, need 2881 bytes. E (7152) decoder: Buffer underflow, need 2881 bytes. E (7162) decoder: Buffer underflow, need 2881 bytes. E (7162) decoder: Buffer underflow, need 2881 bytes. E (7172) decoder: Buffer underflow, need 2881 bytes. E (7182) decoder: Buffer underflow, need 2881 bytes. E (7182) decoder: Buffer underflow, need 2881 bytes. E (7192) decoder: Buffer underflow, need 2881 bytes. E (7192) decoder: Buffer underflow, need 2881 bytes. E (7202) decoder: Buffer underflow, need 2881 bytes. E (7202) decoder: Buffer underflow, need 2881 bytes. E (7212) decoder: Buffer underflow, need 2881 bytes.
Best regards.
@pablomorales88 you can try increasing the buffer via #define SPIRAMSIZE to maybe 64k in spiram_fifo.c. Other than that, you might have crappy wifi or a particular problematic station, try to experiment. Also please open a separate issue next time, this is getting confusing.
Thank you for response, but, I still have the same problem and now I am trying to. Best Regards.
I (27229) mad_decoder: decoder start I (27929) audio_player: Buffer fill 95%, 30699 bytes I (28879) audio_player: Buffer fill 95%, 30686 bytes E (31319) mad_decoder: Buffer underflow, need 2881 bytes. E (31319) mad_decoder: Buffer underflow, need 2881 bytes. E (31319) mad_decoder: Buffer underflow, need 2881 bytes. E (31329) mad_decoder: Buffer underflow, need 2881 bytes. E (31329) mad_decoder: Buffer underflow, need 2881 bytes. E (31339) mad_decoder: Buffer underflow, need 2881 bytes. E (31349) mad_decoder: Buffer underflow, need 2881 bytes. E (31349) mad_decoder: Buffer underflow, need 2881 bytes. E (31359) mad_decoder: Buffer underflow, need 2881 bytes. E (31359) mad_decoder: Buffer underflow, need 2881 bytes. E (31369) mad_decoder: Buffer underflow, need 2881 bytes. E (31379) mad_decoder: Buffer underflow, need 2881 bytes. E (31379) mad_decoder: Buffer underflow, need 2881 bytes. E (31389) mad_decoder: Buffer underflow, need 2881 bytes. E (31389) mad_decoder: Buffer underflow, need 2881 bytes. E (31399) mad_decoder: Buffer underflow, need 2881 bytes. E (31409) mad_decoder: Buffer underflow, need 2881 bytes. E (31409) mad_decoder: Buffer underflow, need 2881 bytes. E (31419) mad_decoder: Buffer underflow, need 2881 bytes. E (31419) mad_decoder: Buffer underflow, need 2881 bytes. E (31429) mad_decoder: Buffer underflow, need 2881 bytes. E (31439) mad_decoder: Buffer underflow, need 2881 bytes. E (31439) mad_decoder: Buffer underflow, need 2881 bytes. E (31449) mad_decoder: Buffer underflow, need 2881 bytes. E (31459) mad_decoder: Buffer underflow, need 2881 bytes. E (31459) mad_decoder: Buffer underflow, need 2881 bytes. E (31469) mad_decoder: Buffer underflow, need 2881 bytes.
I met the same problem.Maybe the reason is that the network is not well.I suggest that adding a xTaskDelay() in MP3_decoder.c:Line 79 if the buffer underflow.Or the task can't feed the watchdog and the chip will restart.After a few seconds it may be work well when showing this err.
`ESP_LOGE(TAG, "Buffer underflow, need %d bytes.", buf_free_capacity_after_purge(buf));
buf_underrun_cnt++;
//We both silence the output as well as wait a while by pushing silent samples into the i2s system.
//This waits for about 200mS
renderer_zero_dma_buffer();
vTaskDelay(1 / portTICK_PERIOD_MS); `
Waiting until the buffer is x % full before resuming playback (instead of immediately) might fix it.
vTaskDelay(500/ portTICK_PERIOD_MS);
That is better.
i have the same problem as donny681. Buffer underflow
where must i write the "vTaskDelay(500/ portTICK_PERIOD_MS);" ?? or there are other ways to fix it?
Here is my Log:
[0m [0;32mI (5841) http_client: ... socket send success[0m [0;32mI (6861) audio_player: Buffer fill 25%, 16026 bytes[0m [0;32mI (7781) audio_player: Buffer fill 49%, 31998 bytes[0m [0;32mI (8611) audio_player: Buffer fill 75%, 48009 bytes[0m [0;32mI (9521) audio_player: RAM left 143352[0m [0;32mI (9521) audio_player: created decoder task: mp3_decoder_task[0m [0;32mI (9521) mad_decoder: decoder start[0m [0;31mE (9531) mad_decoder: dec err 0x0235 (bad main_data_begin pointer)[0m [0;31mE (9531) mad_decoder: dec err 0x0235 (bad main_data_begin pointer)[0m [0;32mI (9841) audio_player: Buffer fill 79%, 51061 bytes[0m [0;32mI (11061) audio_player: Buffer fill 42%, 26896 bytes[0m [0;32mI (12291) audio_player: Buffer fill 8%, 5264 bytes[0m [0;31mE (12591) mad_decoder: Buffer underflow, need 2572 bytes.[0m [0;31mE (12591) mad_decoder: Buffer underflow, need 2572 bytes.[0m [0;31mE (12591) mad_decoder: Buffer underflow, need 2572 bytes.[0m [0;31mE (12741) mad_decoder: Buffer underflow, need 2861 bytes.[0m [0;31mE (12741) mad_decoder: Buffer underflow, need 2861 bytes.[0m [0;31mE (12741) mad_decoder: Buffer underflow, need 2861 bytes.[0m [0;31mE (12741) mad_decoder: Buffer underflow, need 2861 bytes.[0m [0;31mE (12751) mad_decoder: Buffer underflow, need 2861 bytes.[0m
Please can help me anyone??
I'm also facing the same Buffer underflow issue.
"vTaskDelay(500/ portTICK_PERIOD_MS);" made no difference.
I can confirm the esa-n fork by Yu Xutian works flawlessly: https://github.com/esa-n/ESP32_MP3_Decoder.git
Yes, you are right @danxster
It gets a lot better when AAC support is left out, because more RAM is available to buffering. This could be optimized to work much better for MP3 decoding. Not sure if I have the time for that currently.
Some mp3 file will make the decoder crash.
…