Re: [slim] LMS and Sonos - trying

2016-07-10 Thread philippe_44

LMSSonos wrote: 
> I have a collection with more than 50k tracks and recently added some
> Sonos devices to my existing Squeezeboxes. I wanted to be able to access
> all music there as well, so I build a basic bridge for Sonos to talk
> with LMS server. I had it in mind to run on my synology nas so it's
> written in nodeJS, code can be downloaded on github, can't post a link
> right now - first post -  just search for lmssonos on github ;-)

Hi - The UPnP bridge I finally build works also very well with Sonos,
but it means that LMS is the music source, it does not let you listen to
Sonos collection in LMS



LMS 7.7.5 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos 2xPLAY:1,
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBMC, Foobar2000, XBoxOne,
JRiver 21, Chromecast Audio, Chromecast v1, Pi B2, Pi B+, 2xPi A+,
Odroid-C1, Cubie2

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2016-07-10 Thread LMSSonos

I have a collection with more than 50k tracks and recently added some
Sonos devices to my existing Squeezeboxes. I wanted to be able to access
all music there as well, so I build a basic bridge for Sonos to talk
with LMS server. I had it in mind to run on my synology nas so it's
written in nodeJS, code can be downloaded on github, can't post a link
right now - first post -  just search for lmssonos on github ;-)



LMSSonos's Profile: http://forums.slimdevices.com/member.php?userid=65879
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2015-07-06 Thread philippe_44

Mnyb wrote: 
> FYI on a squeezebox the replaygain adjustments and xfade is done in the
> player itself . Is any upnp player supporting this ?
> 
> Suppose the combo of xfade and gapless and sync is near impossible to
> accomplish with a combination of squeezeboxes and upnp players , best
> case scenario can it be done with two identical upnp players ? But no
> one has that :) ( usually a set of mixed players ) but this looks like
> an endless support case ..

Unfortunately not, having only upnp players or combo does not change the
issue. To my knowledge, it is not part of upnp standard to have replay
gain or xfade. To get some of these, squeeze2upnp would need to

- decode the incoming audio stream
- apply the replay gain
- optionally re-encode it in flac, mp3
- send it to the upnp player

... lots of CPU !

for xfade without gap, this is even worse as I would need to, on top of
the above, aggregate all I'm receiving from LMS into a single long track
and apply the xfade transform on the fly. But then it would prevent me
from knowing which track is played on the upnp player (remember that
upnp players buffer a lot of the sent data, so the only way to know and
report the time position to LMS is to request this position from the
upnp player itself). Then if all I transmit is a big long track, I would
have to sum / substract the already played track(s) from the reported
time position (which would always increase). This is doable, but this is
a convoluted thing to do.



LMS 7.7.2 - 5 radio, 3 Boom, 4 Duet, 1 Touch, 1 SB2. Sonos 2xPLAY:1,
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBMC, Foobar2000, XBoxOne
(sort of)

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2015-07-06 Thread Mnyb

FYI on a squeezebox the replaygain adjustments and xfade is done in the
player itself . Is any upnp player supporting this ?

