Kodi Community Forum
[ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC (/showthread.php?tid=122199)



RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-14

@newan I use libreelec currently, previously OE.

What's the output string that squeezelite shows in xsqueeze settings? Squeezelite is a better player than slave so I generally use that.

Basically I just set gui sounds to never, auido device keep alive to never, that is it *I think*.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - newan - 2016-06-14

My squeezelite output is same in the pluginsettings:

Code:
Output devices:
  null                           - Discard all samples (playback) or generate zero samples (capture)
  default:CARD=PCH               - HDA Intel PCH, ALC283 Analog - Default Audio Device
  sysdefault:CARD=PCH            - HDA Intel PCH, ALC283 Analog - Default Audio Device
  front:CARD=PCH,DEV=0           - HDA Intel PCH, ALC283 Analog - Front speakers
  surround21:CARD=PCH,DEV=0      - HDA Intel PCH, ALC283 Analog - 2.1 Surround output to Front and Subwoofer speakers
  surround40:CARD=PCH,DEV=0      - HDA Intel PCH, ALC283 Analog - 4.0 Surround output to Front and Rear speakers
  surround41:CARD=PCH,DEV=0      - HDA Intel PCH, ALC283 Analog - 4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=PCH,DEV=0      - HDA Intel PCH, ALC283 Analog - 5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=PCH,DEV=0      - HDA Intel PCH, ALC283 Analog - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=PCH,DEV=0      - HDA Intel PCH, ALC283 Analog - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  hdmi:CARD=PCH,DEV=0            - HDA Intel PCH, HDMI 0 - HDMI Audio Output

The last output i woud use. Gui sound = off + sound alive = off.

Last Log with my try "-o hdmi":

Code:
14:34:40 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Called as: ['default.py', 'ServerDiscovery']
14:34:40 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Doing server discovery...
14:34:40 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Calling SqueezeSlave for server discovery...['/storage/.kodi/addons/script.xsqueeze/resources/bin/linux/squeezeslave-i64', '-I']
14:34:41 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Error, if any:
14:34:41 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Lines returned is homeserver:9001 (192.168.178.5)
14:34:41 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Parsing line homeserver:9001 (192.168.178.5)
14:34:41 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### List of servers is ['homeserver']['192.168.178.5']
14:34:42 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Doing Cleanup
14:34:42 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### XSqueeze (Author: bossanova808) Exiting ....
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### XSqueeze (Author: bossanova808) Starting ...
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Called as: ['default.py']
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Installed custom keymap
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Suspended XBMC AE
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Starting local player [squeezelite], system is [linux]
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Attempting to start player: ['/storage/.kodi/addons/script.xsqueeze/resources/bin/linux/squeezelite-i64', '-m', '00:00:00:00:00:01', '-o', 'hdmi', '-s', '192.168.178.5']
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Path is: ['/storage/.kodi/addons/script.xsqueeze', '/storage/.kodi/addons/script.module.b808common/lib', '/storage/.kodi/addons/script.module.xsqueezecommon/lib', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/storage/.kodi/addons/script.xsqueeze/resources/lib/classes', '/storage/.kodi/addons/script.xsqueeze/resources/lib']
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Process ID for player is 867
14:35:47 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Brief pause for dust to settle - 1
14:35:48 T:140614049974016   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
14:35:49 T:140614335194880 WARNING: CSkinInfo: failed to load skin settings
14:35:49 T:140614335194880   ERROR: Traceback (most recent call last):
14:35:49 T:140614335194880   ERROR:   File "/storage/.kodi/addons/script.xsqueeze/resources/lib/classes/NowPlayingWindow.py", line 211, in __init__
14:35:49 T:140614335194880   ERROR:     self.player = SqueezePlayer()
14:35:49 T:140614335194880   ERROR:   File "/storage/.kodi/addons/script.module.xsqueezecommon/lib/XSqueezeCommon.py", line 116, in __init__
14:35:49 T:140614335194880   ERROR:     raise Exception
14:35:49 T:140614335194880   ERROR: Exception
14:35:49 T:140614335194880   ERROR: Traceback (most recent call last):
14:35:49 T:140614335194880   ERROR:   File "/storage/.kodi/addons/script.xsqueeze/default.py", line 368, in <module>
14:35:49 T:140614335194880   ERROR:     window = NowPlayingWindow("XSqueezeNowPlaying" + version_stub + ".xml",CWD,"Default")
14:35:49 T:140614335194880   ERROR:   File "/storage/.kodi/addons/script.xsqueeze/resources/lib/classes/NowPlayingWindow.py", line 211, in __init__
14:35:49 T:140614335194880   ERROR:     self.player = SqueezePlayer()
14:35:49 T:140614335194880   ERROR:   File "/storage/.kodi/addons/script.module.xsqueezecommon/lib/XSqueezeCommon.py", line 116, in __init__
14:35:49 T:140614335194880   ERROR:     raise Exception
14:35:49 T:140614335194880   ERROR: Exception
14:35:49 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Doing Cleanup
14:35:49 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Killing player process...
14:35:49 T:140614335194880  NOTICE: ### XSqueeze - 1.2.1 ### Pausing for 2, per request in XSqueeze settings.
14:35:50 T:140614049974016   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer



RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-15

@newan: Nah it should be '-o CARD=PCH,DEV=0' I am pretty sure. or more likely '-o hdmi:CARD=PCH,DEV=0'

If you use the output chooser it will work out the right string for you, no need to do it manually.

One thing I note - default port is 9000 isn't it? You're using 9001? You might need to modify the connection bit manually - Attempting to start player: ['/storage/.kodi/addons/script.xsqueeze/resources/bin/linux/squeezelite-i64', '-m', '00:00:00:00:00:01', '-o', 'hdmi', '-s', '192.168.178.5'] - as that's not specifying a port.

Can you put the port in manually - (this might be a bug with server discovery non standard ports, not sure I have used that) - ['/storage/.kodi/addons/script.xsqueeze/resources/bin/linux/squeezelite-i64', '-m', '00:00:00:00:00:01', '-o', 'hdmi', '-s', '192.168.178.5:9001'] is what it should be I think...


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - newan - 2016-06-15

Sorry for the misstake i used in my first try the output chooser and then the string: '-o hdmi:CARD=PCH,DEV=0'

Log output is the same. Ich will check the port settings this evening (germany).

On the command line with stopped kodi and the paramters from the log file all run fine :-( (slave & lite)


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-15

One other thing - make sure each MAC you're using is unique and a vali MAC. Using the machine's physical MAC is a good way of doing this.

If still stopped can you post a full log file again please.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - newan - 2016-06-15

o.k i will test it this evening. Is it possible to change all settings via ssh, it es very hard to test all settings with the harmony remote .


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-15

@newan Yep sure - the settings live in your addon settings folder

I'm on windows here at work but basically
wherever your userdata is - \userdata\addon_data\script.xsqueeze\settings.xml is the file you want

Example working one:

Code:
<settings>
    <setting id="MAC" value="12:34:45:ab:cd:ef" />
    <setting id="adjustvol" value="false" />
    <setting id="args" value="" />
    <setting id="autooutputlite" value="-o 5" />
    <setting id="autooutputslave" value="-o5" />
    <setting id="autoserver" value="" />
    <setting id="avrinput" value="3" />
    <setting id="cecsupport" value="false" />
    <setting id="connectpause" value="1" />
    <setting id="enableTouch" value="true" />
    <setting id="exitpause" value="2" />
    <setting id="liteargs" value="" />
    <setting id="playback" value="true" />
    <setting id="player" value="Squeezelite" />
    <setting id="sendPlayOnStart" value="true" />
    <setting id="serverHTTPPort" value="9000" />
    <setting id="serverIP" value="192.168.16.51" />
    <setting id="serverPass" value="" />
    <setting id="serverPort" value="9090" />
    <setting id="serverUser" value="" />
    <setting id="slaveargs" value="" />
    <setting id="startuppause" value="0" />
    <setting id="turnonavr" value="false" />
    <setting id="volfactor" value="2" />
    <setting id="waitOnAS" value="10" />
</settings>



RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-15

Note two ports are important - the http port and the CLI port....

That's off a win machine as I said, I can post a NUC one but have to get that when at home...


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - newan - 2016-06-15

i switch my lms server to the default port 9000. set mac adress to my hardware adress:
/storage/.kodi/addons/script.xsqueeze/resources/bin/linux/squeezelite-i64 -m c0:3f:d5:65:04:9d -o hdmi:CARD=PCH,DEV=0 -s 192.168.178.5
from the cLI works like a charm.

I think I've found my problem.
When I start the player from the cli, it takes a long time (> 1 minute) until it is see in the LMS Webinterface. It also takes so long time until it disappears.

Now i create a player from the cli and then end once if it is visible. I the same time i can start xsqueeze, because the player is then available in the web interface. Unfortunately, no sound then but at least the Gui.

Can I install a longer delay, or do I have the server look?

http://pastebin.com/zKetMTt9

Edit: It runs with passthrough = off, but then Kodi is crap


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-16

@newan - Whis is Kodi crap with passthrough off? Kodi decoded PCM whould be indetical to amp decoded PCM and indeed sync is potentially better. I have up using passthrough a while back as apart from a shiny blue light on my receiver it only seemed to be, if anything, worse.

But that's kinda convincing proof that Kodi is blocking your audio device for some reason - so I still thinkl you've missed an audio setting (set gui sounds to none in the skin setting, set play gui sounds to never in the audio setting, and set keep audio device alive to never in there as well).

But taking a minute to register a player is bizarre (on exit them hanging around is not unusual but the initial connection should be almost immediate) - and I'd look to an issue with your LMS - it should be nearly instant. That said, there's a bunch of configureable delays in the troubleshooting section of setting so you should be able to delay it as long as you want I think.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - newan - 2016-06-16

I give up. LMS Server reinstalled on Ubuntu 16.04. Libreelec reinstalled. Skin audio off. Gui audio off, Audio alive never. Same on Passthrough or not.

Every Time: Player is None!

I waid for new release libreelec, lms or Xsqueeze etc..


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-17

I can understand that, must be fruistrating, but it's very odd/wierd since I have near identical hardware set up and working perfectly. To be honest XSqueeze has been tested on so many things by now, as long as there is an available audio device & LMS can be reached, it just tends to work.

Just BTW - there won't be any new release to XSqueeze most likely since I don't really use it in practise - I wrote it as a learning exercise and whatnot, but I use actual squeezeboxes for the msot part still, until something better finally comes along (Nativ looks promising although very expensive!).

I suppose I will do a skin file for estuary though, if I have time.

Anyway - sorry I couldn't help further. BTW trimming log files is a big no no - cuts off a lot of potentially useful stuff.


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - newan - 2016-06-17

You know the new option from squeezelite "-C", so you can run squeezelite in Background?


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - bossanova808 - 2016-06-18

I was not really aware of it (thought squeezelite had basically stopped development?) - but not sure how it impacts xsqueeze really? As in, if you want to run a squeeze app in the background permanently, that's kind of a different thing no?


RE: [RELEASE]XSqueeze - Squeezebox player, music chooser and visualiser for XBMC - newan - 2016-06-20

i have fixed it with an additional sleep in the default.py

is it possible with python to check if it pvr is run and stop it on xsqueeze start?