Topic: MP3/AAC/FLAC/OGG Music on the Chumby

Today, I upgraded my chumby. To celebrate, I decided to compile one of my Open Source projects to see if it would work well on the Chumby. It does, to some extent.
The project is called BlueTune. It is a cross-platform SDK for audio playback. It support mp3, aac, ogg, flac, etc... and a number of plugins to do http streaming, reading from CDs, etc...
You can get the source at http://www.bluetune.com/downloads/releases
For your convenience, I have also uploaded a zip file with a chumby binary of the command line player, 'btplay', at http://www.bluetune.com/downloads/binar … nown-linux
(use the binary in the 'Release' directory, the 'Debug' version will be probably too slow)

You can just try:
btplay somefile.mp3
or
btplay somefile.m4a  (iTunes)
or
btplay http://some.server.com/somefile.mp3

I think in this config, the supported codecs are mp3, aac, flac, ogg-vorbis, wav, aiff.
The SDK also supports WMA, but I can't release that in the GPL version, because of license restrictions. Contact me if you're interested in that.

It will play audio on the Chumby, but you first need to make sure the Flash player has not grabbed the audio output. For that, you can simply kill the flash player. It will restart, but will only grab the audio output if one of the flash movies plays audio (not all do, I think).

Let me know if you like it.

Re: MP3/AAC/FLAC/OGG Music on the Chumby

bok - Thanks!  I just gave the binary a test run on chumby and it seems to work well; streamed an mp3 quite nicely.  However, I can't seem to get btplay to stream MP3 or AAC from http://www.shoutcast.com - have you had any luck with this?

Are you releasing the source GPL or LGPL?

Side Note - The Flash player's watchdog runs as a cron job every minute; it can be disabled (until reboot) by deleting /tmp/flashplayer_started:

# rm /tmp/flashplayer_started
# kill `pidof chumbyflashplayer.x`

Re: MP3/AAC/FLAC/OGG Music on the Chumby

You're right, the HTTP network input module is currently not reading the Content-Type header from the HTTP response of the Shoutcast server, so it incorrcetly tries to guess the content type based on the name extension of the URL (so it only works if the URL end in .mp3 or some known file extension). I'll post an update later this week.

Regarding the license, the entire framework and codecs are available under a dual license: there is a GPL license for applications compatible with the GPL, and a (low cost, royalty-free) commercial license available for those who can't or don't want to use the GPL license.

Re: MP3/AAC/FLAC/OGG Music on the Chumby

Any update on this?  I have a production chumby, it has btplay on it.  However it still won't stream from shoutcast.

Re: MP3/AAC/FLAC/OGG Music on the Chumby

Yes, this was fixed a while back. I forgot to post on the forum. You can download the latest release which will work with Shoutcast streams.
The source releases are at:
http://www.bluetune.com/downloads/releases
and the precompiled binaries for arm at:
http://www.bluetune.com/downloads/binar … own-linux/

Re: MP3/AAC/FLAC/OGG Music on the Chumby

bok wrote:

Yes, this was fixed a while back. I forgot to post on the forum. You can download the latest release which will work with Shoutcast streams.
The source releases are at:
http://www.bluetune.com/downloads/releases
and the precompiled binaries for arm at:
http://www.bluetune.com/downloads/binar … own-linux/

Awesome, thanks for the quick reply.  One more question, I am guessing the only thing I need is the btplay binary in the release directory.  Correct?  I don't need all the libraries.

thanks,

Justin

Re: MP3/AAC/FLAC/OGG Music on the Chumby

jgaither wrote:

Any update on this?  I have a production chumby, it has btplay on it.  However it still won't stream from shoutcast.

How are you attempting to play a shoutcast stream?  The version of btplay deployed with chumby software version 1.1 is capable of streaming audio from shoutcast.  In order to play shoutcast streams via btplay, you must first open the .pls and choose a stream URL (btplay will not parse the .pls file directly).

For example:

chumby:~# btplay http://85.214.115.44:80

Re: MP3/AAC/FLAC/OGG Music on the Chumby

bok wrote:

Yes, this was fixed a while back. I forgot to post on the forum. You can download the latest release which will work with Shoutcast streams.
The source releases are at:
http://www.bluetune.com/downloads/releases
and the precompiled binaries for arm at:
http://www.bluetune.com/downloads/binar … own-linux/