Suppose the combo of xfade and gapless and sync is near impossible to
accomplish with a combination of squeezeboxes and upnp players , best
case scenario can it be done with two identical upnp players ? But no
one has that :) ( usually a set of mixed players ) but this looks like
an endless support case ..




Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x
MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3
sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(spares Touch, SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux

http://people.xiph.org/~xiphmont/demo/neil-young.html

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2015-07-05 Thread philippe_44

kefkekeyser wrote: 
> Jikes, that are two really big threads. The squeeze2upnp seems like
> something to try, but I read on the first page that it doesn't support
> replaygain or smart transitions :(

The difficulty of replaygain and smart transition is that this is a
player-dependant feature. The nature of sq2u is to be a bridge between
LMS and UPnP players, so the audio tracks are not decoded, but they are
forwarded (with a lot of tweaking) to the player. Decoding all tracks
would potentially require a lot more CPU. I could potentially apply
replaygain when receiving raw audio (pcm, wav, aiff), but flac and mp3
and all other coded format would be excluded. Smart transitions are on
the same line, but even more complicated. 

I thought at the beginning to have a few other modes, including one
where all tracks would be decoded and that would have had allowed such
features, but between the CPU load and lots of other extra complications
in handling UPnP players, I concentrated on the "bridge" mode. The
architecture of the system still allows it, but I don't have a plan to
develop it currently. I'm concentrating on bug correction, compatibility
with the infinite variation of UPnP implementations and finding a
solution for synchronisation for a few subset of players.



LMS 7.7.2 - 5 radio, 3 Boom, 4 Duet, 1 Touch, 1 SB2. Sonos 2xPLAY:1,
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBMC, Foobar2000, XBoxOne
(sort of)

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2015-06-28 Thread PaulinPosset

kefkekeyser wrote: 
> Jikes, that are two really big threads. The squeeze2upnp seems like
> something to try, but I read on the first page that it doesn't support
> replaygain or smart transitions :(

I don't use either of those functions so am not best qualified to answer
but if you post your question on the new thread Philippe will no doubt
answer.

http://forums.slimdevices.com/showthread.php?103728-Announce-UPnPBridge-integrate-UPnP-DLNA-players-with-LMS-(squeeze2upnp)



PaulinPosset's Profile: http://forums.slimdevices.com/member.php?userid=63060
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2015-06-26 Thread kefkekeyser

PaulinPosset wrote: 
> Things have moved on a bit since Phillipe last posted in this thread
> back in September so you might be interested in these threads ;)

Jikes, that are two really big threads. The squeeze2upnp seems like
something to try, but I read on the first page that it doesn't support
replaygain or smart transitions :(



kefkekeyser's Profile: http://forums.slimdevices.com/member.php?userid=64536
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2015-06-26 Thread PaulinPosset

kefkekeyser wrote: 
> Does this mean that if I have a Play 5, I can just add the LMS stream as
> a radio station and play that on the Play 5?
> Will smart volume (replaygain) and smart crossfade work in this case?
> If I now also buy another SONOS player, let's say a Play 3, and I also
> point this to the same LMS radio station, will it be in sync with the
> Play 5 (SONOS syncs both players)?
> 
> I have LMS running on my Synology DS214play and really like the smartmix
> plugin. SONOS doesn't have this (and also does not support ReplayGain
> for mp3's), but they have a lot of other streaming services that
> squeezebox lacks (22tracks, ...). Playing LMS as a radio station in
> SONOS might then give me the best of both worlds.

Things have moved on a bit since Phillipe last posted in this thread
back in September so you might be interested in these threads ;):


http://forums.slimdevices.com/showthread.php?102496-announce-squeeze2upnp-a-bridge-between-LMS-and-uPNP-devices

http://forums.slimdevices.com/showthread.php?103728-Announce-UPnPBridge-integrate-UPnP-DLNA-players-with-LMS-(squeeze2upnp)



PaulinPosset's Profile: http://forums.slimdevices.com/member.php?userid=63060
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2015-06-26 Thread kefkekeyser

philippe_44 wrote: 
> But if you don't care about sync and delay, using stream.mp3 as a radio
> station of Sonos works

Does this mean that if I have a Play 5, I can just add the LMS stream as
a radio station and pay that on the Play 5?
Will smart volume (replaygain) and smart crossfade work in this case?
If I now also buy another SONOS player, let's say a Play 3, and I also
point this to the same LMS stream, will it be in sync with the Play 5
(SONOS syncs both players)?

I have LMS running on my Synology DS214play and really like the smartmix
plugin. SONOS doesn't have this (and also does not support ReplayGain
for mp3's), but they have a lot of other streaming services that
squeezebox lacks (22tracks, ...). Playing LMS as a radio station in
SONOS might then give me the best of both worlds.



kefkekeyser's Profile: http://forums.slimdevices.com/member.php?userid=64536
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2014-09-28 Thread philippe_44

Just want to report some update. Thanks to libupnp, I now have a small
application that discovers automatically all uPNP media renderer on my
networks. It is a general uPNP control point, but focusing on Sonos, I'm
able to play, pause, stop Sonos devices. 

1) I can send an URI that comes from LMS directly. In that case, LMS is
acting as a uPNP media server and my app does nothing else that being a
control point
2) More interesting, my app can also receive all HTTP-GET from Sonos
devices, after it has sent "play" command to it so that, I can play
anything coming from the inside of the app 

I'm hopeful that I can now automatically create some "fake" SB
Squeezelite devices that will simply expose Sonos to LMS - one "fake
Squeezelite" for every Sonos. 

With 1) it could be a software gateway between the 2, now that play,
pause, stop works, the song would be direclty piped from Sonos to LMS,
but my app would provide the control. There would be no synchro possible
in that case, Squeezelite would not play any role in the audio data
stream in fact.

With 2) the audio data stream would transit through my app and, maybe, I
could get synchro by carefully feeding them to Sonos devices



philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2014-09-24 Thread philippe_44

was able to get and compile libupnp & pthread32 for Windows - sample
upnp application works and is able to communicate with other apps. Will
see next step if I can control a Sonos device



philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2014-09-21 Thread philippe_44

Back home for some tests - this is unfortuately unusable. Sonos streams
properly from http:///stream.mp3 but the delay for start or stop
is like 30 seconds. Propably just the fact that this is heavily buffered
and the Sonos client just get the stream from LMS "as it is", LMS is
just a http audio server. Well I guess I will have at least to get back
to squeezelite and translate a few commands to Sonos as an uPnP client.
This will obviously be a long journey :-). I'v seen other threads where
people manage to have something similar, but not exactly that,
especially no sycn and lot of transcoding that I'd like to avoid. If I
cannot make it work with at minimum a sync between LMS and Sonos, then
I'd better stick to my current HW solution which provides perfect audio
synchro, just with that limitation that the whole Sonos system is seens
a single player by LMS



philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


Re: [slim] LMS and Sonos - trying

2014-09-21 Thread philippe_44

In fact, I was thinking that is I can get a multiple instance of
SqueezeLite, all feeding different streams connected to Sonos
controller, it might be an interesting solution. In other words

SqueezeLite:1 ==> Stream:1 ==> Sonos device:1
SqueezeLite:2 ==> Stream:2 ==> Sonos device:2
. . . . .
SqueezeLite:N ==> Stream:N ==> Sonos device:N

So, from LMS, each Sonos device would be a separated SqueezeLite entity,
so it would be independently controllable as far as volume and what is
played on to it. From Sonos controller, what is needed is to play a
different stream on each device. Synchronization is not likely to work,
but it can be achieved by connecting multiple Sonos devices to a single
stream

It might be a resource hog, I don't know but I'll try with one first to
see if it is possible to easily procude a stream (like a radio stream)
that Sonos would recognize and if it works, then I'll see how to hack
Squeezelite and a simple streamer. I realize it might not work at all,
but can be a fun result :-)

Thoughts ?



philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss


[slim] LMS and Sonos - trying

2014-09-21 Thread philippe_44

I'me creating that new thread to try to reach a decent solution on that.
I'd copy first a few existing messages from other threads that I've
exchanged

 my working solution today -

Sonos cannot point to LMS, they ignore each other. What Sonos does well
is distributing analog source connected to the line-in of any capable
device (a play:5 or a connect) to any other device in the Sonos system
and keeping them fully in sync. So it is as simple as connecting the
line-out of a SB3 or a Touch or a Receiver to any Sonos device with
Line-In. Then _that_ Squeezebox device becomes your bridge. In other
words, you have to always play on that SB device to be able to listen to
your music on the Sonos system. The Sonos is, to some extend, just used
as wireless speakers with enhanced synchronization capabilities. What is
amazing is that when I tried that, I was expecting the Sonos system to
delay the analog input to a few 100ms and have to delay all my
Squeezebox devices to take that into account, I was expecting awfull
jitter at all - well, not at all (and I've been using that for almost 2
years). There is no audible delay between an analog input of a Sonos
system and that same music forwarded to any other sonos devices - this
is just instant "forward"

So, what is played on my Sonos "extensions" is fully controlled by my
Squeezebox system (I use iPeng a lot, it is really a great piece of
software). The only time when I use the Sonos controller is to mute /
unmute / group Sonos speakers as, again, all the Sonos speakers appears
as "one single entity" to the SB system. But that's all. Of course, at
any time, you can ask the Sonos system to play something else than the
line-in of (eg) a Play:5. The Sonos system is pointing to the same
folder containing my music, so everything is as well available
"natively"

Say you have 

Kitchen : Boombox
Dinner room : SB3 on amplifier speakers
Bedroom : Radio

you add Sonos devices
Dinner room : Play:5
Bedroom : 2xSonos:1

Connect line-out of SB3 to the Play:5 line-in using a Y connector

To play on the Sonos(Dinner) or Sonos(Bedroom), the caveat is that you
have to play on SB(Kitchen). On Sonos, configure it to re-play
Sonos(Dinner:LineIn) to Sonos(Bedroom) and/or Sonos(Dinner). Using your
prefered SB controller, then do what you used to do, and all speakers in
Bedroom will play in perfect sync, although they are a combo of Sonos
and Squeezebox. If you want to switch off Sonos(Dinner) or
Sonos(Bedroom), use the Sonos application on your preferred smartphone.
You can also dedicated an "old" Squeezebox receiver to be the bridge
between the system, not connected to any speaker - in that case, no
annoyance of having mandatory sound to be heard in one room to bridge to
Sonos. I feel it is a very smooth transition or a very good combo



philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102172

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss