devsnd / cherrymusic

Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.
http://www.fomori.org/cherrymusic
GNU General Public License v3.0
1.03k stars 187 forks source link

Internet radio functionality? #591

Closed samyoungnyc closed 9 years ago

samyoungnyc commented 9 years ago

Awesome product, thanks! My question is - is it possible to configure CherryMusic so that it acts as a streaming radio on a site which anyone can access?

6arms1leg commented 9 years ago

Hello @samyoungnyc,

no, the use case you described is not within the scope of CherryMusic. It is not meant to be used as an internet radio. CherryMusic is developed to handle huge audio collections and serve them over a web interface, where users can log in, create, share and listen to playlists – much like your personal Spotify.

To set up a simple internet radio, you might have a look at Icecast and/or MPD (newer versions of MPD have streaming capabilities).

Thanks for checking out CherryMusic, though!

samyoungnyc commented 9 years ago

OK I understand - I checked out MPD and Icecast but the documentation isn't as clear. I was hoping Cherrymusic would have this option because it work's so well... oh well! Thanks, it's an awesome program and I'll be using it anyhow.

6arms1leg commented 9 years ago

You are right, documentation on MPD isn't that great. But actually, using MPD (standalone) for basic audio streaming is quite simple. (I don't know about Icecast, though. Never used it.) Add the following to your /etc/mpd.conf:

### httpd output (built-in http streaming server) ###
#
audio_output {
       type            "httpd"
       name            "http stream"
       encoder         "lame"                # optional, vorbis or lame
       port            "8000"
#       quality         "5.0"                   # do not define if bitrate is defined
       bitrate         "128"                   # do not define if quality is defined
       format          "44100:16:1"
}

Now restart MPD for changes to take effect. On Debian that would be:

$ sudo service mpd restart

Done. You can access you stream under YOUR_IP:8000. Hope that helps to get you started...

samyoungnyc commented 9 years ago

Thanks for the help!

bfg9000d commented 9 years ago

If you want other people to be able to control it using a nice web interface, maybe take a look at groovebasin.

samyoungnyc commented 9 years ago

Hmm seems interesting, I'll take a look. At this point I'm thinking of hacking on MPD/Icecast etc and creating an extremely simple (much simpler than Cherrymusic or groovebasin) desktop app out of it.