PDA

View Full Version : Announce: squeezeslave 0.4



rtitmuss
2006-02-05, 08:16
squeezeslave is a command line C program to play audio from the slimserver. It has no gui so all player control has to be done using a web browser or another program like Moose.

A new release of squeezeslave is available today, you can download binaries for Windows, Linux and OSX from:
https://sourceforge.net/project/showfiles.php?group_id=105169

This includes fixes for the background hiss in mp3 playback and adds support for pcm (wav, aiff) playback.

This release supports:
- native flac, pcm and mp3 playback
- gapless flac
- dithering on mp3 audio
- player synchronization
- password protected servers
- multiple players on one slimserver (use --mac option to set player mac address)


It does not yet support:
- volume (gain) control
- replay gain
- direct streaming (e.g. internet radio)
- audio looping (e.g. for short clips)
- anything other than 44.1Hz streams
- built in ssh tunnelling
- cross fading

Feedback welcome, as always ...

Richard

mattybain
2006-02-05, 09:31
For me that links to 0.3, 0.4 is linked from here.

http://sourceforge.net/project/showfiles.php?group_id=105169&package_id=176494&release_id=391033

mattybain
2006-02-05, 09:46
Hissing doesn't seem any better for MP3's on 0.4 compared to 0.3.

0.4 also complains that pthreadGC2.dll is missing, copying it from 0.3 gets it to work. This is on Windows XP SP2.

Good work though, I am very impressed with the synchronisation.

rtitmuss
2006-02-05, 13:24
OK that's what happens when you rush things. I've editied the url in the first post, and also release 0.4.1 for Windows and Linux (I missed the little endian case for the hissing fix).

Philip Meyer
2006-02-05, 15:27
I tried synchronising with a SB2 player.

I had music playing on the PC via SqueezeSlave. I then selected my SB2 player and selected to sync with the SqueezeSlave player. I then pressed stop - the music continued to play (I was next to PC - not sure if music stopped on my SB2). Music stopped after a minute or so, but then couldn't start it again!

I noticed the following in the SqueezeSlave DOS window:

decoding error
decoding error
http_recv: error reading from socket
http_recv: error reading from socket
decoding error
decoding error
decoding error
decoding error

I restarted SqueezeSlave, and then it was much happier.

There seems to be a problem when selecting to play new music whilst other music is already playing. When I do, I hear a quick pause in the currently playing music, then a 1/2 second of the music, then it stops permanently but reports that it is playing. This seems to result in the "decoding error" messages. Pressing stop and start (from web UI for the SqueezeSlave player) a few times seems to sort it out, but the synchronisation is sometimes 1/2 second out.

Is there any way to start the app without the DOS window? Maybe I could run it as a service (via srvany)?

Phil

Patrick Dowling
2006-02-05, 19:31
Is anyone able to download the OS X version. It appears to start and
then I get the following message:

You are requesting file: /softsqueeze/squeezeslave-0.4-osx.zip
There was a problem downloading the file from
sourceforge.irlab.pnap.net. Please try a different mirror.

Pat

On Feb 5, 2006, at 10:31 AM, mattybain wrote:

>
> For me that links to 0.3, 0.4 is linked from here.
>
> http://tinyurl.com/b8tpu
>
>
> --
> mattybain
>
> "After intensive investigation (comma) of the markings on the alien
> pod
> (comma) it has become clear (comma) to me (comma) that we are dealing
> (comma) with a species of awesome intellect (colon)."
> "Good. Perhaps they might be able to give you a hand with your
> punctuation."
>
> - Rimmer and Holly
> ----------------------------------------------------------------------
> --
> mattybain's Profile: http://forums.slimdevices.com/member.php?
> userid=44
> View this thread: http://forums.slimdevices.com/showthread.php?t=20799
>
>

Mark Lanctot
2006-02-05, 20:21
Great to hear that the hissing problem is solved.

I wanted to try this out, this time on my laptop. But
something strange happened - Squeezeslave only runs
for a second or so, just long enough for me to see
the screen, then quits.

There's nothing unusual about the laptop. It plays a
SlimServer stream through foobar2000 just fine. It's
WinXP Pro SP1. Pentium M 1.5 GHz, 512 MB of RAM.

Anything to look for?

