PDA

View Full Version : multiple clients on the same stream causes skipping?



Benjamin Stewart
2005-02-06, 14:38
hi folks,

i've been looking for a platform to build an idea on for awhile, and
slim server is the latest one I'm trying. So far it's the easiest to
use I've tried, and it seems really promising, but for one problem:

when I connect multiple clients to a single stream ("player"), every few
seconds the music will skip, kinda like a skipping cd, but without the
obnoxious beepy part. It's a continuous audio stream, but it's
unlistenable.

details of the set up:
* Only one album with 13 songs loaded into the library. The mp3s are
plain old 128 kbps, and I'm streaming at 128kpbs. They aren't VBR or
anything goofy.
* Slim Server is running on a PowerBook G4 1 Ghz with 1 GB RAM.
* Clients are the server powerbook, and another PowerBook with exactly
the same specs.
* Software clients are iTunes and Audion 3.
* The network is all 802.11g, but that's not the problem, because the
described symptoms happen when both clients are running on the server
and disconnect the server from the network.
* It's not CPU, either, because the server has a ton of idle CPU in my
tests.

basically, if I connect one client per stream, it sounds great.

if I connect a second client to the same stream
(10.0.1.2:9000/stream.mp3?player=127.0.0.1), the skipping starts on both
streams.

if I connect a second client to a DIFFERENT stream
(10.0.1.2:9000/stream.mp3 -- from a machine other than 127.0.0.1 so that
it'll create a new stream (if I try to connect the second player on
127.0.0.1, it seems to auto-join the existing one bound to that IP... I
saw some discussion of that on the list, and that's something I can work
around)), both streams continue to play fine.

but as soon as I connect two players to one stream, both players on that
stream start to skip.

(In fact, just for funsies, I managed to connect *six* different players
to six different streams, and they were all good! But as soon as I
doubled any of them up, both players on that stream started skipping
(though the other four continued to play fine))

if anyone has any insight into why this is happening, I'd love to hear
it, because from what I've seen, I'd love to build my project on slim
server and contribute to this community.

thanks,
benjamin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFCBo5ELLmdM7FdIz4RAn9vAJ9yR1Y3u3H0KYZSpJiveS 4Hlr8PzwCgx3BN
iYEnxrO2Yczm5fTwZTersw4=
=CEJw
-----END PGP SIGNATURE-----

John Gorst
2005-02-06, 18:28
As far as I am aware it is not possible to have more than one stream.mp3
client running off the same stream in sync.

However if you install softsqueeze (softsqueeze.sourceforce.net) you can
sync them together quite easily.

HTH
Benjamin Stewart wrote:
> hi folks,
>
> i've been looking for a platform to build an idea on for awhile, and
> slim server is the latest one I'm trying. So far it's the easiest to
> use I've tried, and it seems really promising, but for one problem:
>
> when I connect multiple clients to a single stream ("player"), every few
> seconds the music will skip, kinda like a skipping cd, but without the
> obnoxious beepy part. It's a continuous audio stream, but it's
> unlistenable.
>
> details of the set up:
> * Only one album with 13 songs loaded into the library. The mp3s are
> plain old 128 kbps, and I'm streaming at 128kpbs. They aren't VBR or
> anything goofy.
> * Slim Server is running on a PowerBook G4 1 Ghz with 1 GB RAM.
> * Clients are the server powerbook, and another PowerBook with exactly
> the same specs.
> * Software clients are iTunes and Audion 3.
> * The network is all 802.11g, but that's not the problem, because the
> described symptoms happen when both clients are running on the server
> and disconnect the server from the network.
> * It's not CPU, either, because the server has a ton of idle CPU in my
> tests.
>
> basically, if I connect one client per stream, it sounds great.
>
> if I connect a second client to the same stream
> (10.0.1.2:9000/stream.mp3?player=127.0.0.1), the skipping starts on both
> streams.
>
> if I connect a second client to a DIFFERENT stream
> (10.0.1.2:9000/stream.mp3 -- from a machine other than 127.0.0.1 so that
> it'll create a new stream (if I try to connect the second player on
> 127.0.0.1, it seems to auto-join the existing one bound to that IP... I
> saw some discussion of that on the list, and that's something I can work
> around)), both streams continue to play fine.
>
> but as soon as I connect two players to one stream, both players on that
> stream start to skip.
>
> (In fact, just for funsies, I managed to connect *six* different players
> to six different streams, and they were all good! But as soon as I
> doubled any of them up, both players on that stream started skipping
> (though the other four continued to play fine))
>
> if anyone has any insight into why this is happening, I'd love to hear
> it, because from what I've seen, I'd love to build my project on slim
> server and contribute to this community.
>
> thanks,
> benjamin
>
>
> ------------------------------------------------------------------------
>
>

