LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-21-2015, 09:11 PM   #1
raksasas
Member
 
Registered: Sep 2012
Posts: 55

Rep: Reputation: Disabled
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.
 
Old 03-21-2015, 10:31 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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?
 
Old 03-21-2015, 10:53 PM   #3
raksasas
Member
 
Registered: Sep 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
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?

Last edited by raksasas; 03-21-2015 at 11:02 PM.
 
Old 03-21-2015, 10:56 PM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by raksasas View Post
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?
mpd-sima
 
Old 03-21-2015, 11:01 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by raksasas View Post
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?
Set it on repeat?
 
Old 03-21-2015, 11:51 PM   #6
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
Quote:
Originally Posted by raksasas View Post
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

Last edited by pwalden; 03-22-2015 at 12:14 AM.
 
Old 04-28-2018, 06:40 PM   #7
raksasas
Member
 
Registered: Sep 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Sorry reviving an old thread. Mainly because I am having a little trouble finding how private messages

Quote:
Originally Posted by 273 View Post
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.
 
Old 04-28-2018, 06:47 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 05-03-2018, 07:10 AM   #9
raksasas
Member
 
Registered: Sep 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Okay ill see what i figure out. Thanks.
 
Old 05-03-2018, 07:20 AM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Vortex1.7 is released! Turn your unused computer into a music server/jukebox |With Screenshots LXer Syndicated Linux News 0 01-06-2011 02:30 AM
can't play music with Jukebox nor Amarok vong'xion Linux - Newbie 12 03-08-2006 10:31 AM
virtual music jukebox software fulviom Linux - General 1 09-02-2005 07:36 PM
Music Match Jukebox fishman5 Linux - Software 4 09-30-2003 11:54 AM
Music Manager / Jukebox mdfairch Linux - Software 1 09-22-2003 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration