Listen to your home music from the office

My MP3 collection is safely stored on shion, on a drobo mounted as /nas. Naturally, I want to listen to said music from the office – especially considering my fully routed VPN access between the office and my home infrastructure and the upstream which suffices for at least 10 concurrent 128bit streams (boy – technology has changed in the last few years – I remember the times where you couldn’t reliably stream 128 bit streams – let alone my 160/320 mp3s).

I’ve tried many things so far to make this happen:

  • serve the files with a tool like jinzora. This works, but I don’t really like jinzora’s web interface and I was never able to get it to work correctly on my Ubuntu box. I was able to trace it down to null bytes read from their tag parser, but the code is very convoluted and practically unreadable without putting quite some effort into that. Considering that I didn’t much like the interface in the first place, I didn’t want to invest time into that.
  • Use a SlimServer (now Squeezecenter) with a softsqueeze player. Even though I don’t use my squeezebox (an original model with the original slimdevices brand, not the newer Logitech one) any more because the integrated amplifier in the Sonos players works much better for my current setup. This solution worked quite ok, but the audio tends to stutter a bit at the beginning of tracks, indicating some buffering issues.
  • Use iTune’s integrated library sharing feature. This seemed both undoable and unpractical. Unpractical because it would force me to keep my main mac running all the time and undoable because iTunes sharing can’t pass subnet boundaries. Aside of that, it’s a wonderful solution as audio doesn’t stutter, I already know the interface and access is very quick and convenient.

But then I found out how to make the iTunes thing both very much doable and practical.

The network boundary problem can be solved using Network Beacon, a ZeroConf proxy. Start the application, create a new beacon. Chose any service name, use «_daap._tcp.» as service type, set the port number to 3689, enable the host proxy, keep the host name clear and enter the IP address of the system running iTunes (or firefly – see below).

Oh, and the target iTunes refuses to serve out data to machines in different subnets, so to be able to directly access a remote iTunes, you’d also have to set up an SSH tunnel.

Using Network Beacon, ZeroConf quickly begins working across any subnet boundaries.

The next problem was about the fact that I was forced to keep my main workstation running at home. I fixed that with Firefly Media Server for which even a pretty recent prebuilt package exists for Ubuntu (apt-get install mt-daapd).

I’ve installed that, configured iptables to drop packets for port 3689 on the external interface, configured Firefly to use the music share (which basically is a current backup of the itunes library of my main workstation – rsync for the win).

Firefly in this case even detects the existing iTunes playlists (as the music share is just a backup copy of my iTunes library – including the iTunes Library.xml), though smart playists don’t work, but can easily be recreated in the firefly web interface.

This means that I can access my complete home mp3 library from the office, stutter free, using an interface I’m well used to, without being forced to keep my main machine running all the time.

And it isn’t even that much of a hack and thus easy to rebuild should the need arise.

I’d love to not be forced to do the Network Beacon thing, but avahi doesn’t relay ZeroConf information across VPN interfaces.

Sonos news

Today, Sonos announced their new 2.7 software version for their home appliances with some additional web radio features in which I’m not particularly interested as I’m more or less only listening to one web radio station. What they’ve also announced though was much more interesting: An iPhone Version of their Controller application (iTunes Link).

The thing doesn’t just look nice, it also works perfectly well and provides all the functionality you are used to have in your sonos controller, but without the controllers bulkyness (the thing is heavy and quite large). I’m constantly carrying my iPhone around anyways and it’s constantly connected to the WiFi network in my home, so it’s the perfect fit to be a sonos controller.

The application starts up quite instantly: It does show a splash screen for around three seconds, but that is still way shorter than a controller booting up from deep sleep, which you have to put it into if you want it to last longer than a day or so.

Functionality-wise the iPhone application provides everything a real controller does – well… nearly everything. I truly miss the alarm functionality, but I’m quite sure that’ll come soon enough.

Aside of that, I’m inclined to say that this little application more or less obsoletes the original controller. And in every case but the 32GB iPod Touch, it’s always cheaper to buy any Apple device and install the application than it is to buy the original Sonos controller (here in Switzerland, you can get an 8 GB touch for half the price of a Sonos controller)  – if you can live with setting up alarms in the desktop software. It’s certainly possible (and thankfully much quicker than with the original controller) to cancel a running alarm in the iPhone controller.

Very nice indeed.

On related news: I have updated my ogg to mp3 stream converter to stop looking at the url to decide whether the url to play is a stream itself or a playlist, but instead to fetch the information from the HTTP response header themselves, thus making the script to continue to work with Rainwave despite them having changed the URL for the tune in link.

iTunes 8 visualization

Up until now I have not been a very big fan of iTunes’ visualization engine, probably because I’ve been spoiled with MilkDrop in my Winamp days (which still owns the old iTunes display on so many levels).

But with the release of iTunes 8 and their new visualization, I have to admit that, when you chose the right music (in this case it’s Liberi Fatali from Final Fantasy 8), you can really get something out of this.

The still picture really doesn’t do it justice, so I have created this video (it may be a bit small, but you’ll see what I’m getting at)  to visualize my point. Unfortunately, near the end it gets worse and worse, but the beginning is something of the more impressive shows I have ever seen generated out of this particular piece of music.

This may even beat MilkDrop and I could actually see myself assembling a playlist of some sort and put this thing on full screen.

Nice eyecandy!