So it looks like the chumby has updated to libstdc++.so.6  and I got the error:
./btplay: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No
such file or directory

when attempting to run the binary off the usb stick.

I will try to copy the libraries and see if it helps.

Any more info/advice is appreciated.

Re: MP3/AAC/FLAC/OGG Music on the Chumby

Maybe the simplest is to recompile the binary with the latest chumby SDK. Unfortunately my chumby is "sick" so even if I recompile something I won't be able to test it. I hope the new chumbys will be available soon so that I can keep maintaining the chumby precompiled binaries when I make new releases of the software.

Re: MP3/AAC/FLAC/OGG Music on the Chumby

bok wrote:

Maybe the simplest is to recompile the binary with the latest chumby SDK. Unfortunately my chumby is "sick" so even if I recompile something I won't be able to test it. I hope the new chumbys will be available soon so that I can keep maintaining the chumby precompiled binaries when I make new releases of the software.

Unfortunately I don't have a linux box handy.  I haven't done development in a while.  So I can't compile anything for the chumby.  I may try to compile the GNU toolchain under cygwin but that may take a while.  If you build it I will test it.

Justin

11

Re: MP3/AAC/FLAC/OGG Music on the Chumby

jgaither wrote:
bok wrote:

Yes, this was fixed a while back. I forgot to post on the forum. You can download the latest release which will work with Shoutcast streams.
The source releases are at:
http://www.bluetune.com/downloads/releases
and the precompiled binaries for arm at:
http://www.bluetune.com/downloads/binar … own-linux/

So it looks like the chumby has updated to libstdc++.so.6  and I got the error:
./btplay: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No
such file or directory

when attempting to run the binary off the usb stick.

I will try to copy the libraries and see if it helps.

Any more info/advice is appreciated.

Justin,

Were you successful in streaming music using the method I described in my last post?

If you're still having problems streaming music using the btplay binary distributed with the chumby software 1.1 release, please provide exact steps to reproduce the problem so we can test this locally.  Please include the exact command line arguments that you are passing to btplay.

The BlueTune source, along with the rest of the Chumby and third party software released under the GPL, LGPL and other public licenses can be found here - http://files.chumby.com/source/

Re: MP3/AAC/FLAC/OGG Music on the Chumby

Ken wrote:
jgaither wrote:
bok wrote:

Yes, this was fixed a while back. I forgot to post on the forum. You can download the latest release which will work with Shoutcast streams.
The source releases are at:
http://www.bluetune.com/downloads/releases
and the precompiled binaries for arm at:
http://www.bluetune.com/downloads/binar … own-linux/

So it looks like the chumby has updated to libstdc++.so.6  and I got the error:
./btplay: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No
such file or directory

when attempting to run the binary off the usb stick.

I will try to copy the libraries and see if it helps.

Any more info/advice is appreciated.

Justin,

Were you successful in streaming music using the method I described in my last post?

If you're still having problems streaming music using the btplay binary distributed with the chumby software 1.1 release, please provide exact steps to reproduce the problem so we can test this locally.  Please include the exact command line arguments that you are passing to btplay.

The BlueTune source, along with the rest of the Chumby and third party software released under the GPL, LGPL and other public licenses can be found here - http://files.chumby.com/source/

Ken,
   I guess I didnt pay enough attention to your post.  Sorry.  I tried the actual url you provided and it worked.  An now I understand what you mean by open .pls file.

Thanks problem solved.

J

Re: MP3/AAC/FLAC/OGG Music on the Chumby

Just an idea, but you guys should make a sticky for cross-compiled binaries.

Re: MP3/AAC/FLAC/OGG Music on the Chumby

The btplay version that came with Chumby is 1.08, and I'm having some connection issues with a stream I'd like to listen to.  I'm not a linux guru yet, but to clarify upgrade I need to just copy the btplay file from the /bin/Release directory to /usr/bin directory?

15

Re: MP3/AAC/FLAC/OGG Music on the Chumby

Yes, you can use the btplay binary from the distribution (or you can compile your own from the source distrib). Make sure you get the latest binary distribution at:
http://www.bluetune.com/downloads/binar … mby-linux/
the latest is:
http://www.bluetune.com/downloads/binar … -linux.zip