Live radio stream problems/queries

dinkypumpkin dinkypumpkin at
Thu Oct 18 15:17:34 EDT 2012

On 18/10/2012 10:17, Richard Mace wrote:
> I like to record radio 3's Late Junction program. I have been doing this
> successfully via get_iplayer for a number of years, obviously, I
> only keep the recordings for 30 days....
> I like to use the live stream (rather than listen again) because of the
> higher bit rate.
> Lately, I have been having problems with the stream dropping out, this
> causes the recording to fail and I have to fall back to the listen again
> version.
> To do my recording I normally use:-
> get_iplayer 80134 --get --preset=liveradio
> --outputliveradio=/home/richard/radio/$program/ --stop=$program_length
> --force --over
> This is the one that has been dropping out.
> In an effort to get around the problem, I have reverted to the following
> method:-
> get_iplayer
> "" --get --preset=liveradio --outputtv=/home/richard/radio/$program/ --stop=$program_length --force --over
> This is the method I used previously and still seems to work (to early
> to tell whether will cure the drop_out problem as it may, in actual
> fact, be the same stream as previous method).

I don't think you'll be able to do much better than the equivalent of:

get_iplayer --get --type liveradio --mode flashaachigh 'BBC Radio 3'

plus the options particular to your setup.  The flashaachigh mode gives 
you the 320k stream.  I don't think there is another source for the 320k 
stream, so I'm not sure there is anything you can do with get_iplayer to 
cure the dropouts.

> While digging around trying to find a cure for this problem, I have been
> using Firefox's "Web Developer" add-on to try to extract the url's from
> iPlayer's links.
> For radio 3 HQ, I get the following:-
> "[10:03:28.774] GET
> [HTTP/1.1 200 OK 33ms]"
> I am a loss as to what part of this url can be used for get_iplayer as
> the format is completely different to the previous one.
> Can anyone here help me please?

That URL is not related to the media streams. If you filter the console 
log by "mediaselector" you'll come up with something like:

for the old radio site or:

for the new radio site.  The both carry the same information: the pieces 
required to construct the call to the media server, JSON-formatted for 
the web players.  They point to the same media streams, at least for 
Radio 3, which are the streams get_iplayer already uses.  There is no 
need to spelunk those URLs and construct those values since get_iplayer 
already generates the same values.  To compare for yourself, run:

get_iplayer --streaminfo --type liveradio 'BBC Radio 3'

More information about the get_iplayer mailing list