Changing a Feed Location

I’m pretty happy with the way I’m creating pseudo-Podcasts of ABC programs that are available in RealMedia only: I use a program called realdump, which calls mplayer, to dump the audio to a .WAV file, which I convert to AAC using faac. I then get the data from the web page, and create an entry in an XML file. This in itself isn’t that tricky, but the clever part, at least in theory, is that I chose the URL I think the ABC might use when they finally Podcast that programme, and have a hostname entry for www.abc.net.au, which I use when I’m not online. However, every program I have done this for has chosen a different URL than the one I chose. For instance, The Philosopher’s Zone has chosen: http://www.abc.net.au/rn/podcast/feeds/pze.xml instead of: http://www.abc.net.au/rn/podcast/feeds/pzone.xml which is closer to the RealMedia file names, or: http://www.abc.net.au/rn/podcast/feeds/philosopher.xml which more accurately reflects their URL naming scheme. Apparently it’s possible to redirect a feed, so that iTunes then looks in a new location, using something like 301 redirects. The problem is I can’t get apache to do this, for some reason. I’ve tried using .htaccess files, but they don’t seem to do anything. I think Apple should make it so that a permanent redirect can be placed in the XML file, and iTunes respects this for future checks.

iPod Freezes with 3.1.1 Firmware

I’ve had some serious issues with my iPod after updating to the latest iPod firmware (3.1.1). Basically, it keeps freezing, either when going into sleep mode, or coming out of sleep mode. It’s not possible to determine which of these it is, as there is nothing appearing on the screen when pressing any buttons, or plugging in the headphones. The only way to get the iPod back to normal is to do the two-finger reset: hold down _MENU _and _SELECT _for about 5 or so seconds. This then resets the iPod, and it boots up as normal. However, any information (like which songs and podcasts I listened to) is lost. Meaning I then need to remember which podcasts have been listened to, and remove them manually from the list. According to some web sources, this occurs only when having just listened to a podcast, but I don’t seem to be able to replicate that right now. I know it crashed last night after listening to an Audiobook, but I can’t recall if it ever happened after just plain music. However, I do know that this problem only reared it’s ugly head after updating to the 3.1.1 firmware. I wonder if it’s possible to downgrade iPod firmware? Apparently it’s just a matter of editing a value in iPod_Control/Device/Sysinfo, namely buildID, to a value less than the firmware you want to downgrade it to is. Of course, you’ll need the updater for that firmware version, too. If I keep having issues, I may have to try this. Update: This technique doesn’t work: or at least I couldn’t get it to work. I’ve just used Restore with an older updater, so I’ll see if that was the problem. I’m now using 3.1, but I’ve got to wait until all of my music re-syncs back to the iPod, as Restore ‘cleans’ the iPod.

Australia's Brainiest Radio Star

Tonight on Channel 10 (the only commercial TV station in Australia not to yet align itself with a web portal: c.f. nineMSN, yahoo7), we saw the premiere of the intellectually stimulating Australia’s Brainiest Radio Star at 7:30pm. I only saw the last two minutes, enough to see the winner fluke the last question. What I want to know is: where were Dr Karl and Adam Spencer, of Triple J/ABC Local Radio? Surely they have to be amongst the smartest Radio personalities. And Dr Karl is hardly not a star! The first question I saw was something about a cricket ball vs. a pendulum, asking the question a cricket ball has more degrees of … freedom. The joker answering got this wrong, which I’m fairly sure both of my champions would not have. The determinant question asked What is the correct term for a group of 7 musicians? The contestant ummed and aahed, before shakily guessing (correctly) a septet.

Mr. Bojangles • Robbie Williams • Swing When You’re Winning ★★½

Dr Karl uses a Mac!

Dr. Karl from Triple J uses a Mac. He talked about using Spotlight to index and search his files on his computer during the last 5 minutes of the February 23rd edition of his Radio segment.

Rating Podcasts

The iPod doesn’t allow for rating of a Podcast - I guess it assumes they are throwaway items, rather than worth keeping.

Ricky Gervais Podcast Archives!

Ricky Gervais This site has the archives of the Ricky Gervais podcast. I’ve removed my listings of the URLs, as they are changing from time to time, so visit the link above to download them all. I may still create a feed XML, but I may not…

Internet Usage

Podcasts are cool. I listen to them every day on the way to and from work, and I’ve got quite a few subscriptions in my iTunes list.

  • New Scientist Podcast • New Scientist
  • Ockham’s Razor • ABC Radio National
  • Dr Karl’s Great Moments in Science • ABC Science Online - the Lab
  • Dr Karl on triple j • ABC Science Online - the Lab
  • The Science Show • ABC Radio National
  • All in the Mind • ABC Radio National
  • The Night Air • ABC Radio National
  • Perspective • ABC Radio National
  • Radio Eye • ABC Radio National
  • Street Stories • ABC Radio National
  • Quirks and Quarks from CBC Radio • Quirks & Quarks
  • Background Briefing • ABC Radio National
  • Big Ideas • ABC Radio National
  • Craphound.com: The Literary Works of Cory Doctorow • Cory Doctorow
  • National Interest • ABC Radio National
  • The Philosopher’s Zone • ABC Radio National
  • In Our Time • BBC Radio 4
  • The Ricky Gervais Show • Guardian Unlimited

