Hello everyone,
I'm setting up the PI as multimedia client. I want to use LMS as my music server and have the Pi as a client connected to my X3600H Denon via HDMI. I followed instructions from Libre888 in another topic ([RPi4] Multimedia Tools: How to configure Squeezelite?).
After adding the server address (-s 192.168.1.xx WITHOUT port number), i finally was able to see Kodi-Squeezelite Player in LMS. "Playing" songs is also possible but the problem is, there is no sound coming out of my speakers. Other LMS player works fine.
So I guess the problem is related to the soundcard parameters.
ssh session:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
In KODI, audio output device:
- ALSA: Default Audio Device ()
- ALSA: vc4-hdmi-1 (), MAI PCM i2s-hifi-0
- ALSA: vc4-hdmi-1 (vc4hdmi1), MAI PCM i2s-hifi-0
- ALSA: vc4-hdmi-1 (vc4hdmi1), DON DENON-AVR on HDMI
- PULSE: Default, Bluetooth Audio (PULSEAUDIO)
Before, i also tried with the built-in MediaTools addon, which also didnt work. But at least it provided me a bit more infos on the soundcard:
/storage/.kodi/addons/virtual.multimedia-tools/bin/squeezelite -d all=debug -l
Output devices:
null - Discard all samples (playback) or generate zero samples (capture)
default - Default Audio Device
sysdefault - Default Audio Device
default:CARD=vc4hdmi0 - vc4-hdmi-0, MAI PCM i2s-hifi-0 - Default Audio Device
sysdefault:CARD=vc4hdmi0 - vc4-hdmi-0, MAI PCM i2s-hifi-0 - Default Audio Device
hdmi:CARD=vc4hdmi0,DEV=0 - vc4-hdmi-0, MAI PCM i2s-hifi-0 - HDMI Audio Output
default:CARD=vc4hdmi1 - vc4-hdmi-1, MAI PCM i2s-hifi-0 - Default Audio Device
sysdefault:CARD=vc4hdmi1 - vc4-hdmi-1, MAI PCM i2s-hifi-0 - Default Audio Device
hdmi:CARD=vc4hdmi1,DEV=0 - vc4-hdmi-1, MAI PCM i2s-hifi-0 - HDMI Audio Output
I tried all those output devices, none worked.
Here is a log of squeezelite:
/storage/squeezelite -o default:CARD=vc4hdmi1 -s 192.168.1.xx -a 65536:4::1:1 -b 2048:3445 -r 44100,48000,88200,96000,176400,192000,352800 -R vE:1A:1:32:95.4:104.6:46 -n 'Kodi-Squeezelite' -C 600 -d all=info
[00:08:08.037576] stream_init:758 init stream
[00:08:08.055202] output_init_alsa:936 init output
[00:08:08.055367] output_init_alsa:975 requested alsa_buffer: 65536 alsa_period: 4 format: any mmap: 1
[00:08:08.055595] output_init_common:426 supported rates: 352800 192000 176400 96000 88200 48000 44100
[00:08:08.067923] output_init_alsa:1002 memory locked
[00:08:08.068082] output_init_alsa:1008 glibc detected using mallopt
[00:08:08.068689] decode_init:153 init decode
[00:08:08.068795] register_dsd:908 using dsd to decode dsf,dff
[00:08:08.068822] register_alac:549 using alac to decode alc
[00:08:08.068847] register_faad:663 using faad to decode aac
[00:08:08.068886] register_vorbis:378 using vorbis to decode ogg
[00:08:08.068910] register_opus:324 using opus to decode ops
[00:08:08.068927] register_flac:389 using flac to decode ogf,flc
[00:08:08.068946] register_pcm:483 using pcm to decode aif,pcm
[00:08:08.068979] register_mad:423 using mad to decode mp3
[00:08:08.069419] resample_init:360 resampling sync recipe: 0x06, flags: 0x1a, scale: 0.89, precision: 32.0, passband_end: 0.95400, stopband_begin: 1.04600, phase_response: 46.0
[00:08:08.069532] slimproto:903 connecting to 192.168.1.xx:yyyy
[00:08:08.091330] slimproto:942 connected
[00:08:08.091432] sendHELO:148 mac: 1a:1a:1a:1a:1a:1a
[00:08:08.091458] sendHELO:150 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=2.0.0-1541,ModelName=SqueezeLite,MaxSampleRate=352800,dsf,dff,alc,aac,ogg,ops,ogf,flc,aif,pcm,mp3
[00:08:08.097303] decode_flush:244 decode flush
[00:08:08.097367] output_flush:439 flush output buffer (full)
[00:08:08.098139] decode_flush:244 decode flush
[00:08:08.098197] output_flush:439 flush output buffer (full)
[00:08:24.498133] decode_flush:244 decode flush
[00:08:24.498269] output_flush:439 flush output buffer (full)
[00:08:25.225440] codec_open:278 codec open: 'm'
[00:08:25.225942] connect_socket:237 connecting to 192.168.1.xx:9000
[00:08:25.228236] stream_sock:923 header: GET /stream.mp3?player=1a:1a:1a:1a:1a:1a HTTP/1.0
[00:08:25.277504] stream_thread:630 headers: len: 480
HTTP/1.1 200 OK
Server: Lyrion Music Server (9.0.3 - 1759466965)
Connection: close
Content-Type: audio/mpeg
Set-Cookie: Squeezebox-albumView=; path=/
Set-Cookie: Squeezebox-expandPlayerControl=; path=/
Set-Cookie: Squeezebox-expanded-MY_MUSIC=; path=/
Set-Cookie: Squeezebox-expanded-FAVORITES=; path=/
Set-Cookie: Squeezebox-expanded-PLUGINS=; path=/
Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=; path=/
Set-Cookie: Squeezebox-expanded-RADIO=; path=/
[00:08:25.383258] mad_decode:247 setting track_start
[00:08:25.383422] resample_newstream:232 disable resampling - rates match
[00:08:25.383493] process_newstream:124 processing: inactive
[00:08:25.383509] output_thread:685 open output device: default:CARD=vc4hdmi1
[00:08:25.383615] alsa_open:354 opening device at: 44100
[00:08:25.387561] alsa_open:425 opened device default:CARD=vc4hdmi1 using format: S32_LE sample rate: 44100 mmap: 1
[00:08:25.389228] alsa_open:516 buffer: 65536 period: 4 -> buffer size: 65536 period size: 16384
[00:08:25.392280] alsa_open:354 opening device at: 44100
[00:08:25.396075] alsa_open:425 opened device default:CARD=vc4hdmi1 using format: S32_LE sample rate: 44100 mmap: 1
[00:08:25.397735] alsa_open:516 buffer: 65536 period: 4 -> buffer size: 65536 period size: 16384
[00:08:25.786138] _output_frames:65 start buffer frames: 418799
[00:08:25.786232] _output_frames:153 track start sample rate: 44100 replay_gain: 0
[00:08:45.875633] stream_thread:704 end of stream (2577553 bytes)
Please help me get some groovy music from my lovely speakers![]()