|
Jul 12 2008
|
Good news! get_iplayer v0.46 now indexes, searches, downloads or streams all BBC podcasts. Just use the –type=podcast or –type=all option to enable this. The podcasts appear to be in either mp3 or aac format so no transcoding is required.
Hi,
Loving the radio download ability. I was wondering though if it was possible to output as a WAV rather than doing the transcode to mp3, perhaps a –wav switch? All my stuff is in OGG Vorbis so having a WAV to encode would be better than re-encoding an mp3.
Cheers for the continual development, keep up the good work.
Regards,
Wm.
… Oh sorry, one other thing. It is only possible to download 1 radio program at a time, if more than one is downloading at a time, then they all use the same transcoding pipe and overwrite each other. Not sure if this is a bug or not, just thought I’d mention it.
c:\>perl get_iplayer –pid b00cj9fm
INFO: Attempting to Download: –
Getting iplayer programme page INFO: Checking existence of programme
INFO: File name prefix = The_Chris_Moyles_Show_-_16_07_2008_b00cj9fm
POSIX::mkfifo not implemented on this architecture at get_iplayer line 1514.
What did I do wrong?
@wm.wragg,
I’ve added the –wav option for streaming and saving of radio files. Also, at least on Linux I don’t see the same problem with multiple radio downloads going to the same file – seems to work just fine for me. What platform are you using?
@Alex,
It’s probably because you are using ActivePerl which I have discovered cannot support named pipes/fifos which i required by mplayer to do the transcoding to mp3. However, all is not lost, try the new version (get_iplayer –update) and it now should gfall-back to saving the radio downloads directly to wav format files. (if there is any problem with that let me know and use –wav option to force that behaviour for now)
great bit of software, has replaced Net Transport (Windows) for my daily radio 4/7 fix. You mention multiple radio downloads, I was wondering how. If I want a series of IDs say 10052,10097 and 10056 is there any command that I can include all of them? I’ve tried multiple terminal windows but I got the error :
Can’t call method “scheme” on an undefined value at /usr/share/perl5/HTTP/Cookies.pm line 44.
Sorry if this is a simple question, have been using windows for years and haven’t touched a command line since my old DOS / UNIX days last century
Thx
Ian
@Ian,
There are some more examples hidden at this URL: https://linuxcentre.net/get_iplayer/README.txt
I’m glad you are finding it so useful! What you want is really easy: just type:
get_iplayer –type=radio –get 10052 10097 10056
That should do it
sorry had looked at the readme but hadn’t noticed that line.
thx
Ian
Cheers. I am now getting WAV files much appreciated. If you don\’t add the –wav switch, it still outputs WAV files though.
I tried running two simultaneous downloads in different terminal windows (I am running Ubuntu – Hardy Heron), and there was no conflict, both files had the correct download in them, not intermingled. It must just have been something I did.
Regards,
Wm.
@wm.wragg,
Ah! I see. With radio, if you do simultaneous downloads, both will try to use the same fifo… Darn a bug… Will fix that now. Thanks. I originally thought you meant two downloads using the same command line for different programmes
Yes, also a bug in –wav option got my login reversed… await v0.52
I tried these two, and they still don’t seem to work. (Using v.0.52
c:\>perl get_iplayer –pid b00cj9fm –wav
INFO: Attempting to Download: –
Getting iplayer programme page INFO: Checking existence of programme
INFO: File name prefix = The_Chris_Moyles_Show_-_16_07_2008_b00cj9fm
POSIX::mkfifo not implemented on this architecture at get_iplayer line 1532.
c:\>perl get_iplayer –wav –pid b00cj9fm
INFO: Attempting to Download: –
Getting iplayer programme page INFO: Checking existence of programme
INFO: File name prefix = The_Chris_Moyles_Show_-_16_07_2008_b00cj9fm
POSIX::mkfifo not implemented on this architecture at get_iplayer line 1532.
@Alex,
Make sure you specify the path to mplayer using ‘–mplayer path\to\mplayer.exe’ if it complains.
Sorry, didn’t realize that mkfifo was fatal… Fixed now in version 0.53 and actually tested on ActivePerl
Hi,
Just downloaded 0.53, the simultaneous downloads are working fine now, thanks, though with 0.53 the file stays as filename.partial.wav rather than filename.wav when it’s finished. Seems to play ok though. Just tried it with the mp3 download, and that is left as filename.partial.mp3 when it is finished as well.
Cheers,
Wm.
@wm.wragg, Think that is fixed now in 0.54. Due to mishandling sigchld…
Yep, that’s done he trick. Much appreciated.
Thanks, seems to be working much better now, will report back when it’s finshed downloading.
Still getting errors, rtsp read errors this time, dunno if it is my bad wireless signal or not. I’m moving the router back to where I get a good signal tommorow though.
c:\>perl get_iplayer –pid b00cj9t1 –wav
INFO: Attempting to Download: –
Getting iplayer programme page
INFO: Checking existence of programme
INFO: File name prefix = The_Chris_Moyles_Show_-_18_07_2008_b00cj9t1
INFO: Writing wav format
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.80GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Playing rtsp://rmv8.bbc.net.uk/radio1/moyles_fri.ra?BBC-UID=94a8d76fc79d3694a175
85a0103032a765906e5ee0a08144a44f898f963ec982&SSO2-UID=.
Resolving rmv8.bbc.net.uk for AF_INET…
Connecting to server rmv8.bbc.net.uk[212.58.252.8]: 554…
Cache size set to 128 KBytes
Cache fill: 18.75% (24576 bytes)
REAL file format detected.
Stream description: audio/x-pn-multirate-realaudio logical stream
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 0
Clip info:
name: The Chris Moyles Show – Friday
author: BBC Radio 1
copyright: (C) British Broadcasting Corporation 2008
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
[AO PCM] File: ./The_Chris_Moyles_Show_-_18_07_2008_b00cj9t1.partial.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback…
rtsp: read error.) of 12723.0 ( 3:32:03.0) 28.9% 4%
rtsp: read error.
realrtsp: rdt chunk not recognized: got 0xc8
A: 263.8 (04:23.7) of 12723.0 ( 3:32:03.0) 37.2% 0%
Exiting… (End of file)
INFO: Downloaded ./The_Chris_Moyles_Show_-_18_07_2008_b00cj9t1.wav
c:\>
I am a novice with linux as have recently purchased eepc. Is it possible to use get_iplayer on eepc?
@castrafeld,
Yes indeed (on a Linux Eeepc), as long as you have perl installed. Optionally (for radio stream support) you’ll require mplayer and lame also.
Hi Phil,
I’m having problems downloading a couple of programs. They don’t appear when I do a search with get_iplayer and when I supply the URL with –pid it does download them but as mp3 files not mov files? One of the URLs is http://www.bbc.co.uk/iplayer/episode/b007jmf4/ and you can try with get_iplayer boosh to search, and get_iplayer -g –pid URL to download. I realise that this might be the BBC but I was just a bit confused when the –pid switch downloaded the program as an mp3. It’s obviously there but get_iplayer won’t download it.
Regards,
Wm.
@wm.wragg,
I think maybe you’ve assumed that ‘The Boosh’ is a tv show when in fact this is a radio show which is correctly downloaded as an mp3:
./get_iplayer –type=all boosh
Matches:
INFO: 1 Matching Programmes
11008: radio, The Boosh – Stolen, ‘BBC 7′, Comedy,Radio
My apologies, you are completely correct, I’m having one of those days. I’ve been following the recent Mighty boosh tv series, so thought this was the new episode. The other one I had problems with is the same. I should pay more attention to what I’m doing.
Cheers,
Wm.
I’ve been using your script to download programs for playback on MythTv. When putting them on MythTv it is nice to have a picture to display in the video gallery view. I’ve been using Firefox with Javascript disabled to grab the picture. Would it be possible to add grabbing of the corresponding picture to a program? Ideally, it would nice to grab the description to a text file as well.
Thanks.
@Bill D,
You can get the URL for the picture from several places in get_iplayer; The HTML (–html) index of all programmes with thumbnails. Also the thumbnail URL is in the get_iplayer cache file ( ~/.get_iplayer/tv.cache ). The URLs are usually guessable once you have the PID of the programme in question. If you take a look at the cache you’ll see what I mean. Additionally, the long dewcription is also in those above places and also more accessible in a –long listing or –info output.
Hi Phil,
I’ve been trying to download some of the World Service radio programs which are now part of iplayer, but they don’t appear to be real player files. An example would be http://www.bbc.co.uk/iplayer/episode/w0btvkdv/ (which is the Discovery program). Have you any idea how I might be able to download these?
Regards,
Wm.
@wm.wragg,
I’ll have that out in version 0.70 which I just released.
Ah yes, thanks, seems that BBC World Service has been added to the list of iPlayer radio stations
@wm.wragg
Sorry – I didn’t test it well enough it seems.
New version 0.71 is out which actually allows you to download BBC world service programmes
Cheers Phil,
Just got back from holiday and your new version was waiting for me, just tried it and it works wonderfully. Again thank you very much, all your work is much appreciated.
Im trying to list then download content from BBC Radio 4,
Im struggling a bit with the syntax! How do I do it?
Steve
@Steve Thompson,
You shuld be able to list all progs from Radio4 as follows:
get_iplayer –type=radio –channel=’BBC Radio 4′
Then using the index number on the line of the prog you want to download, type (if the index is 13000)
get_iplayer –type=radio –get 13000
Or, if you just want to download all ‘You and Yours’ programmes:
get_iplayer –type=radio –channel=’BBC Radio 4′ –get ‘you and yours’
There are some more detailed examples in https://linuxcentre.net/getiplayer/documentation/
Brill!
That works great!
They’ve just made my Dab & Minidisc redundant!
DAB – lol!
Got a new one for you phil, created a search for a BBC 7 program on 5th March called 2025, and when I ran the PVR I got a
“WARNING: Unmatched programme index ‘2025’ specified – ignoring”
error, is it because the search is just a number and it thinks its a PID rather than a keyword? how can I get it to search?
Steve
Sadly not the first to come up with this problem.. You need to use something like ‘^2025′ or ‘.*2025′ so that get_iplayer is forced to use the search term as a regex match… This one is a usability trade-off I’m afraid…
Hi Phil, me again, Im trying to DL Womans Hour Drama “The Death of Grass”, but theres no PID – only this in the listen again link:
http://www.bbc.co.uk/radio/aod/radio4_aod.shtml?radio4/womanshourdrama_mon
Is it downloadable?
Also tried to get Oneira on BBC7, and Planet B also on BBC 7, PVR didnt pick them up, had to do a manual DL via the PID.
Do the PID’s become available before ou can do a PVR search?
Steve