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
Streaming the new BBC sounds streams fail. #1097
Comments
The error is 403 forbidden so they are somehow blocking unknown consumers I guess, may be just by using the UserAgent. |
I don't know where the difference(s) are but if I take the same URL and start it via vlc player or similar, it works fine. The old URL's are not phased out yet.. I believe it's scheduled to happen in June. listening to the mp3 url you get announcements about changes to the streaming service - but apart from that it works.. |
Finally had time to look at this. Fixed in MA 2.0 beta 16 |
@Symbiot78 I'd appreciate it if you could kindly provide streaming links for other BBC Radio channels - 1, 3, 4/Extra, 5, etc. You provided the following for Radio 2, and it works really well: http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio%3d48000.norewind.m3u8 |
The above are ~48 kbps SBR VBR AAC. For UK listeners, 96 kbps is the maximum available for non-UK IPs. For UK listeners ~128 and ~320 kbps variants are available if you replace "48000" with "128000" or "320000" in the URLs. |
What version of Music Assistant has the issue?
2023.2.1
The problem
The new bbc sounds stream use a different codec from the old (mp3)
How to reproduce
try streaming one of the new urls
Relevant log output
2023-02-11 09:23:54.736 WARNING (MainThread) [music_assistant.music.file] Could not parse uri/file http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8 to track: Unable to retrieve info for http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio%3d320000.norewind.m3u8: Server returned 403 Forbidden (access denied)
2023-02-11 09:23:55.294 WARNING (MainThread) [music_assistant.music.file] Could not parse uri/file http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8 to track: Unable to retrieve info for http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio%3d320000.norewind.m3u8: Server returned 403 Forbidden (access denied)
2023-02-11 09:24:00.774 WARNING (MainThread) [music_assistant.music.file] Could not parse uri/file http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_two.m3u8 to track: Unable to retrieve info for http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio%3d128000.norewind.m3u8: Server returned 403 Forbidden (access denied)
2023-02-11 09:24:00.784 INFO (MainThread) [music_assistant] Finished job [Add file://playlist/radiostationsplaylistm3u to database] in 7.05 seconds.
2023-02-11 09:24:00.791 WARNING (MainThread) [music_assistant.music.file] Could not parse uri/file http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_two.m3u8 to track: Unable to retrieve info for http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio%3d128000.norewind.m3u8: Server returned 403 Forbidden (access denied)
2023-02-11 09:24:16.358 INFO (MainThread) [music_assistant.players.stream] Start Streaming queue track: url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_vlow/ak/bbc_radio_two.m3u8 (bbc_radio_two-audio%3d48000) for queue Køkken - crossfade: False
2023-02-11 09:24:22.891 INFO (MainThread) [uamqp.async_ops.client_async] Keeping 'ReceiveClientAsync' connection alive. b'SBReceiver-0bd395c3-3d82-4816-9519-fd5138cc4149'
2023-02-11 09:24:22.910 WARNING (MainThread) [music_assistant.players.stream] Stream error on url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_vlow/ak/bbc_radio_two.m3u8
2023-02-11 09:24:22.911 INFO (MainThread) [music_assistant.players.stream] Start Streaming queue track: url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_radio_two.m3u8 (bbc_radio_two-audio%3d48000) for queue Køkken - crossfade: False
2023-02-11 09:24:27.036 INFO (MainThread) [music_assistant.players.stream] Start Streaming queue track: url://radio/http://stream.live.vc.bbcmedia.co.uk/bbc_radio_two (BBC Radio) for queue Køkken - crossfade: False
2023-02-11 09:24:29.429 WARNING (MainThread) [music_assistant.helpers.audio] Could not determine integrated loudness of url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_vlow/ak/bbc_radio_two.m3u8 - ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219
configuration: --prefix=/usr --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --disable-debug
libavutil 57. 17.100 / 57. 17.100
libavcodec 59. 18.100 / 59. 18.100
libavformat 59. 16.100 / 59. 16.100
libavdevice 59. 4.100 / 59. 4.100
libavfilter 8. 24.100 / 8. 24.100
libswscale 6. 4.100 / 6. 4.100
libswresample 4. 3.100 / 4. 3.100
libpostproc 56. 3.100 / 56. 3.100
[hls @ 0x7f3ae0a7f000] Skip ('#EXT-X-VERSION:3')
[hls @ 0x7f3ae0a7f000] Skip ('## Created with Unified Streaming Platform(version=1.8.4)')
[hls @ 0x7f3ae0a7f000] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x7f3ae0a7f000] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=1506857888,LOCAL=2023-02-11T08:24:19.200000Z')
[hls @ 0x7f3ae0a7f000] Skip ('#EXT-X-PROGRAM-DATE-TIME:2023-02-11T08:24:19.200000Z')
[hls @ 0x7f3ae0a7f000] Failed to open segment 261891231 of playlist 0
[hls @ 0x7f3ae0a7f000] Failed to open segment 261891232 of playlist 0
[hls @ 0x7f3ae0a7f000] Failed to open segment 261891233 of playlist 0
[pipe @ 0x7f3ae0a70700] Protocol 'pipe' not on whitelist 'crypto,data'!
[hls @ 0x7f3ae0a7f000] Failed to reload playlist 0
[hls @ 0x7f3ae0a7f000] Error when loading first segment 'pipe:bbc_radio_two-audio=48000-261891229.ts'
pipe:: Invalid argument
2023-02-11 09:24:29.430 INFO (MainThread) [music_assistant] Finished job [Analyze audio for url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_vlow/ak/bbc_radio_two.m3u8] in 6.52 seconds.
2023-02-11 09:24:29.542 WARNING (MainThread) [music_assistant.players.stream] Stream error on url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_radio_two.m3u8
2023-02-11 09:24:29.543 INFO (MainThread) [music_assistant.players.stream] Start Streaming queue track: url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_radio_two.m3u8 (bbc_radio_two-audio%3d48000) for queue Køkken - crossfade: False
2023-02-11 09:24:31.890 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2023-02-11 09:24:31.890 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2023-02-11 09:24:36.064 WARNING (MainThread) [music_assistant.helpers.audio] Could not determine integrated loudness of url://radio/http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_radio_two.m3u8 - ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
Additional information
I have tried a bunch of different BBC sounds urls.. and none seem to work.
the mp3 versions (which are being phased out in 2023) work.
but the new stream simply do not work.
this is an example of an m3u8 file downloaded from a link:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=50880,CODECS="mp4a.40.5"
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio%3d48000.norewind.m3u8
if I insert the link in the m3u8 (the next m3u8)
I get a new file containing:
#EXTM3U
#EXT-X-VERSION:3
Created with Unified Streaming Platform(version=1.8.4)
#EXT-X-MEDIA-SEQUENCE:261891269
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:6
#USP-X-TIMESTAMP-MAP:MPEGTS=1529897888,LOCAL=2023-02-11T08:28:35.200000Z
#EXT-X-PROGRAM-DATE-TIME:2023-02-11T08:28:35.200000Z
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891269.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891270.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891271.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891272.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891273.ts
What version of Home Assistant Core are your running
2023.2.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Linux
The text was updated successfully, but these errors were encountered: