Looking for a Music server - Streamer, Jukebox type thing.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Looking for a Music server - Streamer, Jukebox type thing.
Are there any current, maintained, that have continuous random/shuffle play mp3 streamers out there? Basically, when cue is empty it will start playing random mp3's.
Also I guess another feature i would like it to be able to simply point the browser to the server and it starts playing with out any interaction. It would also be nice to be able to manage the cue from it...
I have looked at:
Subsonic
Plex
Groove Basin
MPD + Icecast
Streamsicle (no longer maintained)
GlobeCom Jukebox (no longer maintained)
I can't think of all the others that I have looked at also.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I use mpd and point it at a paid for Shoutcast server to create my own internet stream. I also, sometimes, connect to mpd's own HTML stream.
What would you like to be able to do that the mpd setup, for example (since it's teh setup I'm familiar with), doesn't do?
Correct me if I am wrong here. With MPD you have to build playlist and have it play the playlist. So what after the last song of the playlist is played? Build a new playlist?
Correct me if I am wrong here. Wth MPD you have to build playlist and have it play the playlist. So what after the last song of the playlist is played?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by raksasas
Correct me if I am wrong here. Wth MPD you have to build playlist and have it play the playlist. So what after the last song of the playlist is played?
Correct me if I am wrong here. With MPD you have to build playlist and have it play the playlist. So what after the last song of the playlist is played? Build a new playlist?
You can write a script and and use mpc commands to detect the end of the playlist. After that you can make it do whatever you want.
Below is a bash script using mpc that I wrote to play an NPR news report on the hour. It stops the current song, plays the news and then restarts the song at the previous stop point. It is triggered hourly by a cron job.
You could also just set consume mode off and turn on repeat.
Code:
#! /bin/bash
last=$(mpc playlist | wc -l)
# A playlist of size 1 is usually a news radio stream.
# If so, do not interrupt it. Skip all the rest
if (( $last > 1 ))
then
# Add the hourly news stream to the end of the current playlist
mpc load NPRHourlyNews
# get the position of the hourly news stream in the playlist
last=$(mpc playlist | wc -l)
# get the position of the current song in the playlist
currpos=$(mpc status | grep playing| sed 's=^.*#\([0-9][0-9]*\)/.*$=\1=')
curseek=$(mpc status | grep playing| sed 's=^.*(\([0-9][0-9]*\)).*$=\1=')
#echo last = $last
echo currpos = $currpos
echo curseek = $curseek
# start the hourly news stream
mpc play $last
# test to see if we are still playing the newstream
newpos=$(mpc status | grep playing| sed 's=^.*#\([0-9][0-9]*\)/.*$=\1=')
echo $last and $newpos
# wait until the news ends
mpc idle
newpos=$(mpc status | grep playing| sed 's=^.*#\([0-9][0-9]*\)/.*$=\1=')
echo $last and $newpos
while (( $last == $newpos ))
do
sleep 1
# test to see if we are still playing the newstream
newpos=$(mpc status | grep playing| sed 's=^.*#\([0-9][0-9]*\)/.*$=\1=')
echo $last and $newpos
done
# restart the previously interrupted song and then delete the news stream from the playlist
mpc play $currpos && mpc seek $curseek && mpc del $last
fi
Sorry reviving an old thread. Mainly because I am having a little trouble finding how private messages
Quote:
Originally Posted by 273
I use mpd and point it at a paid for Shoutcast server to create my own internet stream. I also, sometimes, connect to mpd's own HTML stream.
What would you like to be able to do that the mpd setup, for example (since it's teh setup I'm familiar with), doesn't do?
I am interested in your setup. I still haven't not really found a solution to my music wants. This sounds like what i want for a basic setup. continuously playing songs randomly any, never ending, every night(?) it will pickup any new songs added to my music folder.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I just run mpd with random mode on and, as far as I can tell, it will just keep playing.
It isn't really possible to easily add a track to play next with mpd though, as one can in Amarok for example, so it's not perfect.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I just remembered that mpd has something called "consume mode" where it just plays a track then removes it from the playlist but if that's turned off it just cycles forever. To add tracks you need to manually ask mpd to rescan your collection which can be done in most mpd front ends including my favourites ncmpcpp (command line) and Gnome Music Player Client.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.