Benjamin Stewart
2005-02-06, 19:49
The problem wasn't that the streams weren't quite in sync with each
other -- that's fine for my needs. The problem was that as soon as more
than one client connected to a stream, all the streams started skipping.

But I'll check out softsqueeze later...

Thanks for the pointer!
--Benjamin

On Mon, Feb 07, 2005 at 01:28:59AM +0000, John Gorst wrote:
>
> As far as I am aware it is not possible to have more than one stream.mp3
> client running off the same stream in sync.
>
> However if you install softsqueeze (softsqueeze.sourceforce.net) you can
> sync them together quite easily.
>
> HTH
> Benjamin Stewart wrote:
> > hi folks,
> >
> > i've been looking for a platform to build an idea on for awhile, and
> > slim server is the latest one I'm trying. So far it's the easiest to
> > use I've tried, and it seems really promising, but for one problem:
> >
> > when I connect multiple clients to a single stream ("player"), every few
> > seconds the music will skip, kinda like a skipping cd, but without the
> > obnoxious beepy part. It's a continuous audio stream, but it's
> > unlistenable.
> >
> > details of the set up:
> > * Only one album with 13 songs loaded into the library. The mp3s are
> > plain old 128 kbps, and I'm streaming at 128kpbs. They aren't VBR or
> > anything goofy.
> > * Slim Server is running on a PowerBook G4 1 Ghz with 1 GB RAM.
> > * Clients are the server powerbook, and another PowerBook with exactly
> > the same specs.
> > * Software clients are iTunes and Audion 3.
> > * The network is all 802.11g, but that's not the problem, because the
> > described symptoms happen when both clients are running on the server
> > and disconnect the server from the network.
> > * It's not CPU, either, because the server has a ton of idle CPU in my
> > tests.
> >
> > basically, if I connect one client per stream, it sounds great.
> >
> > if I connect a second client to the same stream
> > (10.0.1.2:9000/stream.mp3?player=127.0.0.1), the skipping starts on both
> > streams.
> >
> > if I connect a second client to a DIFFERENT stream
> > (10.0.1.2:9000/stream.mp3 -- from a machine other than 127.0.0.1 so that
> > it'll create a new stream (if I try to connect the second player on
> > 127.0.0.1, it seems to auto-join the existing one bound to that IP... I
> > saw some discussion of that on the list, and that's something I can work
> > around)), both streams continue to play fine.
> >
> > but as soon as I connect two players to one stream, both players on that
> > stream start to skip.
> >
> > (In fact, just for funsies, I managed to connect *six* different players
> > to six different streams, and they were all good! But as soon as I
> > doubled any of them up, both players on that stream started skipping
> > (though the other four continued to play fine))
> >
> > if anyone has any insight into why this is happening, I'd love to hear
> > it, because from what I've seen, I'd love to build my project on slim
> > server and contribute to this community.
> >
> > thanks,
> > benjamin
> >
> >
> >------------------------------------------------------------------------
> >
> >

Benjamin Stewart
2005-02-06, 22:29
Softsqueeze looks like it's just a player, and I don't see how it's
supposed to help solve my problem. Worse, when I try to connect itunes
to a stream that softsqueeze is already listening to, softsqueeze stops
playing.

I want to be able to broadcast my stream to multiple clients (computers)
-- is that not possible? Or am I going to have to some wacky middle man
broadcasting scheme?

Thanks for any tips,
--Benjamin

