Hi all,
I've been trying to use squeezelite in combination with LMS on my server, but without success. As far I can see I everything runs fine, except that I do not get any sound.
Below you can find the things I did. Please tell me where I go wrong.
This works for me:
I've been trying to use squeezelite in combination with LMS on my server, but without success. As far I can see I everything runs fine, except that I do not get any sound.
Below you can find the things I did. Please tell me where I go wrong.
Code:
$ squeezelite -l
Output devices:
null - Discard all samples (playback) or generate zero samples (capture)
pulse - PulseAudio Sound Server
hdmi:CARD=HDMI,DEV=0 - HDA ATI HDMI, HDMI 0 - HDMI Audio Output
default:CARD=Generic - HD-Audio Generic, ALC1150 Analog - Default Audio Device
sysdefault:CARD=Generic - HD-Audio Generic, ALC1150 Analog - Default Audio Device
front:CARD=Generic,DEV=0 - HD-Audio Generic, ALC1150 Analog - Front speakers
surround40:CARD=Generic,DEV=0 - HD-Audio Generic, ALC1150 Analog - 4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0 - HD-Audio Generic, ALC1150 Analog - 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0 - HD-Audio Generic, ALC1150 Analog - 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0 - HD-Audio Generic, ALC1150 Analog - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0 - HD-Audio Generic, ALC1150 Analog - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0 - HD-Audio Generic, ALC1150 Digital - IEC958 (S/PDIF) Digital Audio Output
This works for me:
Code:
cat /dev/urandom | aplay -D sysdefault:CARD=Generic -f S32_LE -c 2 -r 44100
Code:
squeezelite -n Arch64NAS -d all=debug -o sysdefault:CARD=Generic -r 44100 -a :::0 -f /tmp/squeezelite_44100_mmap0.log
Code:
$ cat /tmp/squeezelite_44100_mmap0.log
[22:36:58.037413] stream_init:290 init stream
[22:36:58.037605] stream_init:291 streambuf size: 2097152
[22:36:58.039414] output_init_alsa:636 init output
[22:36:58.039458] output_init_alsa:658 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 0
[22:36:58.039477] output_init_common:334 outputbuf size: 3528000
[22:36:58.039527] output_init_common:394 supported rates: 44100 32000 24000 22500 16000 12000 11025 8000
[22:36:58.042453] output_init_alsa:670 memory locked
[22:36:58.042601] output_init_alsa:693 set output sched fifo rt: 45
[22:36:58.042614] decode_init:129 init decode
[22:36:58.043360] load_faad:610 loaded libfaad.so.2
[22:36:58.043609] load_vorbis:295 loaded libvorbisfile.so.3
[22:36:58.043791] load_flac:258 loaded libFLAC.so.8
[22:36:58.043798] register_pcm:382 using pcm
[22:36:58.043905] load_mad:383 loaded libmad.so.0
[22:36:58.044015] discover_server:699 sending discovery
[22:36:58.044239] discover_server:710 got response from: 192.168.178.5:3483
[22:36:58.044263] slimproto:787 connecting to 192.168.178.5:3483
[22:36:58.044644] slimproto:820 connected
[22:36:58.044668] slimproto:831 local player
[22:36:58.044675] sendHELO:117 mac: bc:5f:f4:f9:9f:b8
[22:36:58.044681] sendHELO:119 cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=1,HasDigitalOut=1,MaxSampleRate=44100,aac,ogg,flc,aif,pcm,mp3,loc
[22:36:58.047885] output_thread:465 open output device: sysdefault:CARD=Generic
[22:36:58.049332] alsa_open:234 opened device sysdefault:CARD=Generic using format: S32_LE sample rate: 44100 mmap: 0
[22:36:58.049425] alsa_open:313 buffer: 40 period: 4 -> buffer size: 3763 period size: 940
[22:36:58.049726] process:469 strm
[22:36:58.049783] process_strm:232 strm command q
[22:36:58.049791] decode_flush:188 decode flush
[22:36:58.049798] output_flush:407 flush output buffer
[22:36:58.050195] sendSTAT:164 STAT: STMf
[22:36:58.050270] process:469 strm
[22:36:58.050279] process_strm:232 strm command q
[22:36:58.050285] decode_flush:188 decode flush
[22:36:58.050291] output_flush:407 flush output buffer
[22:36:58.050297] sendSTAT:164 STAT: STMf
[22:36:58.050309] process:469 setd
[22:36:58.050356] sendSETDName:223 set playername: Arch64NAS
[22:36:58.050368] process:469 setd
[22:36:58.050378] process:469 aude
[22:36:58.050384] process_aude:368 enable spdif: 0 dac: 0
[22:36:58.050432] process:469 audg
[22:36:58.050440] process_audg:385 audg gainL: 41728 gainR: 41728 adjust: 1
[22:36:58.091526] output_thread:568 disabling output
[22:37:00.001365] process:469 strm
[22:37:00.001413] process_strm:232 strm command t
[22:37:00.001428] sendSTAT:164 STAT: STMt
[22:37:01.679843] process:469 aude
[22:37:01.679891] process_aude:368 enable spdif: 1 dac: 1
[22:37:01.694547] output_thread:465 open output device: sysdefault:CARD=Generic
[22:37:01.696565] alsa_open:234 opened device sysdefault:CARD=Generic using format: S32_LE sample rate: 44100 mmap: 0
[22:37:01.696692] alsa_open:313 buffer: 40 period: 4 -> buffer size: 3763 period size: 940
[22:37:03.362777] process:469 strm
[22:37:03.362826] process_strm:232 strm command q
[22:37:03.362841] decode_flush:188 decode flush
[22:37:03.362853] output_flush:407 flush output buffer
[22:37:03.362866] sendSTAT:164 STAT: STMf
[22:37:03.374097] process:469 audg
[22:37:03.374144] process_audg:385 audg gainL: 41728 gainR: 41728 adjust: 1
[22:37:03.374928] process:469 strm
[22:37:03.374960] process_strm:232 strm command s
[22:37:03.374974] process_strm:299 strm s autostart: 1 transition period: 10 transition type: 0 codec: m
[22:37:03.374988] sendSTAT:164 STAT: STMf
[22:37:03.375013] codec_open:211 codec open: 'm'
[22:37:03.375052] stream_sock:383 connecting to 192.168.178.5:9000
[22:37:03.375136] stream_sock:412 header: GET /stream.mp3?player=bc:5f:f4:f9:9f:b8 HTTP/1.0
[22:37:03.375153] sendSTAT:164 STAT: STMc
[22:37:03.375177] process_strm:330 set fade mode: 0
[22:37:03.375199] process:469 audg
[22:37:03.375211] process_audg:385 audg gainL: 41728 gainR: 41728 adjust: 1
[22:37:03.448262] stream_thread:176 headers: len: 116
HTTP/1.1 200 OK
Server: Logitech Media Server (7.7.3 - 1375965195)
Connection: close
Content-Type: audio/mpeg
[22:37:03.450032] stream_thread:249 end of stream
[22:37:03.450125] sendDSCO:183 DSCO: 0
[22:37:03.450445] process:469 strm
[22:37:03.450468] process_strm:232 strm command u
[22:37:03.450483] process_strm:286 unpause at: 0 now: 37561679
[22:37:03.450497] sendSTAT:164 STAT: STMr
[22:37:03.457192] mad_decode:203 end of stream
[22:37:03.457272] decode_thread:99 decode complete
[22:37:03.457313] sendSTAT:164 STAT: STMd
[22:37:03.457344] sendSTAT:164 STAT: STMu
[22:37:03.494129] process:469 strm
[22:37:03.494165] process_strm:232 strm command s
[22:37:03.494172] process_strm:299 strm s autostart: 1 transition period: 10 transition type: 0 codec: m
[22:37:03.494180] sendSTAT:164 STAT: STMf
[22:37:03.494198] codec_open:211 codec open: 'm'
[22:37:03.494222] stream_sock:383 connecting to 192.168.178.5:9000
[22:37:03.494270] stream_sock:412 header: GET /stream.mp3?player=bc:5f:f4:f9:9f:b8 HTTP/1.0
[22:37:03.494278] sendSTAT:164 STAT: STMc
[22:37:03.494289] process_strm:330 set fade mode: 0
[22:37:03.494302] process:469 audg
[22:37:03.494308] process_audg:385 audg gainL: 41728 gainR: 41728 adjust: 1
[22:37:03.621079] stream_thread:176 headers: len: 116
HTTP/1.1 200 OK
Server: Logitech Media Server (7.7.3 - 1375965195)
Connection: close
Content-Type: audio/mpeg
[22:37:03.621131] stream_thread:249 end of stream
[22:37:03.621164] sendDSCO:183 DSCO: 0
[22:37:03.621183] sendSTAT:164 STAT: STMu
[22:37:03.621423] process:469 strm
[22:37:03.621444] process_strm:232 strm command u
[22:37:03.621452] process_strm:286 unpause at: 0 now: 37561850
[22:37:03.621459] sendSTAT:164 STAT: STMr
[22:37:03.657504] mad_decode:203 end of stream
[22:37:03.657555] decode_thread:99 decode complete
[22:37:03.657596] sendSTAT:164 STAT: STMd
[22:37:04.000655] process:469 strm
[22:37:04.000702] process_strm:232 strm command t
[22:37:04.000718] sendSTAT:164 STAT: STMt
[22:37:08.000730] process:469 strm
[22:37:08.000765] process_strm:232 strm command t
[22:37:08.000773] sendSTAT:164 STAT: STMt
[22:37:12.004308] process:469 strm
[22:37:12.004372] process_strm:232 strm command t
[22:37:12.004389] sendSTAT:164 STAT: STMt
[22:37:13.370483] process:469 strm
[22:37:13.370532] process_strm:232 strm command q
[22:37:13.370546] decode_flush:188 decode flush
[22:37:13.370559] output_flush:407 flush output buffer
[22:37:13.370573] sendSTAT:164 STAT: STMf
[22:37:13.372403] process:469 aude
[22:37:13.372448] process_aude:368 enable spdif: 0 dac: 0
[22:37:13.386088] output_thread:568 disabling output
[22:37:16.253794] slimproto_stop:858 slimproto stop
[22:37:16.354048] decode_close:173 close decode
[22:37:16.374253] stream_close:322 close stream
[22:37:16.438579] output_close_alsa:698 close output