PDA

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



Benjamin Stewart
2005-02-06, 23:40
> > 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.
>

Then why on earth does it *let* you hook two client players up to one
stream? =)

And for that matter, why does the slim server software page [1] say that
it "Supports multiple synchronized players," which, as far as I
interpret that, is what I'm trying to do?

[1] http://www.slimdevices.com/pi_features.html

> 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.

1. the part where I don't have windows, and 2. the part where I wouldn't
want to run a server on windows if it were an option, and 3. the part
where I also need some programmatic interfaces to the music library so I
can implement the listener features that are the point of the project.


I'm currently looking at itunes + nicecast + wacky applescript -> cgi
options, which isn't as cross platform / remotely adminnable as I
wanted, but it actually seems like it may be the path of least
resistance, and as long as I apparently have spare powerbooks lying
around...

If anyone has any other ideas, let me know.

Thanks,
--Benjamin



----- End forwarded message -----

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

iD8DBQFCBw13LLmdM7FdIz4RAuoOAKDPkTbAnjlfzT7NQFI4bs 3cuuTR8wCgwPS1
wiYe4ZYzIywNqYzC7E1pLkc=
=dlyA
-----END PGP SIGNATURE-----

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

>
> > > 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.
> >
>
> Then why on earth does it *let* you hook two client players up to one
> stream? =)

because you aren't doing that. you are putting to players on the same IP.
and interfering with the network connection, thus stuttering
>
> And for that matter, why does the slim server software page [1] say that
> it "Supports multiple synchronized players," which, as far as I
> interpret that, is what I'm trying to do?

I'm well aware of the docs, and I'm just saying that you mis interpreted. Each
player gets its own stream. Multiple players can by synchrinised to play the
same tracks at the same time, but they are still discrete streams. They are
just playing the same songs at the same time. It works very well as an inhouse
solution. It isn't really optimised as a radio station.

-kdf

Aaron Zinck
2005-02-07, 00:04
To use synchronization "as advertised" with slimserver you must connect
multiple clients (not on the same stream, just let it set up a separate
client for each stream) and do either of the following:

through softsqueeze: drill down the main menu to "settings", then find
"synchronize" and choose the player that you want to synchronize with.

through the web interface: go to player settings, then audio, and choose the
player to synchronize with.

You might also try playing around with some plugins which have developed
this functionality a bit further. Plugins such as XSync or ShadowPlay might
help you. Check them out here:
http://www.gwendesign.com/slimserver/dev_software.htm



"Benjamin Stewart" <bsii+slim (AT) cryptio (DOT) net> wrote
in message news:20050207064055.GJ73519 (AT) radix (DOT) cryptio.net...
>

Benjamin Stewart
2005-02-07, 00:08
> > Then why on earth does it *let* you hook two client players up to one
> > stream? =)
>
> because you aren't doing that. you are putting to players on the same IP.
> and interfering with the network connection, thus stuttering

Two clients on one IP was only one case I tested. Whether I had two
clients on the same powerbook, or two clients on two different
powerbooks, the same skipping occurred.

I just want the two clients to be listening to the same song, in roughly
the same place. It seemed to do this, except it skipped. In the two
powerbook case, they weren't in the same place, but it was kinda
close... In the single IP case, I don't really remember what it was
doing, but both clients were still skipping, just like both clients
skipped in the multiple IP case.

> > And for that matter, why does the slim server software page [1] say that
> > it "Supports multiple synchronized players," which, as far as I
> > interpret that, is what I'm trying to do?
>
> I'm well aware of the docs, and I'm just saying that you mis interpreted. Each
> player gets its own stream. Multiple players can by synchrinised to play the
> same tracks at the same time, but they are still discrete streams.

That'd be fine. But in this scenario, I'm encountering skipping. =)

> They are just playing the same songs at the same time. It works very
> well as an inhouse solution. It isn't really optimised as a radio
> station.

I don't want to use it as an actual radio station; I want to use it to
talk about music with a bunch of friends who I used to work in the same
office with; In that environment, we just had a single computer with
some speakers, but now we're all distributed, so I want us to be able to
hear the same thing and talk about it via a forum. Precise
synchronization doesn't matter... It could be 30 seconds off within the
same song for all we care. The problem is, as soon as I connect two
clients -- be they on the same IP, or different IPs, the streams both
clients are receiving start to skip.

The way I'm connecting two clients to the same set of songs is with
http://host:9000/stream.mp3?player=IP

Is that not the correct way to connect two clients to a stream of the
same songs? If a song is "skipped" in that player, I want it to
eventually skip in every client connected, etc.

--Benjamin

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

iD8DBQFCBxPXLLmdM7FdIz4RAsZXAKDCbtngTcAXTely13oHo4 5L4NpgmgCgv71V
MJMH61P0KI95Q6b51r2BdoU=
=RdLw
-----END PGP SIGNATURE-----

John Gorst
2005-02-07, 04:24
> The way I'm connecting two clients to the same set of songs is with
> http://host:9000/stream.mp3?player=IP

I fyou read the documentation it syas that you cant synchronise 'mp3
streams', only hardware or hardware emulation clinets.

The above is delivering a single stream which slimserver is expeciting
only one client to connect to - each time one computer grabs a bit of it
slimserver things it has delivered that bit of the song, so when hte
other computer grabs the next bit of the song it has 'skipped' a bit of
the song. And so on.

If you connected each cleint to host:9000/stream.mp3 you wouldnt get any
skips but it would be a different streama nd playlist for each client -
and you woudlnt be listening to the same hting

Use softsqueeze and you won't have any troubles! Or even better buy a
squeezebox and support the community rather than taking a nasty tone
when trying to use free software and not getting exactly what you want.

Have fun!
(p.s. sorry if above sounds horrible but jsut come off nights!)

Marc Sherman
2005-02-07, 07:52
John Gorst wrote:
>
> Use softsqueeze and you won't have any troubles! Or even better buy a
> squeezebox and support the community rather than taking a nasty tone
> when trying to use free software and not getting exactly what you want.

That doesn't support the community, John, it supports Slim Devices. I'm
not saying he shouldn't support Slim Devices, too, but if you really
want him to support the community, you should say, "Or even better,
support the community by submitting a patch to allow synchronized
streams on direct web connect, instead of just via squeezebox/softsqueeze."

- Marc