On Sun, Feb 06, 2005 at 06:49:41PM -0800, Benjamin Stewart wrote:
> The problem wasn't that the streams weren't quite in sync with each
> other -- that's fine for my needs. The problem was that as soon as more
> than one client connected to a stream, all the streams started skipping.
>
> But I'll check out softsqueeze later...
>
> Thanks for the pointer!
> --Benjamin
>
> On Mon, Feb 07, 2005 at 01:28:59AM +0000, John Gorst wrote:
> >
> > As far as I am aware it is not possible to have more than one stream.mp3
> > client running off the same stream in sync.
> >
> > However if you install softsqueeze (softsqueeze.sourceforce.net) you can
> > sync them together quite easily.
> >
> > HTH
> > Benjamin Stewart wrote:
> > > hi folks,
> > >
> > > i've been looking for a platform to build an idea on for awhile, and
> > > slim server is the latest one I'm trying. So far it's the easiest to
> > > use I've tried, and it seems really promising, but for one problem:
> > >
> > > when I connect multiple clients to a single stream ("player"), every few
> > > seconds the music will skip, kinda like a skipping cd, but without the
> > > obnoxious beepy part. It's a continuous audio stream, but it's
> > > unlistenable.
> > >
> > > details of the set up:
> > > * Only one album with 13 songs loaded into the library. The mp3s are
> > > plain old 128 kbps, and I'm streaming at 128kpbs. They aren't VBR or
> > > anything goofy.
> > > * Slim Server is running on a PowerBook G4 1 Ghz with 1 GB RAM.
> > > * Clients are the server powerbook, and another PowerBook with exactly
> > > the same specs.
> > > * Software clients are iTunes and Audion 3.
> > > * The network is all 802.11g, but that's not the problem, because the
> > > described symptoms happen when both clients are running on the server
> > > and disconnect the server from the network.
> > > * It's not CPU, either, because the server has a ton of idle CPU in my
> > > tests.
> > >
> > > basically, if I connect one client per stream, it sounds great.
> > >
> > > if I connect a second client to the same stream
> > > (10.0.1.2:9000/stream.mp3?player=127.0.0.1), the skipping starts on both
> > > streams.
> > >
> > > if I connect a second client to a DIFFERENT stream
> > > (10.0.1.2:9000/stream.mp3 -- from a machine other than 127.0.0.1 so that
> > > it'll create a new stream (if I try to connect the second player on
> > > 127.0.0.1, it seems to auto-join the existing one bound to that IP... I
> > > saw some discussion of that on the list, and that's something I can work
> > > around)), both streams continue to play fine.
> > >
> > > but as soon as I connect two players to one stream, both players on that
> > > stream start to skip.
> > >
> > > (In fact, just for funsies, I managed to connect *six* different players
> > > to six different streams, and they were all good! But as soon as I
> > > doubled any of them up, both players on that stream started skipping
> > > (though the other four continued to play fine))
> > >
> > > if anyone has any insight into why this is happening, I'd love to hear
> > > it, because from what I've seen, I'd love to build my project on slim
> > > server and contribute to this community.
> > >
> > > thanks,
> > > benjamin
> > >
> > >
> > >------------------------------------------------------------------------
> > >
> > >

kdf
2005-02-06, 22:44
Quoting Benjamin Stewart <bsii+slim (AT) cryptio (DOT) net>:

> Softsqueeze looks like it's just a player, and I don't see how it's
> supposed to help solve my problem. Worse, when I try to connect itunes
> to a stream that softsqueeze is already listening to, softsqueeze stops
> playing.
>
> I want to be able to broadcast my stream to multiple clients (computers)
> -- is that not possible?

it is certainly possible, just not with slimserver. Slimserver is designed to
deliver to each client, a single and discrete stream. They cannot be shared.


-kdf

Aaron Zinck
2005-02-06, 23:07
Run softsqueeze on all the computers that you want to listen to and simply
synchronize all the players (you can synchronize both via the web interface
as well as the softsqueeze ui itself). This will result in all the clients
hearing the same music (though not technically the same stream). If you
stop or change tracks or add tracks to the playlist, etc., all synchronized
players should stay synchronized. (I should mention that you may need to
manually change the mac address of your softsqueezes so that they are
recognized as different players by slimserver--perhaps Richard could offer
more help on this).

Also, is there some other requirement that you have that prevents shoutcast
from working for you? That would seem to be a more direct solution.

Good luck!


