Kodi Community Forum

Full Version: Squeezebox for Kodi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Code:
Hi,
first of all a big thank-you for this great addon - As a Squeezebox user and Kodi User I have always been looking for such an addon.
I have been successful installing it on a raspberry Pi with OSMC (Rasbmc successor), however I encountered following issues:
  • Squeezelite starts-up only after having modified the commandline in the source code, already mentioned by another user to remove the -C 1 parameter. Also I had to change the -a from -80 to -160, to prevent stuttering (recommended setting for Bossanova's plugin)
  • A more difficult issue: The plugin does not recognize the start of PVR TV Channels with AC-3 sound which is directly passed through to my Receiver via HDMI, consequently the TV channels do not play (no output path for audio...). The plugin recognizes the start of TV channels with MPEG-2 Sound and stops (Entry in Kodi log: NOTICE: plugin.audio.squeezebox --> Kodi started playing video - disabled the LMS player) thus these channels play fine. Using a PVR-Client which can switch seamlessly to AC-3 Channels allows to see these channels also subsequently (however IPTV is too slow thus this trick works not). Disabling AC-3 Passthrough also works to view AC-3 TV channels, however on my setup the sound does not work when not passed-through.
    Thus in summary a problem of detecting AC-3 TV Channels and disabling the player (for both IPTV and TVHeadend clients)
My logfile (Unsuccessful attempt to play TV-Channel with AC-3 approximately at timestamp 14:03:33, while successful start of an MPEG-2 Channel at 14:04:46:
logfile
Cheers,
Frank
(2018-01-03, 16:04)Pommmes Wrote: [ -> ]Hi Junkmarsh,
 i am using Ipeng on iPad and iPhone, maybe you want to take a look at that app if you don't like the browse features of the Squeeze add-on

Thanks. I have several android browsers available, but the benefit of this addon is integration with Kodi. My post is not so much about whether I like the browsing scheme of the addon or not, but to find out if what I am experiencing is 'correct' - it doesn't feel right to me, but it might be how the addon is designed. So if someone can answer my questions to confirm one way or another, that would be appreciated.

junkmarsh
It appears the - C option is pretty important to prevent squeezelite hogging the audio playback device, see this thread it provides some clues. 
https://forum.kodi.tv/showthread.php?tid=225971
(2018-01-03, 16:07)frankd Wrote: [ -> ]
Code:
Hi,
first of all a big thank-you for this great addon - As a Squeezebox user and Kodi User I have always been looking for such an addon.
I have been successful installing it on a raspberry Pi with OSMC (Rasbmc successor), however I encountered following issues:
  • Squeezelite starts-up only after having modified the commandline in the source code, already mentioned by another user to remove the -C 1 parameter. Also I had to change the -a from -80 to -160, to prevent stuttering (recommended setting for Bossanova's plugin)
  • A more difficult issue: The plugin does not recognize the start of PVR TV Channels with AC-3 sound which is directly passed through to my Receiver via HDMI, consequently the TV channels do not play (no output path for audio...). The plugin recognizes the start of TV channels with MPEG-2 Sound and stops (Entry in Kodi log: NOTICE: plugin.audio.squeezebox --> Kodi started playing video - disabled the LMS player) thus these channels play fine. Using a PVR-Client which can switch seamlessly to AC-3 Channels allows to see these channels also subsequently (however IPTV is too slow thus this trick works not). Disabling AC-3 Passthrough also works to view AC-3 TV channels, however on my setup the sound does not work when not passed-through.
    Thus in summary a problem of detecting AC-3 TV Channels and disabling the player (for both IPTV and TVHeadend clients)
My logfile (Unsuccessful attempt to play TV-Channel with AC-3 approximately at timestamp 14:03:33, while successful start of an MPEG-2 Channel at 14:04:46:
logfile
Cheers,
Frank 
 Seems like I could solve some of the arm-architecture related problems.
Using a newer version of the Squeezelite-arm binary (can be downloaded at https://sourceforge.net/projects/lmsclie...ite/linux/) and overwriting the original version of the plugin allows to use the C -1 Parameter, which solved all the issues I had with the sound-card being blocked. Maybe such a newer version could be packaged by default (I was not able to use a separate version in another directory due to permission issues, which I couldn't assign to a logic reason).
Additional wishes:
  • including tracknumbers when tracks of an album are listed (otherwise tracks are shown in the order of the alphabet instead of original order).
  • when browsing music by genre, all tracks are immediately listed, which can take quite some time. Maybe listing first artists (like in the standard LMS webinterface) or albums might be possible?
Thanks again for the great plugin!
Hi

Is no one able to answer my questions about expected behaviour? - can anyone confirm...

1. That they can see songs in track number order when browsing an album
2. That they can browse a list of artists when browsing a genre
3. That they can browse a list of albums when selecting a composer
4. That they can see files when browsing by music folder
(all of these are the default behaviour in my LMS web interface).

thanks

junkmarsh
(2018-01-03, 15:43)junkmarsh Wrote: [ -> ]1. That they can see songs in track number order when browsing an album
2. That they can browse a list of artists when browsing a genre
3. That they can browse a list of albums when selecting a composer
4. That they can see files when browsing by music folder
(all of these are the default behaviour in my LMS web interface).

thanks

junkmarsh
Hi Junkmarsh,
using a confluence skin modded by myself:
1: Same for me, no tracknumbers visible thus tracks are sorted alphanumerically
2: Same issue for me, a big list of songs appears immediately
3: I don't have composers in my tags, thus I do not know
4: Same issue for me
Thus these seem not to be specific issues for you...
Kind regards,
Frank
Thanks for taking the time to reply. Oh well, seems that the addon won't work for my needs, then, but at least I can stop wasting time trying to 'fix' the issue.

junkmarsh
Hello and thanks for making this addon, I am really excited about getting it working. Unfortunately I am not there yet. I have two Kodi clients at home, one is LibreElec running off a RPi 3 and the other is a standard Kodi install on an Ubuntu 16.04 Intel PC. I have installed the addon on both Kodi clients and my LMS (running off an Ubuntu 16.04 server) detects both of them. However, I can't play mp3's from my network server on the Kodi clients. I have also tried syncing the Kodi clients and start music playback from the LMS, but it doesn't play.

I was looking for a way to attach a log zip file, but couldn't find it, so I post the latter part of the log here:

[18-01-15 20:32:59.4487] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
2018-01-15 20:33:06 squeezeboxserver_safe stopped.
2018-01-15 20:33:06 squeezeboxserver_safe started.
[18-01-15 20:33:08.3648] main::init (388) Starting Logitech Media Server (v7.9.0, 1488878280, Wed Mar 8 14:36:54 UTC 2017) perl 5.022001 - x86_64-linux-gnu-thread-multi
[18-01-15 20:33:08.5399] Slim::Networking::UDP::init (39) FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use)
[18-01-15 20:33:08.5403] Log::Log4perl::Logger::and_die (868) Warning: FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use) at /usr/share/squeezeboxserver/lib/Log/Log4perl/Logger.pm line 900
2018-01-15 20:33:11 Logitech Media Server died. Restarting.
[18-01-15 20:33:13.3654] main::init (388) Starting Logitech Media Server (v7.9.0, 1488878280, Wed Mar 8 14:36:54 UTC 2017) perl 5.022001 - x86_64-linux-gnu-thread-multi
[18-01-15 20:33:16.3733] Slim::Web::JSONRPC::requestMethod (443) b8:27:eb:86:0f:93: request not dispatchable!
[18-01-15 20:33:20.5766] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:33:31.4491] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:33:42.4512] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:33:53.4295] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:34:03.4564] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:34:14.4404] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:34:25.4290] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:34:36.4392] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:34:47.4405] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:34:58.4466] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:35:09.4596] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:35:20.4420] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:35:29.4187] Slim::Web::JSONRPC::requestMethod (443) c0:3f:d5:68:7b:c4: request not dispatchable!
[18-01-15 20:36:26.8130] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/13-1939.mp3]
[18-01-15 20:36:39.8146] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/13-1939.mp3]
[18-01-15 20:37:39.9383] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/01-1939%20-%20Louise%20Hoffsten.mp3]
[18-01-15 20:37:54.8929] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/13-1939.mp3]
[18-01-15 20:37:58.2643] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/12-Cherokee%20-%20Louise%20Hoffsten.mp3]
[18-01-15 20:38:07.0987] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/12-Cherokee%20-%20Louise%20Hoffsten.mp3]
[18-01-15 20:38:56.0638] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/12-Cherokee%20-%20Louise%20Hoffsten.mp3]
[18-01-15 20:40:15.4741] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/02-Hj%C3%A4lten%20i%20mitt%20liv%20-%20Lisa%20Nilsson.mp3]
[18-01-15 20:40:18.1497] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/02-Hj%C3%A4lten%20i%20mitt%20liv%20-%20Lisa%20Nilsson.mp3]
[18-01-15 20:40:18.9943] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/02-Hj%C3%A4lten%20i%20mitt%20liv%20-%20Lisa%20Nilsson.mp3]
[18-01-15 20:40:19.4746] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/02-Hj%C3%A4lten%20i%20mitt%20liv%20-%20Lisa%20Nilsson.mp3]
[18-01-15 20:56:49.9595] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/02-Hj%C3%A4lten%20i%20mitt%20liv%20-%20Lisa%20Nilsson.mp3]
[18-01-15 20:56:51.2559] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/02-Hj%C3%A4lten%20i%20mitt%20liv%20-%20Lisa%20Nilsson.mp3]
[18-01-15 20:57:48.4887] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/12-Cherokee%20-%20Louise%20Hoffsten.mp3]
[18-01-15 20:59:53.9176] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for [file:///md0/music/Min%20musik/Various/1939/03-How%20do%20you%20do,%20Mr%20Swing%20-%20Meta%20Roos.mp3]
(2018-01-07, 14:25)junkmarsh Wrote: [ -> ]1. That they can see songs in track number order when browsing an album
2. That they can browse a list of artists when browsing a genre
3. That they can browse a list of albums when selecting a composer
4. That they can see files when browsing by music folder

In case anyone else is interested in these issues, I have been able to resolve most of them by making minor changes to the python script.

1) To get album tracks appearing in track order rather than alphabetical, you need to add "sort:tracknum" to line 109 of plugin_content.py so that it becomes
request_str = "tracks 0 100000 tags:%s sort:tracknum" % TAGS_BASIC

