ESP32-audioI2S icon indicating copy to clipboard operation
ESP32-audioI2S copied to clipboard

BBC stations are not working

Open hevet opened this issue 6 months ago • 6 comments

Hi. After recent fixes BBC stations have stopped working.

http://as-hls-ww-live.akamaized.net/pool_62063831/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d320000.norewind.m3u8

Links work in foobar.

hevet avatar May 21 '25 18:05 hevet

Hello @hevet,

Indeed, I have made a mistake. It will now work again.

schreibfaul1 avatar May 21 '25 18:05 schreibfaul1

Thanks, it works. :)

hevet avatar May 21 '25 19:05 hevet

Hi, im still getting this issue. using an ESP32-S3. It should have PSRAM, added the "-DBOARD_HAS_PSRAM" buildflag too in PlatformIO, and other streams are working fine.

ChrisAbra avatar Jun 06 '25 16:06 ChrisAbra

http://lstn.lv/bbcradio.m3u8?station=bbc_radio_one&bitrate=96000                                           // BBC Radio 1
http://lstn.lv/bbcradio.m3u8?station=bbc_1xtra&bitrate=96000                                               // BBC Radio 1Xtra
http://lstn.lv/bbcradio.m3u8?station=bbc_radio_one_dance&bitrate=96000                                     // BBC Radio 1 Dance
http://lstn.lv/bbcradio.m3u8?station=bbc_radio_two&bitrate=96000                                           // BBC Radio 2
http://lstn.lv/bbcradio.m3u8?station=bbc_radio_three&bitrate=96000                                         // BBC Radio 3
http://lstn.lv/bbcradio.m3u8?station=bbc_radio_fourfm&bitrate=96000                                        // BBC Radio 4
http://lstn.lv/bbcradio.m3u8?station=bbc_radio_five_live&bitrate=48000                                     // BBC Radio 5 live
http://lstn.lv/bbcradio.m3u8?station=bbc_6music&bitrate=48000                                              // BBC Radio 6 Music

looks good with the ESP32-S3

schreibfaul1 avatar Jun 06 '25 16:06 schreibfaul1

Hmm - im still not getting sound or an error - on an older ESP32 i was getting a PSRAM warning. This is a N16R8, 8M of PSRAM.

These are my build.ino and its just silence - is there a way to get more debugging information after connect?

[env:esp32-devkit]
platform = espressif32
board = esp32-s3-devkitc-1-n16r8v
framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
lib_deps = 
	tzapu/WiFiManager@^2.0.17
	esphome/ESP32-audioI2S@^2.2.0
	exocet22/btAudio@^1.1.0
	mathertel/OneButton@^2.6.1
	esphome/ESPAsyncWebServer-esphome@^3.3.0
board_build.partitions = no_ota.csv
build_flags =
	-D ARDUINO_USB_MODE=1
	-D ARDUINO_USB_CDC_ON_BOOT=1
	-D BOARD_HAS_PSRAM=1

the the info callback logs out:

info        Connect to new host: "http://lstn.lv/bbcradio.m3u8?station=bbc_6music&bitrate=48000"
info        buffers freed, free Heap: 210464 bytes
info        Connection has been established in 20 ms, free Heap: 209860 bytes

info        new request: "http://as-hls-ww-live.akamaized.net/pool_81827798/live/ww/bbc_6music/bbc_6music.isml/bbc_6music-audio%3d48000.norewind.m3u8"

it looks like it might be mis-handling a redirect.

edit: Dug a little further through audio.cpp, It's assuming the file is AAC Transport Stream ('application/vnd.apple.mpegurl' then 'video/mp2t') which im unable to verify but other assumptions throw more errors. It's odd cause i'm not getting any exceptions of errors, it just doesn't play (other streams do)

ChrisAbra avatar Jun 06 '25 16:06 ChrisAbra

[env:esp32-s3-devkitc-1-n16r8v]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip
board = esp32-s3-devkitc1-n16r8
framework = arduino
lib_deps =
    https://github.com/schreibfaul1/ESP32-audioI2S.git
    https://github.com/tzapu/WiFiManager
    https://github.com/ESP32Async/AsyncTCP
    https://github.com/ESP32Async/ESPAsyncWebServer
    https://github.com/mathertel/OneButton
    
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board_build.partitions = huge_app.csv
build_flags = 
	-DARDUINO_USB_MODE=1
	-DARDUINO_USB_CDC_ON_BOOT=1

I think my issue was using the esphome fork which comes default in platformio and i dont think you manage (although i was a bit confused) - sorry about that - got the bbc streams working with linking directly to the git like above. Thanks!

ChrisAbra avatar Jun 06 '25 23:06 ChrisAbra

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 07 '25 03:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 21 '25 03:07 github-actions[bot]