Author Topic: Latest BBC iPlayer changes  (Read 30 times)

0 Members and 1 Guest are viewing this topic.

Offline Ed

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Latest BBC iPlayer changes
« on: May 05, 2019, 04:23:31 AM »
Live Radio

Persists for 11 Hours

How to download a BBC radio programme in HIGH RESOLUTION (320 kbps) in Windows 7, from (for example) BBC Radio 4 Extra.

You can download the latest 11 hours of programmes, so this method will work for any radio show for up to 11 hours after it is broadcast.


This procedure uses these files:  http://www.mediafire.com/download/p7m8yo938aw60ya/AAC_320_kbps_HLS_streams.zip

The following details include modifications to take account of changes made by the BBC in the first quarter of 2019.


 • First, put the file WGET.EXE on the Desktop.

 • Then create a sub-directory (a new folder) on the Desktop,
   and put the five .BAT batch files in it (NOT wget.exe)



STAGE 1 : DOWNLOAD THE .TS FILES

 Run the .bat batch files in the following order:-

     1. Run batch file 1. This will download a .m3u8
        playlist file, containing text.


        CORRECTION (2019/05/05):

        Before running batch file 1, alter it as follows.
        Change the url address contained in it to:
       
        http://as-hls-uk-live.bbcfmt.hs.llnwd.net/pool_904/live/uk/bbc_radio_four_extra/bbc_radio_four_extra.isml/bbc_radio_four_extra-audio=320000.m3u8

        This reflects a recent change made by the BBC.


     2. Open the playlist file, using Notepad. It contains
        a list of filenames in the following format:

        bbc_radio_four_extra-audio=320000-123456789.ts

        There will be hundreds of these entries in the
        playlist file. They represent all the .ts files
        for the last three hours (each such .ts file
        contains 6 seconds of audio). The first entry
        in the playlist file is the oldest.

     3. This part of the filename is irrelevent:

        bbc_radio_four_extra-audio=320000-

     4. The relevent part is the final 9 characters, a
        9 digit number, which you type into batch file 2.

        To download the entire 3 hours, take that 9 digit
        number from the first entry in the playlist file.

        To choose your own starting point, take that 9 digit
        number from any later point in the playlist file.
        Ten entries in that file represent 1 minute of audio
        (6 seconds x 10), so 600 entries represent 1 Hour:
        10 entries (1 minute) x 60 = 600 entries (60 mins).
       
        From the playlist file you can choose any starting
        point in the 3 hours immediately before the time
        when you downloaded the .m3u8 playlist file.

        But you can, instead, choose any starting point in the
        11 hours before you downloaded the .m3u8 playlist file,
        by editing the 9 digit number. By deducting 600 from the
        9 digit number you go back 1 hour, so (for example) by
        deducting 6,000 you get a starting point of 10 hours ago.

        Run batch file 2, to download the .TS files containing
        the audio (MPEG-2 TS Video files, 6 seconds long, and
        containing audio only; each typically 262KB in size).


        CORRECTION (2019/05/05):

        Before running batch file 2, alter it as follows.
        Change the url address contained in it to:

        http://as-hls-uk-live.bbcfmt.hs.llnwd.net/pool_904/live/uk/bbc_radio_four_extra/bbc_radio_four_extra.isml

        This reflects a recent change made by the BBC.


STAGE 2 : JOIN THE .TS FILES INTO A SINGLE FILE

 Run the .bat batch files in the following order:-

     5. Make SURE the sub-directory containg the downloaded .TS
        files has its header line set to show these columns:

             Name
             Type
             Size
             Length
             Date


        The critical values are DATE (which shows the air date
        and time of each audio file), and LENGTH (which shows
        its length in seconds).

        You can play .TS files using Media Player Classic
        or VLC Media Player or GOM Player.

        Playing the downloaded files enables you to locate
        the start and end of the radio show you want.

     6. Delete any .ts files that are not part of the radio
        show you want.

        NB: Perhaps, at first, delete them to the Recycle bin
               in case you make a mistake.

     7. Run batch file 3, then batch file 4, to rename the
        .TS files you have chosen to keep.

     8. Type the 9 digit number from the .m3u8 file into
        batch file 5, to modify the following line:

          SET number=000000000

        (Replace the 9 zero's with the 9 digit number)

     9. Run batch file 5, in the sub-directory.

        This will create a new batch file, batch file 6,
        containing the list of files to be merged.

    10. Run batch file 6, in the sub-directory.

        All files in that directory with a higher number
        than the 9 digit number you took from the .m3u8
        playlist are merged into a single file.

    11. Delete all the 6-second long files. Keep only
        the output file (which will be obvious from its
        file size).

        You can play the file using Media Player Classic
        or VLC Media Player or GOM Player or Windows
        Media Player. This is an audio-only file, even
        though .ts is a video format.


        What you end up with is a file without an index.
        Some audio players will not mind, others will.

        To fix the problem, use FFMPEG.EXE to create
        an index for the file -

        Example  (for a .TS file containing AAC audio):

        ffmpeg.exe -i "file.ts" -acodec copy -bsf:a aac_adtstoasc -flags global_header "file.m4a"