Monday January 23, 2006 | Constantin's Blooog |
|
Useful stuff for your blog-reading pleasure.
All
|
General
Solaris@Home Part 4: Streaming MusicWelcome to a new part in the Solaris@Home series. Since I dumped my old Qube and other stuff for a W1100z running OpenSolaris, we saw how to be more eco-responsible and enjoyed a ZFS-based DVB-T PVR. Now it's time for some music! Meet AAC, the successor to MP3Like many people, I love the simplicity and elegance of iTunes. All of my CDs are in my iTunes library, most of them as 128 kBit/s AAC and all newer ones as 256 kBit/s AAC. Disk space is becoming cheap enough, finally. Some people think that AAC is proprietary to Apple, because they promote it so much. This is nonsense, AAC is an official part of the ISO/IEC MPEG4 open standard. Other people think that AAC brings the evils of DRM. This is double nonsense: First, AAC does not include DRM per se. Apple's Fairplay DRM system is a proprietary extension of the AAC format. You're still free to use AAC without any DRM, even when using iTunes (and not buying music from the iTunes store). And second, DRMs aren't more or less evil than simple padlocks are: They just provide a mechanism to restrict the usage of media to a certain group of people. In terms of quality and positioning, AAC is the official successor to MP3. It offers better audio quality for the same given bitrate, or less space requirements for a given audio quality level. Of course, much of the perceived quality of an audio format depends on the implementation. Some public tests seem to confirm that Apple's AAC implementation is pretty good, even though it only used CBR at the time these particular tests were done. Meanwhile, Apple's AAC implementation also supports VBR, which should provide even better quality. AAC is widely available both in hardware and in software, so practicality is a given here as well, plus it's an open standard and we at Sun like open standards a lot. One of my favorite gadgets at home is my Roku Soundbridge M1000. It understands a number of audio streaming protocols, including iTunes' proprietary DAAP protocol. So you can hook up this nice-looking baby to your stereo and your net, start iTunes and listen right away. And it comes with a digital output for your audio system too! Introducing mt-daapdBut I like to listen to my music even when my laptop is not currently powered on. That's where my trusty W1100z "Condorito" running Solaris Nevada is coming in. Thanks to Ron Pedde, there's an open source project called mt-daapd, an implementation of a DAAP daemon that can stream music from your disk to your devices at home, as if they were coming from an iTunes shared library. As easy as 1-2-3Serving music to your network on Solaris in an iTunes compatible way can be done in these 3 easy (for geek standards) steps:
Compiling and installing mt-daapd and friendsBefore we install mt-daapd, a few prerequisites are needed:
The mt-daapd website offers a stable version as well as nightly development builds. Of course, all the nice new features are only available in the nightly build, which in turn is sometimes buggy. Not being sissies, we're going to compile the latest nightly, which currently is the 20060117 version. Since Rons development environment is kinda Linux-centric, he uses a function called Now we're ready to configure the mt-daapd makefiles on our system. The following options to
Note that I like to have self-compiled software installed in To build and install mt-daapd, I prefer to " Configuring the mDNS responder deamon and mt-daapdThe following line in
After tweaking this config file, we just need to start the Now we need to configure mt-daapd. The
As you see, we're going to let mt-daapd store it's database in Finally, we can start mt-daapd and let it do its work by simply saying It's alive, Igor...With mDNSResponder and mt-daapd up and running, you should now be able to see the server in you iTunes "Source" column under the name you specified in the I hope this little tutorial was useful to you and I hope it helped some of you get your music service up and running on Solaris. Next time, we're going to brush it up a little by properly introducing the mDNSResponder and mt-daapd services to the Solaris Service Management Facility (SMF). Technorati Tags: itunes, mt-daapd, music, OpenSolaris, streaming
"Solaris@Home Part 4: Streaming Music" has been brought to you by Constantin's Blooog.
This entry was created on 2006-01-22 20:53:03.0 PST and is associated with the following tags:
Post a Comment: Comments are closed for this entry. « Pasta with Tuna Fish... | Main | Random CeBIT Thought... » |
|
Hi!
First of all, my development environment is Mac-centric, thankyouverymuch! :)
I did recently get a Nevada system up, but didn't look forward to building a development chain to test with. I appreciate the pointer to Blastwave -- that will make it easier for me to solarisify mt-daapd. (I used to have an old SparcStation 5, but I gave it away, and haven't had a Solaris box since).
By way of quid pro quo, here's my tip for you -- if you configure with "--disable-mdns", you are turning off howl support. You don't notice it because you have howl configured to always advertise mt-daapd. Which is fine, but it means it shows up in iTunes even when mt-daapd isn't running.
If you configure "--with-howl", don't specify "--disable-mdns", and don't put anything in mDNSResponder.conf, then it will appear and disappear in iTunes when mt-daapd starts and stops.
Also, the built-in mdns is going to disappear altogether very soon, in favor of howl/avahi.
Cheers.
-- Ron
Posted by Ron Pedde on January 24, 2006 at 05:06 AM CET #
Posted by Constantin Gonzalez on January 24, 2006 at 05:29 PM CET #