I have a sneaking suspicion it's ZoneAlarm Pro. The
first time I ran it, the screen remained open until I
ackowledged ZA that it had permission. As soon as I
did that, the Squeezeslave screen disappears and won't
stay on for more than a second after that. But if I
remove Squeezeslave from ZA's list, it runs just long
enough for ZA to ask permission again, then quits.

--- rtitmuss
<rtitmuss.22rwwb (AT) no-mx (DOT) forums.slimdevices.com> wrote:

>
> OK that's what happens when you rush things. I've
> editied the url in the
> first post, and also release 0.4.1 for Windows and
> Linux (I missed the
> little endian case for the hissing fix).
>
>
> --
> rtitmuss
>
------------------------------------------------------------------------
> rtitmuss's Profile:
> http://forums.slimdevices.com/member.php?userid=36
> View this thread:
> http://forums.slimdevices.com/showthread.php?t=20799
>
>

=?UTF-8?B?TXIgTsO1dQ==?=
2006-02-06, 03:19
rtitmuss wrote:
>
> Feedback welcome, as always ...
>

Hi,

Syncing between a SB1 unit and squeezeslave 0.41 on an old laptop
(W2000) is still a little off and drifting. It starts out with
squeezeslave beeing circa .15 secs behind, and grows. Both players are
fed by the same wireless access point. When I am playing flac files
there is a quite perceptible background hiss on the squeezeslave-side.
this was not the case with earlier versions. not as noticable when
playing mp3s. (sync is about as off for flac and mp3).

I also installed sqeezeslave on a faster XP machine, and here lag
(compared to same SB1) is almost impeceptible to start with, but grows
to ~.1 sec in about 1 minute. start of next song eliminates lag, and
then it starts growing again.

It seems my old laptop is too slow, doesn't it?

/peter

ralphy
2006-02-06, 08:04
Great work Richard!

I've been using squeezeslave since I first ported it to linux after the first release. The ability to sync multiple squeezeslaves is my favourite feature. I've been running my SB3 wired v29 sync'd with two squeezeslave clients almost every day for the last two weeks and it's been flawless. Both slaves run ArchLinux. For one I'm using an old Toshiba Satellite Pro 440cdt 133Mhz Pentium MMX with 48MB of memory, the other on my P4 2.4GHz Dell machine. The laptop never misses a beat. I've used FLAC and mp3 files served with slimserver 6.2.1 without a hitch. While playing either of these file formats the laptop CPU utilization never peaks above 62% and all the clients stay close enough in sync that as I move from one room to another there is no noticeable diffence in playback position of the song.

Ralphy.

gorstk
2006-02-06, 12:57
rtitmuss wrote:

> Feedback welcome, as always ...

Sounds good to me in linux (ubuntu) and windows xp. No hissing (on my
crappy computer speakers) with flac or wav)

Only point woudl be that I did not realise I had to tell sqeezeslave teh
ip address of the server. If I double click on the executeable it exits
/really/ quickly so I did not realise it was saying it could not connect.

How about asking for an IP address to connect to if one is not specified
and it can not connect to localhost?

Mark Lanctot
2006-02-06, 13:31
Hey, that's probably what's happening to my
laptop. Runs fine on the SlimServer computer
because it's probably set to 127.0.0.1...

Yes, works fine on my laptop if I run it from the
command prompt: "squeezeslave <slimserver IP
address>".

One thing I notice is that SlimServer cannot
differentiate Squeezeslaves running on different
machines. There's only one SlimServer player
entry for Squeezeslave and it reuses the one I
specified for my main PC. I assume this is due to
the program's early development, but it will
become an issue once its use is extended to
multiple machines.

John Gorst wrote:
> rtitmuss wrote:
>
>> Feedback welcome, as always ...
>
> Sounds good to me in linux (ubuntu) and windows xp.
No hissing (on my
> crappy computer speakers) with flac or wav)
>
> Only point woudl be that I did not realise I had to
tell sqeezeslave teh
> ip address of the server. If I double click on the
executeable it exits
> /really/ quickly so I did not realise it was saying
it could not connect.
>
> How about asking for an IP address to connect to if
one is not specified
> and it can not connect to localhost?
>
>

malsbury
2006-02-06, 14:07
One thing I notice is that SlimServer cannot differentiate Squeezeslaves running on different machines. There's only one SlimServer player entry for Squeezeslave and it reuses the one I specified for my main PC. I assume this is due to the program's early development, but it will become an issue once its use is extended to multiple machines.You need to use the --mac option to set player mac address. It does not autodetect and set the mac address of the local NIC like softsqueeze does. I'm sure that it will at some point, but for now you can set it from the command line just like you do to specify the SlimServer IP.