2) to browse artists rather than albums when selecting a genre, change the word "tracks" to "artists" in line 167 of plugin_content.py, so that it becomes
cmd = "artists&params=genre_id:%s" % item["id"]

4) to see files when browsing the music folder (rather than all folders seeming empty) is a little more complicated. The problem is that there is an error (at least I think it's an error) in the create_track_listitem definition. To correct it, copy line 557 from the create_artist_listitem definition (the one beginning 'thumb =') and paste it as an additional line into the create_track_listitem definition (so it wil become line 640 - make sure the indenting stays correct. I don't really understand Python and it caused me some trouble). Then copy lines 568/569/570 and replace the equivalent lines in the create_track_listitem definition (which, with the additional line, should be 657/658/659).

Showing albums under the composer heading is more related to how Squeezeserver presents the database, so that's more difficult. I'm still working on that.

Hope someone finds this useful.

junkmarsh
(2018-02-24, 23:40)junkmarsh Wrote: [ -> ]
(2018-01-07, 14:25)junkmarsh Wrote: [ -> ]1. That they can see songs in track number order when browsing an album
2. That they can browse a list of artists when browsing a genre
3. That they can browse a list of albums when selecting a composer
4. That they can see files when browsing by music folder

In case anyone else is interested in these issues, I have been able to resolve most of them by making minor changes to the python script.