"Benjamin Stewart" <bsii+slim (AT) cryptio (DOT) net> wrote
in message news:20050207052922.GH73519 (AT) radix (DOT) cryptio.net...
> Softsqueeze looks like it's just a player, and I don't see how it's
> supposed to help solve my problem. Worse, when I try to connect itunes
> to a stream that softsqueeze is already listening to, softsqueeze stops
> playing.
>
> I want to be able to broadcast my stream to multiple clients (computers)
> -- is that not possible? Or am I going to have to some wacky middle man
> broadcasting scheme?
>
> Thanks for any tips,
> --Benjamin
>
> On Sun, Feb 06, 2005 at 06:49:41PM -0800, Benjamin Stewart wrote:
> > The problem wasn't that the streams weren't quite in sync with each
> > other -- that's fine for my needs. The problem was that as soon as more
> > than one client connected to a stream, all the streams started skipping.
> >
> > But I'll check out softsqueeze later...
> >
> > Thanks for the pointer!
> > --Benjamin
> >
> > On Mon, Feb 07, 2005 at 01:28:59AM +0000, John Gorst wrote:
> > >
> > > As far as I am aware it is not possible to have more than one
stream.mp3
> > > client running off the same stream in sync.
> > >
> > > However if you install softsqueeze (softsqueeze.sourceforce.net) you
can
> > > sync them together quite easily.
> > >
> > > HTH
> > > Benjamin Stewart wrote:
> > > > hi folks,
> > > >
> > > > i've been looking for a platform to build an idea on for awhile, and
> > > > slim server is the latest one I'm trying. So far it's the easiest
to
> > > > use I've tried, and it seems really promising, but for one problem:
> > > >
> > > > when I connect multiple clients to a single stream ("player"), every
few
> > > > seconds the music will skip, kinda like a skipping cd, but without
the
> > > > obnoxious beepy part. It's a continuous audio stream, but it's
> > > > unlistenable.
> > > >
> > > > details of the set up:
> > > > * Only one album with 13 songs loaded into the library. The mp3s
are
> > > > plain old 128 kbps, and I'm streaming at 128kpbs. They aren't VBR
or
> > > > anything goofy.
> > > > * Slim Server is running on a PowerBook G4 1 Ghz with 1 GB RAM.
> > > > * Clients are the server powerbook, and another PowerBook with
exactly
> > > > the same specs.
> > > > * Software clients are iTunes and Audion 3.
> > > > * The network is all 802.11g, but that's not the problem, because
the
> > > > described symptoms happen when both clients are running on the
server
> > > > and disconnect the server from the network.
> > > > * It's not CPU, either, because the server has a ton of idle CPU in
my
> > > > tests.
> > > >
> > > > basically, if I connect one client per stream, it sounds great.
> > > >
> > > > if I connect a second client to the same stream
> > > > (10.0.1.2:9000/stream.mp3?player=127.0.0.1), the skipping starts on
both
> > > > streams.
> > > >
> > > > if I connect a second client to a DIFFERENT stream
> > > > (10.0.1.2:9000/stream.mp3 -- from a machine other than 127.0.0.1 so
that
> > > > it'll create a new stream (if I try to connect the second player on
> > > > 127.0.0.1, it seems to auto-join the existing one bound to that
IP... I
> > > > saw some discussion of that on the list, and that's something I can
work
> > > > around)), both streams continue to play fine.
> > > >
> > > > but as soon as I connect two players to one stream, both players on
that
> > > > stream start to skip.
> > > >
> > > > (In fact, just for funsies, I managed to connect *six* different
players
> > > > to six different streams, and they were all good! But as soon as I
> > > > doubled any of them up, both players on that stream started skipping
> > > > (though the other four continued to play fine))
> > > >
> > > > if anyone has any insight into why this is happening, I'd love to
hear
> > > > it, because from what I've seen, I'd love to build my project on
slim
> > > > server and contribute to this community.
> > > >
> > > > thanks,
> > > > benjamin
> > > >
> > > >
> > >
>------------------------------------------------------------------------
> > > >
> > > >

John Gorst
2005-02-07, 04:18
Benjamin Stewart wrote:
> Softsqueeze looks like it's just a player, and I don't see how it's
> supposed to help solve my problem. Worse, when I try to connect itunes
> to a stream that softsqueeze is already listening to, softsqueeze stops
> playing.
>
> I want to be able to broadcast my stream to multiple clients (computers)
> -- is that not possible? Or am I going to have to some wacky middle man
> broadcasting scheme?
>

I think what is happening is that you are streaming stream.mp3 to
several differnet clinets.

Each one is picking up different segments of the mp3 file - slimserver
is expecting only one client to conenct to a sing stream.mp3.

The best way of doing it is with softsqueeze, and sync the players together.