--Tom Malsbury

Mark Lanctot
2006-02-06, 14:25
Aha - that makes sense. Thanks Tom.

malsbury wrote:
> Mark Lanctot Wrote:
>> One thing I notice is that SlimServer cannot
differentiate Squeezeslaves
>> running on different machines. There's only one
SlimServer player entry
>> for Squeezeslave and it reuses the one I specified
for my main PC. I
>> assume this is due to the program's early
development, but it will
>> become an issue once its use is extended to
multiple machines.You need to use the --mac option to
set player mac address. It does not
> autodetect and set the mac address of the local NIC
like softsqueeze
> does. I'm sure that it will at some point, but for
now you can set it
> from the command line just like you do to specify
the SlimServer IP.
>
> --Tom Malsbury
>
>

--
___________________________________


Mark Lanctot
___________________________________

mattybain
2006-02-06, 14:56
Ahh that's better, no hiss.

Having problems with synchronisation today, it is coming up with Slimproto_send: Error sending cmd: Unkown error

Was working fine yesterday though.

rtitmuss
2006-02-06, 15:36
Mark Lanctot wrote:

>One thing I notice is that SlimServer cannot
>differentiate Squeezeslaves running on different
>machines. There's only one SlimServer player
>entry for Squeezeslave and it reuses the one I
>specified for my main PC.
>
You need to use a unique mac per player. You can set the mac address
used for the player using the '--mac' option, for example like this:
squeezeslave --mac 01:02:03:04:05:06 192.168.0.1

Richard

Mark Lanctot
2006-02-06, 15:54
Thanks Richard, works fine now.

Richard Titmuss wrote:
> Mark Lanctot wrote:
>
>> One thing I notice is that SlimServer cannot
differentiate
>> Squeezeslaves running on different machines.
There's only one
>> SlimServer player entry for Squeezeslave and it
reuses the one I
>> specified for my main PC.
> You need to use a unique mac per player. You can set
the mac address
> used for the player using the '--mac' option, for
example like this:
> squeezeslave --mac 01:02:03:04:05:06 192.168.0.1
>
> Richard
>
>
>
>
>

tfec
2006-02-06, 17:15
Hi Richard,

Fantastic. My machine now plays music with a cpu-load of 30% instead of 100%+ with your javabound SoftSqueeze !
What do you mean it does not yet support direct streaming (e.g. internet radio)? With Slimserver it plays all radioio and shoutcast stations.

Dave2
2006-02-07, 10:07
My wired and wireless Squeezeboxes are working.
But from Squeezeslave I'm getting fluttery/motorboat sound.

... 0.4.1-win32>squeezeslave.exe 127.0.0.1
Found 6 devices
Primary Sound Driver : : 2
Playback through TotalRecorder (emulated) : : 2
SB Live! Wave Device : : 2
Primary Sound Capture Driver : : 2
Record through TotalRecorder (emulated) : : 2
SB Live! Wave Device : 11025.000000 22050.000000 44100.000000 : 2
PortAudio on DirectSound - Latency = 5376 frames, 121 msec

Any suggestions? Thanks.

Dave2

mash
2006-02-07, 18:14
tried squeezeslave for the first time today - I LOVE IT
appreciate the small footprint, no hissing on my XP system. Now I want it for my AXIM PPC (please)

M

jph
2006-02-10, 11:19
Thanks Richard!

This may have already been discussed, but what are the squeezeslave
license terms? Is it also under GPL (as per the SF Summary page)?

In general, I'd rather not grab the binary if source is available, not
out of paranoia, but mainly because I'd like to recompile under Linux AMD64.

rtitmuss wrote:
> squeezeslave is a command line C program to play audio from the
> slimserver. It has no gui so all player control has to be done using a
> web browser or another program like Moose.
>

Bradley
2006-02-11, 08:18
I tried this as an alternative to Softsqueeze on a machine where softsqueeze stopped working properly (UI comes up but stays dark - it doesn't communicate with Slimserver). I'm able to get music started with it, but then it doesn't respond to any commands from the player's web page once it gets started.

I know this is an early version, so just wanted to give feedback.

I'm not seeing the CPU gains another user describes. Mine is at 100% while this is running.

OT: Anyone have any way to diagnose the softsqueeze problem? I can't seem to get anything useful to show in the console. I was able to get one version of softsqueeze to generate an error.log file. In that file it had a "NullPointerException" relating to "UDP". This is all on a XP system that uses a content filtering mechanism called ContentProtect.

*Bradley

rtitmuss
2006-02-12, 13:13
On 11 Feb 2006, at 15:18, Bradley wrote:

> I'm able to get music started
> with it, but then it doesn't respond to any commands from the player's
> web page once it gets started.
>

Can you try running with 'squeezeslave --debug slimproto
<slimserverip>', and then post the output.

> OT: Anyone have any way to diagnose the softsqueeze problem? I can't
> seem to get anything useful to show in the console. I was able to get
> one version of softsqueeze to generate an error.log file. In that file
> it had a "NullPointerException" relating to "UDP". This is all on a
> XP
> system that uses a content filtering mechanism called ContentProtect.
>

Could you post the exact error? It may be that ContentProtect is not
allowing Softsqueeze/squeezeslave to communicate with the slimserver?

Richard

rtitmuss
2006-02-12, 13:16
On 10 Feb 2006, at 18:19, John Hernandez wrote:

> This may have already been discussed, but what are the squeezeslave
> license terms? Is it also under GPL (as per the SF Summary page)?
>

Yes, GPL. I should include the license with the binaries, I'll do that
for the next release.


> In general, I'd rather not grab the binary if source is available, not
> out of paranoia, but mainly because I'd like to recompile under Linux
> AMD64.
>

The source is available via slim devices SVN repository, it's in the
Softsqueeze folder. If you send me the binary I'd happily add it to
sourceforge for others to down load.

Richard

rtitmuss
2006-02-12, 13:17
On 8 Feb 2006, at 01:14, mash wrote:

> Now I want it for my AXIM PPC (please)

Patches welcome ;)

rtitmuss
2006-02-12, 13:19
On 7 Feb 2006, at 17:07, Dave2 wrote:

> My wired and wireless Squeezeboxes are working.
> But from Squeezeslave I'm getting fluttery/motorboat sound.

What music format are you streaming? I know of a bug for mono mp3
streams, they don't play correctly. Could you send me a track that does
not work, I'd like to understand if it's the decoder or the audio
output that's going wrong here.

Thanks,
Richard

rtitmuss
2006-02-12, 13:23
On 7 Feb 2006, at 00:15, tfec wrote:

> What do you mean it does not yet support direct streaming (e.g.
> internet radio)? With Slimserver it plays all radioio and shoutcast
> stations.

Direct streaming is used by the squeezenetwork, so I suppose I really
mean that the squeezenetwork is not yet supported.

Richard

tfec
2006-02-12, 15:42
On 7 Feb 2006, at 00:15, tfec wrote:
> What do you mean it does not yet support direct streaming (e.g.
> internet radio)? With Slimserver it plays all radioio and shoutcast
> stations.

Direct streaming is used by the squeezenetwork, so I suppose I really
mean that the squeezenetwork is not yet supported.

Richard

And,
squeezeslave is starving after some minutes playing radioio. Also it doesn't work with the LastFM plugin. Everytime I change the LastFM station, I have to restart squeezeslave on my debian slimserver machine.

But,
I think you are working on all this shortcomings, cause squeezeslave will make the slimserver into a fantastic music server, even without a squeezebox. :-)

Bradley
2006-02-13, 11:31
On 11 Feb 2006, at 15:18:

Can you try running with 'squeezeslave --debug slimproto
<slimserverip>', and then post the output.



Here's the output:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Theo>"C:\Documents and Settings\Theo\Desktop\SqueezeSl
ave.lnk" --mac 00:09:5b:95:7c:42 192.168.100.5 --debug slimproto

C:\Documents and Settings\Theo>Found 4 devices
Primary Sound Driver : : 2
SoundMAX Digital Audio : : 2
Primary Sound Capture Driver : 11025.000000 22050.000000 44100.000000 :
2
SoundMAX Digital Audio : 11025.000000 22050.000000 44100.000000 : 2
slimproto_connect(192.168.100.5, 3483)
PortAudio on DirectSound - Latency = 5376 frames, 121 msec
Connected to 192.168.100.5
slimproto_send: cmd=HELO len=10
slimproto_recv cmd=vers len=9
Cannot parse vers
slimproto_recv cmd=grfb len=6
Cannot parse grfb
slimproto_recv cmd=grfe len=1120
Cannot parse grfe
slimproto_recv cmd=visu len=50
Cannot parse visu
slimproto_recv cmd=audg len=22
Cannot parse audg
slimproto_recv cmd=grfe len=1120
Cannot parse grfe
[Above line Repeats infinitely]