1) To get album tracks appearing in track order rather than alphabetical, you need to add "sort:tracknum" to 109 of plugin_content.py so that it becomes
request_str = "tracks 0 100000 tags:%s sort:tracknum" % TAGS_BASIC

2) to browse artists rather than albums when selecting a genre, change the word "tracks" to "artists" in line 167 of plugin_content.py, so that it becomes
cmd = "artists&params=genre_id:%s" % item["id"]

4) to see files when browsing the music folder (rather than all folders seeming empty) is a little more complicated. The problem is that there is an error (at least I think it's an error) in the create_track_listitem definition. To correct it, copy line 557 from the create_artist_listitem definition (the one beginning 'thumb =') and paste it as an additional line into the create_track_listitem definition (so it wil become line 640 - make sure the indenting stays correct. I don't really understand Python and it caused me some trouble). Then copy lines 568/569/570 and replace the equivalent lines in the create_track_listitem definition (which, with the additional line, should be 657/658/659).

Showing albums under the composer heading is more related to how Squeezeserver presents the database, so that's more difficult. I'm still working on that.

Hope someone finds this useful.

junkmarsh 
Excellent, 1) and 2) works well for me, I have not tried 4).
Together with the the Artist Slideshow Plugin and with the CU Lyrics Plugin for Kode, the Squeezebox for Kodi plugin allows a nice visualization of what is played with the squeezebox ecosystem
Hello everyone,
I am new to this forum, but long time user of kodi.

I created an LMS server and I installed this plugin for kodi and it's really a beautiful extension that meets my needs
My goal is multiroom and spotify, and my clients basically are under libreelec.

I also test on android kodi with the SB Player application but for now it is not yet satisfactory, it will certainly soon create another question.

I read in the thread that it was question of integrating the sound volume management. Is it still relevant ?

And thank you for this beautiful work  :-)

Ninokdi
OK, I have FINALLY worked out how to display lists of albums for composers as well as artists. Change line 79 of plugin_content.py so that it becomes
request_str = "albums 0 100000 role_id:ALBUMARTIST,COMPOSER tags:%s" % TAGS_ALBUM

It is possible that you might need to add ARTIST, to the list of roles (no spaces, comma separated) if your files don't use the album artist tag.

Phew! It's a really useful plugin now. Thanks again to the original author.

junkmarsh
Hello zimou13

We are an English forum. Please also post a google translation of your text.
Hi all,

first of all thanks for this addon Image

I have just a question....

When i am watching a movie or TV and push the stop button, direkly Squeezebox starts to play. This is also, when i am watching TV and start a movie.
Is this normal or is something wrong in my settings?
If it is normal, is there a possibility to chnage thisHuh

Chears

Marcel
I know Kodi 18 is in alpha but currently I am forced to use this on my raspberry pi3 (libreelec) to get direct Netflix functionality. Is this still under development? I really use this addon a lot and it seems there are quite a few bugs with playback, even with kodi 17.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20