GithubHelp home page GithubHelp logo

pssc / ha-addon-squeezelite Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 215 KB

Squeezelite Player Addon for Home Assistant, for use with a Logitech Media Server

License: GNU General Public License v3.0

Dockerfile 100.00%
home-assistant logitech-media-server squeezelite

ha-addon-squeezelite's People

Contributors

pssc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

seancmalloy

ha-addon-squeezelite's Issues

Squeezelite integration issue on Intel NUC.

Squeezelite add-on gives a problem on Intel NUC box (NUC5i3RYK).

The problem:

  • Almost all songs skip short pieces of the music so it sounds terrible. This happens with all type of files, incl. FLAC en MP3 but especially with OGG Vobis. No matter if the native OGG decoder is used or if recoded to Flac.

  • If one or more Picoreplayers are added with synchronization, all the players give the same problem and there is a big synchronization difference between the Picoreplayers and the NUC. De NUC lags about 3 sec behind the Picoreplayers.

  • If the Squeezelite player from the NUC is disabled, all the Picoreplayers work fine, not skipping in the songs and the synchonisation is perfect.

  • The same issue persist if I use a USB external sound card on the NUC.

  • The CPU load is only about 4%, the memory usage about 19%

  • On a different NUC (DN2820FYKH) I have exacly the same problems;

Home Assistant on Intel NUC:
:* Core2024.2.1

  • Supervisor2024.01.1
  • Operating System11.5
  • Frontend20240207.1

Logitech Media Server Versie: 8.3.1
LMS Add-on: 8.3.1.60
Squeezelite Add-on: 0.0.17

piCorePlayer:
v6.1.0 | linux 4.19.122-pcpCore | piCore v10.3pCP | Squeezelite v1.9.9-1386-pCP

Is there any way I can tune the Squeezelite add-on in the hope I can resolve this issue?

Login attempt or request with invalid authentication

Just moved from TrueNAS Home Assistant Core to Supervised Home Assistant with the Addon store. Tried installing LMS via Home Assistant and it worked the first time while I set up Spotty and Material skin. But now I can't get it to work at all. Every restart throws up the same error - even tried reinstalling from fresh and still nothing!

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:125
Integration: HTTP (documentation, issues)
First occurred: 13:04:10 (4 occurrences)
Last logged: 13:16:30
Login attempt or request with invalid authentication from [ipv6 home assistant/lms IP]

I assume I've just done something silly, but can't figure out what!

Error starting up addon

This add stopped working. After deleting the add on and re adding. I get the following message over and over again.
Start Logitech Media Server...
[23-04-28 10:50:29.3775] main::init (377) Starting Logitech Media Server (v8.3.0, 1667251155, Fri 04 Nov 2022 09:14:25 AM CET) perl 5.032001 - x86_64-linux-gnu-thread-multi
[23-04-28 10:50:29.3836] Slim::Utils::PluginManager::init (74) Failed to load plugin downloader: Can't locate Slim/Utils/PluginDownloader.pm: /config/lms/cache/InstalledPlugins/Slim/Utils/PluginDownloader.pm: Permission denied at /usr/share/perl5/Slim/Utils/PluginManager.pm line 69.
[23-04-28 10:50:29.3964] Slim::Utils::PluginManager::_parseInstallManifest (675) Warning: Unable to parse XML in file [/usr/share/perl5/Slim/Plugin/InfoBrowser/install.xml]: [Can't use string ("1") as an ARRAY ref while "strict refs" in use at /usr/share/squeezeboxserver/CPAN/XML/Simple.pm line 231.
]

How to play HiRes DSF files on a HiRes USB DAC with SqueezeBox and Squeezelite installed?

I have a HiRes USB DAC connected to an Intel NUC with SqueezeBox and Squeezelite installed. All works fine. The DAC is capable to play at 384K sample rate and 32Bit wide. However, when I play HiRes files (DSF), the output om my DAC is limited to 44.1K.

Is there a way to increase the sample rate and bit size when I play HiRes files through LMS and Squeezelite?

Title appears in quotes

Hi Phill,

Thanks for this add-on!
I just installed it, and hope to make great use of it in my workshop.
One thing I notice. In the configuration I set the Name to Workshop. (Without any quotes)
In my squeezer app on my phone the player showed up immediately, but as 'Workshop' (with the single quotes)

Can you take a look at this?

Regards,

Bert

Continuous error messages

Installed the addon to be able to use e.g. the Built-in Audio as a media player in MASS.
At startup, everything looks fairly normal initially, but then it immediately starts spawning error messages every 5 secs :

Output devices:
alsa_output.usb-0a12_Avantree_DG60_ABCDEF0123456789-00.analog-stereo Avantree DG60 Analog Stereo
alsa_output.pci-0000_00_1f.3.analog-stereo Built-in Audio Analog Stereo
[12:26:03] INFO: nice -n -10 squeezelite -M SqueezeLite-HA-Addon -N /data/name -m 8b:76:1e:d5:c8:99 -d all=warn
[12:26:03.895016] process:535 unhandled vers
[12:26:03.896030] process:535 unhandled grfb
[12:26:03.906674] process:535 unhandled grfe
[12:26:03.906702] process:535 unhandled grfe
[12:26:08.919099] process:535 unhandled grfe
[12:26:13.933178] process:535 unhandled grfe

Resampling

Resampling and other features (related to SOX library?) don't work:

INFO: nice -n -5 squeezelite -M SqueezeLite-HA-Addon -N /data/name -m d3:dc:e6:86:af:01 -d all=info -r 384000 -u hMX Option error: -u

Please add full functionality described in the squeezelite documentation.

run multiple copies

Is it possible to add the ability to run multiple copies of the player?
It would be convenient to organize a multiroom with LMS.
I had a crash and installed two repositories and, accordingly, 2 players
I connected 2 usb sound cards and they worked each with their own player.
I tried to add another one, but HA does not give, writes that it is already installed.

Player name always adds a " ' " at start / end of player name

Using ha-addon-squeezelite for some time.
Works good, but the player name you put in the config always gets a " ' " at the start and end of the player name from somewhere.
It has to be added from ha-squeezelite-addon, because it is my only player that gets these characters.
Example:
Should be: Kitchen
It is: 'Kitchen'
I always have to correct that inside LMS, but after a restart of the ha-addon-squeezelite these characters are back again.

Helicopter noise instead of music

Sometimes, randomly, Squeezelite loses the ability to play music. Instead of music it plays some strange "helicopter" noise. The decoder skips frames according to the log:

[23:46:54.206332] stream_init:454 init stream
[23:46:54.208194] output_init_alsa:933 init output
[23:46:54.208255] output_init_alsa:973 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 1
[23:46:54.220820] output_init_common:432 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000 
[23:46:54.220987] output_init_alsa:997 unable to lock memory: Cannot allocate memory
[23:46:54.221143] output_init_alsa:1005 glibc detected using mallopt
[23:46:54.223658] decode_init:153 init decode
[23:46:54.223658] output_thread:682 open output device: default
[23:46:54.223779] register_dsd:908 using dsd to decode dsf,dff
[23:46:54.223818] alsa_open:351 opening device at: 44100
[23:46:54.225942] alsa_open:422 opened device default using format: S32_LE sample rate: 44100 mmap: 0
[23:46:54.226012] alsa_open:513 buffer: 40 period: 4 -> buffer size: 1764 period size: 441
[23:46:55.017393] load_faad:633 loaded libfaad.so.2
[23:46:55.017445] register_faad:663 using faad to decode aac
[23:46:55.025044] load_vorbis:356 loaded libvorbisfile.so.3
[23:46:55.025097] register_vorbis:385 using vorbis to decode ogg
[23:46:55.025147] load_flac:304 loaded libFLAC.so.8
[23:46:55.025153] register_flac:332 using flac to decode ogf,flc
[23:46:55.025159] register_pcm:483 using pcm to decode aif,pcm
[23:46:55.032636] load_mad:394 loaded libmad.so.0
[23:46:55.032684] register_mad:423 using mad to decode mp3
[23:46:55.032856] discover_server:795 sending discovery
[23:46:55.064290] discover_server:806 got response from: 192.168.50.63:3483
[23:46:55.064403] slimproto:898 connecting to 192.168.50.63:3483
[23:46:55.065673] slimproto:937 connected
[23:46:55.065722] sendHELO:148 mac: d0:c8:d9:c4:1b:64
[23:46:55.065733] sendHELO:150 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=v1.9.9-1386,ModelName=SqueezeLite-HA-Addon,MaxSampleRate=384000,dsf,dff,aac,ogg,ogf,flc,aif,pcm,mp3

[23:49:23.447770] decode_flush:236 decode flush
[23:49:23.447820] output_flush:445 flush output buffer
[23:49:26.567683] codec_open:264 codec open: 'm'
[23:49:26.567819] connect_socket:164 connecting to 192.168.50.63:9000
[23:49:26.570450] stream_sock:600 header: GET /stream.mp3?player=d0:c8:d9:c4:1b:64 HTTP/1.0

[23:49:26.640158] stream_thread:331 headers: len: 491
HTTP/1.1 200 OK
Server: Logitech Media Server (8.2.0 - 1627922070)
Connection: close
Content-Type: audio/mpeg
Set-Cookie: Squeezebox-albumView=; path=/
Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
Set-Cookie: Squeezebox-expanded-MY_MUSIC=0; path=/
Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/
Set-Cookie: Squeezebox-expanded-RADIO=0; path=/

[23:49:26.686368] mad_decode:247 setting track_start
[23:49:26.686416] _checkfade:294 fade mode: 2 duration: 0 track-start
[23:49:26.686424] _checkfade:304 fade IN: 0 frames
[23:49:26.866154] _output_frames:153 track start sample rate: 44100 replay_gain: 0
[23:49:26.876382] _output_frames:181 fade start reached
[23:49:26.876432] _output_frames:214 fade complete
[23:49:28.767843] _output_frames:73 skip 26945 of 26945 frames
[23:49:30.776225] _output_frames:73 skip 79468 of 79468 frames
[23:49:33.011716] _output_frames:73 skip 94241 of 94241 frames
[23:49:35.029718] _output_frames:73 skip 76513 of 76513 frames
[23:49:37.050504] _output_frames:73 skip 88641 of 88641 frames
[23:49:39.071898] _output_frames:73 skip 72015 of 72015 frames
[23:49:41.072472] _output_frames:73 skip 80570 of 80570 frames
[23:49:43.052227] _output_frames:73 skip 79027 of 79027 frames

The only thing that fixes it is complete reboot of the device. Restarting the service does not help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.