They also take up lots of data. In the past month, my internet usage has more than doubled. And I’ve only been pdcatching for probably less than half of the month!

Usage History for the Past 6 Billing Periods

Billing Period Ending Invoice Number Hours Used (hh:mm) Downloads (MB) Uploads (MB) Service Total
(Excl GST)

25 Feb 06 30700482 293:49 3848.98 293.67 $0.00

25 Jan 06 30068220 131:23 1245.89 144.91 $15.41

25 Dec 05 29435356 143:29 608.07 98.86 $15.41

25 Nov 05 28793690 109:02 655.58 98.06 $15.41

25 Oct 05 28154942 300:16 2586.63 275.67 $0.00

25 Sep 05 27528167 118:59 706.33 104.21 $15.41

The Emotional Brain

ABC Radio National’s All in the Mind recently broadcast a series of four programs entitled “The Emotional Brain.” Unfortunately, I missed the first two episodes, and they’ve since disappeared from the website, or rather, the MP3s have.

I wouldn’t mind getting hold of the missing two episodes, if anyone has them floating around on their hard disk still… I’ll repeat my mantra that the ABC should keep all of it’s programs available online, for eternity. Storage is cheap.

Getting Real Audio into Podcast

Occasionally, the ABC have items on their programs to which they don’t have the copyright for, and as such they cannot post an MP3 of the program, but will do a Real Audio stream. Meaning you have to use Real Audio to listen to it, and you cannot archive it. Or so it seems. Now, I refuse to use Real Audio: it’s nothing to do with commercial software or anything like that (there is after all a free version), but I just don’t like streaming. I find that on dialup it just doesn’t work well. And, the time I spend at the computer I am generally reading, so listening to anything other than music just doesn’t work well. I much rather listen to Podcasts while commuting. So, how do you get an item into your iTunes Podcast library? You’ll need mplayer. You can find it at the MPlayerOSX Website. Install it, and then add the following to your ~/.profile:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
    function realdump
    {
        if test -f $1 ; then
            realdump `cat $1` 
        else
            export temp=${1/#*\//}
            export filename=${temp/.*/.wav}
            ~/bin/mplayer -cache 128 -vc dummy -vo null -ao pcm -aofile $filename $1
        fi
        if test $# -gt 1 ; then
        shift
        realdump $*
        fi
    }

You’ll also need something to encode in either MP3, or AAC format. faac is great for the latter, LAME for the former. I use faac, and have the following in my ~/.profile:

1
2
3
4
    function faac_podcast
    {
        faac -b 64 -w $1
    }

You’ll want something similar if you use LAME. The ABC has a placeholder MP3 file, that is usually just a short blurb saying they don’t have the ability to put the program up as an MP3. Download this, and then go to the website of the program in question. Find the Real Audio stream, and download the .ram file. Open this in a text editor, and use the Terminal to download the stream using: $ realdump rtsp://www.server.net/path/to/file.ra Then use the following command to encode the file: $ faac_podcast filename.wav This may take some time - although on my computer it was a bit faster than the previous step. In iTunes, ask the Finder to reveal the placeholder file (select it, then use ⌘R, or File - Show Song File). Give the replacement file exactly the same name, except keep the right extension, and copy this file to the same location. If they are the same file format, it will overwrite the placeholder, and you are finished. If not, you need to delete the placeholder file, but not the library entry. Moving the file is not enough, you must delete it! Then, to connect the entry to the replacement file, use ⌘I (Get Info…) and choose to select the file. Choose the replacement file. You can use iTunes to import and convert the file, but for me this was much slower. It requires copying the full WAV file to the library (slow, since mine is on a server), and then converting it to MP3/AAC (again, slow, as it needs to get all of the data back from the server, and then send the new stuff there).

Bypassing iTunes Downloader

My biggest hate about iTunes is that if the download of a Podcast fails, it needs to restart the whole download, rather than just resume. This really sucks if you are 21Mb into a 22.5Mb download. Using the technique illustrated in Adding a Podcast to a Pre-Existing Subscription, it’s possible to download the files in another program, such as wget, which can handle resumes. It also tends not to drop out as much as iTunes does when the network is congested. Which it is automatically when three downloads are concurrently occurring. There are some changes that need to be made to the process, but these are really just simplifications. You need to know the URL of the file you want to get, which can be obtained using the following AppleScript:

1
2
3
    tell application "iTunes"
        set the clipboard to address of item 1 of selection
    end tell

Then, set up your http server, and create the same directory structure from your server root. Go to the relevant directory, and download the files you want to grab. Finally, go offline, and point the domain(s) at your own computer. Go back into iTunes, and use the GET button to grab the files from your own ‘server’. Don’t use the Update Podcasts button, or an error may occur. This removes the need to recreate the XML file, which is the most labour intensive part of the process illustrated in the previous post. It works a treat.