Skip to content

Instantly share code, notes, and snippets.

@mateuszszulc
Forked from stengland/BBC-Radio.m3u
Last active March 13, 2021 14:57
Show Gist options
  • Save mateuszszulc/e21c1c16cc9749cc1170 to your computer and use it in GitHub Desktop.
Save mateuszszulc/e21c1c16cc9749cc1170 to your computer and use it in GitHub Desktop.
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
#EXTINF:-1,BBC - Radio 2
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
#EXTINF:-1,BBC - Radio 3
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls
#EXTINF:-1,BBC - Radio 4
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
#EXTINF:-1,BBC - Radio 5 live
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio5live_mf_p
#EXTINF:-1,BBC - Radio 6
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_6music_mf_p
#EXTINF:-1,BBC - Radio 1 Extra
http://www.bbc.co.uk/radio/listen/live/r1x_aaclca.pls
#EXTINF:-1,BBC - Radio 4 Extra
http://www.bbc.co.uk/radio/listen/live/r4x_aaclca.pls
#EXTINF:-1,BBC - Radio 5 Live sports extra
http://www.bbc.co.uk/radio/listen/live/r5lsp_aaclca.pls
#EXTINF:-1,BBC - Radio Asian Network
http://www.bbc.co.uk/radio/listen/live/ran_aaclca.pls
# GistID: 8705765
@thedgm
Copy link

thedgm commented May 15, 2017

$ ffprobe -i http://bbcmedia.ic.llnwd.net/stream/bbcmedia_6music_mf_p
ffprobe version 3.3 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 6.3.1 (GCC) 20170306
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-netcdf --enable-shared --enable-version3
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[mp3 @ 0x56108e830d00] Skipping 335 bytes of junk at 0.
Input #0, mp3, from 'http://bbcmedia.ic.llnwd.net/stream/bbcmedia_6music_mf_p':
  Metadata:
    icy-name        : bbc_6music
    icy-public      : 0
    StreamTitle     : 
  Duration: N/A, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
$ 

@ohsevin
Copy link

ohsevin commented Nov 20, 2017

@thedgm : what did that command do productively for you? i tried it in an emulator and didn't see any real result from said string? I also attempted it on my secondary machine all machines of which are using or have installed ability to access of Linux.

titz and cheerz

@diroussel
Copy link

The above ffprobe output shows the stream is MP3. For an AAC stream you can use this:

http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8

@diroussel
Copy link

$ ffprobe http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_6music/bbc_6music.isml/bbc_6music-audio%3d320000.norewind.m3u8
ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[hls @ 0x7fe6d0002a00] Skip ('#EXT-X-VERSION:3')
[hls @ 0x7fe6d0002a00] Skip ('## Created with Unified Streaming Platform(version=1.8.4)')
[hls @ 0x7fe6d0002a00] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x7fe6d0002a00] Skip ('#USP-X-TIMESTAMP-MAP:MPEGTS=6063970208,LOCAL=2020-03-18T10:48:44.800000Z')
[hls @ 0x7fe6d0002a00] Skip ('#EXT-X-PROGRAM-DATE-TIME:2020-03-18T10:48:44.800000Z')
[hls @ 0x7fe6d0002a00] Opening 'http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_6music/bbc_6music.isml/bbc_6music-audio=320000-247582585.ts' for reading
[hls @ 0x7fe6d0002a00] Opening 'http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_6music/bbc_6music.isml/bbc_6music-audio=320000-247582586.ts' for reading
Input #0, hls, from 'http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_6music/bbc_6music.isml/bbc_6music-audio%3d320000.norewind.m3u8':
  Duration: N/A, start: 67390.246756, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0

@woelfl
Copy link

woelfl commented Mar 12, 2021

The above ffprobe output shows the stream is MP3. For an AAC stream you can use this:

http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8

Hm... 403 Forbidden..?

$ ffprobe -i http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8
ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.10.44.4)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfdk-aac
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[hls @ 0x7f9d28804600] Skip ('#EXT-X-VERSION:3')
[hls @ 0x7f9d28804600] Opening 'http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_6music/bbc_6music.isml/bbc_6music-audio%3d320000.norewind.m3u8' for reading
[http @ 0x7f9d26f020c0] HTTP error 403 Forbidden
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_6music.m3u8: Server returned 403 Forbidden (access denied)

@diroussel
Copy link

Still working for me. There's probably a geo ip restriction. You might need a UK IP address to access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment