PDA

View Full Version : How to Play Music on Web Server running Slim Server?



dcj
2005-10-25, 21:19
In addition to using Squeezeboxes on my LAN, I'd like to be able to select songs to be played via a web browser, and have the resulting music played on the web server, using the sound card on the web server. (My web server runs Linux)

My server is in the garage, and hooked up to an amp that powers in-wall speakers in some rooms of my house.

Is this possible? Is there a plugin to the SlimServer that will enable songs to be played on the server itself?

I'd very much appreciate pointers or advice.

Thanks!

Don

mherger
2005-10-25, 23:54
> In addition to using Squeezeboxes on my LAN, I'd like to be able to
> select songs to be played via a web browser, and have the resulting
> music played on the web server, using the sound card on the web server.

Use SoftSqueeze (search the forums for headless mode, if you need that).

> Is this possible? Is there a plugin to the SlimServer that will enable
> songs to be played on the server itself?

SoftSqueeze is available from the help section.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

Peter van Cooten
2005-10-26, 06:30
Install the softsqueeze (found on the webUI home page: left column, under
"Help") and you'll be perfectly happy!
You can also use Winamp by starting the stream
http://localhost:9000/stream.mp3 and control it through the webserver.
But I guess you'll prefer the SoftSqueeze - it's a perfect SqueezeBox 2
emulator.

Bye
Peter


-----Original Message-----
From: dcj [mailto:dcj.1xhrrb (AT) no-mx (DOT) forums.slimdevices.com]
Sent: woensdag 26 oktober 2005 6:19
To: discuss (AT) lists (DOT) slimdevices.com
Subject: [slim] How to Play Music on Web Server running Slim Server?


In addition to using Squeezeboxes on my LAN, I'd like to be able to select
songs to be played via a web browser, and have the resulting music played on
the web server, using the sound card on the web server.
(My web server runs Linux)

My server is in the garage, and hooked up to an amp that powers in-wall
speakers in some rooms of my house.

Is this possible? Is there a plugin to the SlimServer that will enable
songs to be played on the server itself?

I'd very much appreciate pointers or advice.

Thanks!

Don


--
dcj

kkitts
2005-10-26, 07:18
BTW, it is possible to run SoftSqueeze in a no gui/headless mode. I just put a command to startup the process in the slimserver script. You can find the command to run the SoftSqueeze program from the commmand line at:

http://softsqueeze.sourceforge.net/faq.html#headless

Incidentally, the SoftSqueeze program is written in Java and takes a fair amount of CPU to run - much more than the actual slimserver.pl software process. I've done a little experimenting and running SoftSqueeze with an optional mp3 plugin described at the site above uses less CPU - and running from the command line uses a bit less CPU as well.

Good Luck,

Kevin

karl101
2005-10-26, 08:12
Why not use Winamp?, or any player that uses winamp style streaming. Connect to the streaming port, then control what it plays with the SlimServer software.

I did try this. It worked very well. But it was a while ago, and I've forgotten exactly how.

K.

Roger the Shrubber
2005-10-26, 09:08
slimp3slave seems like a nice alternative too:

http://forums.slimdevices.com/showthread.php?t=5283

it's now running on my server synched very nicely with the softsqueeze on my main PC. I guess it might become a problem when I'll try streaming FLAC though.

clumsyoik
2005-10-26, 09:54
In addition to using Squeezeboxes on my LAN, I'd like to be able to select songs to be played via a web browser, and have the resulting music played on the web server, using the sound card on the web server. (My web server runs Linux)
Don

Yes! Yes! Please do this! None of the suggestions in this thread work properly for me. Probably because my server is underpowered (Celeron 600)

Slimp3slave - requires transcoding to mp3. It seems ridiculous to decode Ogg or Flac, and then encode to mp3, and then decode the mp3 all on the same box. Plus my little server chokes.

Winamp/whatever connecting to port 9000 - same problem. And, it doesn't work either, after a few minutes the stream ends. No idea why. Maybe its just my puny server again.

Softsqueeze - hmmm, again, not an option for a less than well endowed box. The poor machine ends up doing fewer redundant transcodes but it's just not practical to run java on small boxes.

Ben Sandee
2005-10-26, 10:02
On 10/26/05, clumsyoik <clumsyoik.1xiqpp (AT) no-mx (DOT) forums.slimdevices.com>
wrote:
>
>
> dcj Wrote:
> > In addition to using Squeezeboxes on my LAN, I'd like to be able to
> > select songs to be played via a web browser, and have the resulting
> > music played on the web server, using the sound card on the web server.
> > (My web server runs Linux)
> > Don
>
> Yes! Yes! Please do this! None of the suggestions in this thread work
> properly for me. Probably because my server is underpowered (Celeron
> 600)


If only there was a small (dare I say slim!) piece of networkable hardware
that could be driven from the server process to produce high quality audio.
That way you wouldn't need to further overburden your server. If the makers
of the FREE software SlimServer would be so intelligent as to make some
hardware to go along with it, why that would just be great!

Ben

kkitts
2005-10-26, 10:05
I used a PII/266 with 384M Ram running SUSE 9.3/KDE/Slimserver 6.1 and SoftSqueeze 2.0b9 with slighty different options to get the following results/CPU usage:

Note: I was running top in a windows which took some CPU itself.

1) Default SUSE 9.3 install with Java 1.4 (CPU Usage 100%)

2) Added mp3 plugin (CPU Usage about 80-85%)

3) Added Java 1.5 + mp3plugin (CPU Usage about 70%)

4) Ran SoftSqueeze from the command line with no GUI (CPU Usage about 50%)

I still get an occasional skip in the music - usually only when I move something on the screen - but sometimes randomly. I see warning messages about buffer underun.

Incidentally, I've changed the default init to startup without the GUI on SUSE (ie. init run level 3 instead of 5). I'll see if that makes a major difference. If you have any curiosity in the results let me know and I will post again.

I am not sure if I will get the performance of this system to a level that I consider acceptable. To me, it is not acceptable for the music to ever skip. I'm planing to increase the buffer size used by SoftSqueeze and reboot into level 3 (no X Windows) to see how that works. If it does not work flawlessly - then I will have established a data point (PII/266) that is too low.

Incidentally, I don't claim scientific precision with the results above - just rough estimates. All source files are 320Kbps MP3 files - not sure if that makes a difference.

Kevin

Alex Twisleton-Wykeham-Fiennes
2005-10-26, 10:17
On Wednesday 26 October 2005 18:02, Ben Sandee wrote:
> On 10/26/05, clumsyoik <clumsyoik.1xiqpp (AT) no-mx (DOT) forums.slimdevices.com>
>
> wrote:
> > dcj Wrote:
> > > In addition to using Squeezeboxes on my LAN, I'd like to be able to
> > > select songs to be played via a web browser, and have the resulting
> > > music played on the web server, using the sound card on the web server.
> > > (My web server runs Linux)
> > > Don
> >
> > Yes! Yes! Please do this! None of the suggestions in this thread work
> > properly for me. Probably because my server is underpowered (Celeron
> > 600)
>
> If only there was a small (dare I say slim!) piece of networkable hardware
> that could be driven from the server process to produce high quality audio.
> That way you wouldn't need to further overburden your server. If the makers
> of the FREE software SlimServer would be so intelligent as to make some
> hardware to go along with it, why that would just be great!

actually sarcasm aside, I was just thinking how nice it would be to have a
pure (wireless --> spdif) bridge. no display, no input devices, no analogue
stage, just a remote device that can be hooked up to whatever hifi set up is
required and then controlled entirely through a web interface (on a phone or
a PSP or whatever). Wouldn't even *really* need to handle decoding on the
box either (server hardware is very cheap).

Alex

clumsyoik
2005-10-26, 10:23
If only there was a small (dare I say slim!) piece of networkable hardware
that could be driven from the server process to produce high quality audio.
That way you wouldn't need to further overburden your server. If the makers
of the FREE software SlimServer would be so intelligent as to make some
hardware to go along with it, why that would just be great!

Ben

LOL!!! Good point, well made :-)

I totally agree, and also, softsqueeze, slimp3slave, winamp to port 9000, etc, etc, are pointless and should also be replaced by said hypothetical hardware.

MrC
2005-10-26, 11:35
Incidentally, I've changed the default init to startup without the GUI on SUSE (ie. init run level 3 instead of 5). I'll see if that makes a major difference. If you have any curiosity in the results let me know and I will post again.

I'm planing to increase the buffer size used by SoftSqueeze and reboot into level 3 (no X Windows) to see how that works.

FYI: No need to reboot or change the default level. Just type:

init 3

into a command line

and

init 5

to get back to your graphical session.