On 11 Feb 2006, at 15:18:
> OT: Anyone have any way to diagnose the softsqueeze problem? I can't
> seem to get anything useful to show in the console. I was able to get
> one version of softsqueeze to generate an error.log file. In that file
> it had a "NullPointerException" relating to "UDP". This is all on a
> XP
> system that uses a content filtering mechanism called ContentProtect.
>

Could you post the exact error? It may be that ContentProtect is not
allowing Softsqueeze/squeezeslave to communicate with the slimserver?

Richard
Here's the error:

Exception in thread "SlimUDP-0" java.lang.NullPointerException
at com.slim.softsqueeze.Protocol$UdpSocket.run(Protoc ol.java:525)


Richard:

My desire is really to get Softsqueeze working again as this is my son's computer. I have tried disabling the "Content Protect" application, but it has no effect. Softsqueeze UI comes up but it never gets to "Welcome to Slimserver" and the Remote Buttons are unresponsive. However, the web interface will display (although it won't show softsqueeze as a player) and the options windows/tabs will show up as well, but I can't find any options that will make this work.

I very much appreciate your help.

*Bradley

Bradley
2006-02-13, 12:19
Richard:

I did figure out a way to get Softsqueeze working on the above mentioned machine. It apparently was the ContentProtect content filtering mechanism that was causing the problem. However, fixing it required downloading the Windows exe version of Softqueeze 2.3 and then entering softsqueeze.exe as an "application override entry" in ContentProtect in order to get Softsqueeze to get past the above mentioned error.

Now Softsqueeze is working on that PC so, I can avoid using SqueezeSlave.

Nonetheless, hope the above debug information is helpful in the evolution of your software.

*Bradley

cookeal
2006-02-14, 07:03
I have been testing various ways of getting my OLD laptop (166Mhz 80Mb RAM Toshiba 305CDS) to run as a music player from a remote slimserver.

This is where I am at: I have an XP machine running Slimserver - no probs. I have a DSL Linux running on the laptop. I can play stuff well using XMMS and a browser - the only exception being the BBC streams from AlienBBC (incidentally I still dont really understand why these wont play if they are being encoded to MP3 at the server end?). I cannot use Softsqueeze with either the GUI or Headless as the machine grinds to a slow but sure halt - CPU 100% (have tried various combinations of jLayer, MP3 Plugin and buffer sizes). Frustratingly I can get snippets of BBC Radio using this method which tells me that Im close...I have pretty much given up here though as I think the machine just doesnt have the guts to run Java.

Now along comes SqueezeSlave which I have been testing over the last few days - playing MP3's from my collection is VERY responsive compared to any other method (CPU - 30%) so far although occasionally I do seem to loose the connection or Squeezeslave stops running. Encouragingly I have also played some non-BBC stations from AlienBBC although I do get encode errors showing in the terminal. Suppose I just wanted to encourage the development of this great app and let you know that for some of us it may be our only hope! :~) If there is any constructive feedback I can supply please let me know, bearing in mind that I am pretty new to Linux and the SS world

Thanks

f948lan
2006-02-14, 12:50
First thanks for a great bit of software.

I am running squeezeslave on gentoo linux, it correctly detects two soundcards, but I cannot find a way of forcing which card is selected. I would like to run 2 copies of squeezeslave on one machine, one for each soundcard (they feed different rooms), so I have the option of different or synced music between the rooms, and a squeezebox.

Is this possible?

Also are there any plans for ALSA device support?

Thanks,
Graham

rtitmuss
2006-02-14, 13:39
f948lan wrote:

>First thanks for a great bit of software.
>
>
Thanks.

>I am running squeezeslave on gentoo linux, it correctly detects two
>soundcards, but I cannot find a way of forcing which card is selected.
>...
>Is this possible?
>
>
Not at the moment, but I will be adding this as an option soon.

>Also are there any plans for ALSA device support?
>
>
I don't have any plans to add this myself. I think that the latest
version of the PortAudio library (that's used for audio playback in
squeezeslave) supports ALSA playback. This version of the library has
been in development for years, and I have not tried it yet! I would be
interested in patches ...

Richard