Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 10
  1. #1
    Junior Member
    Join Date
    May 2020
    Posts
    19

    piCorePlayer - LMS - HiFiBerry not streaming

    piCorePlayer version: 6.0.0 with Squeezelite version and license: 1.9.7-1256-pCP and Logitech Media Server Version: 8.0.0. I have 2 Raspberry Pi 4 with HiFiBerry DAC+ADC Pro on both. One has the Amp on it (Cottage), the other is running LMS (Kitchen) with an external Amp. I can play music from my main LMS Music Server on a different computer to the 'Cottage' no problem. However I cannot stream from the LMS in the Kitchen to the Cottage.
    I have tested the cables and all are OK.
    The Squeezelite settings on both are as follows:
    Code:
    Output Settings: hw:CARD=sndrpihifiberry,DEV=0
    Buffer Size Settings: 176400:176400
    On the LMS Server the Tweaks Tab I have the default settings, but the Audio Tweaks is as follows:
    Code:
    Squeezelite Yes 
    Shairport-sync No 
    ALSA 10 band Equalizer No 	
    Streamer for Audio Input Yes Streamer installed. Basic url: http://10.6.77.96:9100/S16_LE/44100/2/F
    Input Device hw:CARD=sndrpihifiberry,DEV=0
    Now in the Kitchen LMS Server Settings I have a favourites set up with the URL as
    Code:
    http://10.6.77.96:9100/S16_LE/44100/2/F
    I have tested another URL from the web which works fine, so why does this not work. Is it to do with the FLAC setting in the URL?
    Help would be appreciated
    Perfect in every way, Modest and Misunderstood!

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,464
    Quote Originally Posted by themetman View Post
    piCorePlayer version: 6.0.0 with Squeezelite version and license: 1.9.7-1256-pCP and Logitech Media Server Version: 8.0.0. I have 2 Raspberry Pi 4 with HiFiBerry DAC+ADC Pro on both. One has the Amp on it (Cottage), the other is running LMS (Kitchen) with an external Amp. I can play music from my main LMS Music Server on a different computer to the 'Cottage' no problem. However I cannot stream from the LMS in the Kitchen to the Cottage.
    I have tested the cables and all are OK.
    The Squeezelite settings on both are as follows:
    Code:
    Output Settings: hw:CARD=sndrpihifiberry,DEV=0
    Buffer Size Settings: 176400:176400
    On the LMS Server the Tweaks Tab I have the default settings, but the Audio Tweaks is as follows:
    Code:
    Squeezelite Yes 
    Shairport-sync No 
    ALSA 10 band Equalizer No 	
    Streamer for Audio Input Yes Streamer installed. Basic url: http://10.6.77.96:9100/S16_LE/44100/2/F
    Input Device hw:CARD=sndrpihifiberry,DEV=0
    Now in the Kitchen LMS Server Settings I have a favourites set up with the URL as
    Code:
    http://10.6.77.96:9100/S16_LE/44100/2/F
    I have tested another URL from the web which works fine, so why does this not work. Is it to do with the FLAC setting in the URL?
    Help would be appreciated
    Are the 2 devices both on the same network i.e. 10.6.77.XX ?
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  3. #3
    Junior Member
    Join Date
    May 2020
    Posts
    19
    Yes they are on the same network
    Perfect in every way, Modest and Misunderstood!

  4. #4
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,937
    pcp-streamer will create log file. Take a look at that in Diagnostics/Logs.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #5
    Junior Member
    Join Date
    May 2020
    Posts
    19
    What I am doing now is to add my Kitchen SqueezboxPlayer as a Favourite to my Main Server running LMS. I can play music fine to the Cottage Player.
    I am using this URL: http://10.6.77.96:9100/S16_LE/44100/2/M which I can see from the Log (Thank you for reminding me about that, Paul!) is what is being sent to the Cottage Player. If I use this URL: http://10.6.77.96:9100/S16_LE/44100/2/F which is the one in the 'Audio Tweaks' I have the same problem
    When I try and play this output to the Cottage Player it only goes for a few seconds then stops. I hear no sound.
    Here is the log output from the Kitchen Player:
    Code:
    /usr/local/bin/squeezelite -n HiFi-kitchen -o hw:CARD=sndrpihifiberry,DEV=0 -a 80:4::1: -b 176400:176400 -d all=debug -f /var/log/pcp_squeezelite.log 
    [00:00:13.124796] stream_init:370 init stream
    [00:00:13.124897] stream_init:371 streambuf size: 180633600
    [00:00:13.363797] output_init_alsa:940 init output
    [00:00:13.363861] output_init_alsa:980 requested alsa_buffer: 80 alsa_period: 4 format: any mmap: 1
    [00:00:13.363888] output_init_common:350 outputbuf size: 180633600
    [00:00:13.363995] output_init_common:374 idle timeout: 0
    [00:00:13.367960] output_init_common:422 supported rates: 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000 
    [00:00:13.743862] output_init_alsa:1006 memory locked
    [00:00:13.743935] output_init_alsa:1012 glibc detected using mallopt
    [00:00:13.746200] output_thread:687 open output device: hw:CARD=sndrpihifiberry,DEV=0
    [00:00:13.746220] output_init_alsa:1032 set output sched fifo rt: 45
    [00:00:13.746252] alsa_open:351 opening device at: 44100
    [00:00:13.748482] alsa_open:422 opened device hw:CARD=sndrpihifiberry,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [00:00:13.748541] alsa_open:513 buffer: 80 period: 4 -> buffer size: 3528 period size: 882
    [00:00:13.767051] decode_init:153 init decode
    [00:00:13.767208] register_dsd:908 using dsd to decode dsf,dff
    [00:00:13.767790] load_ff:641 dlerror: libavcodec.so.57: cannot open shared object file: No such file or directory
    [00:00:13.767895] load_ff:641 dlerror: libavcodec.so.57: cannot open shared object file: No such file or directory
    [00:00:13.768485] load_faad:627 loaded libfaad.so.2
    [00:00:13.768497] register_faad:657 using faad to decode aac
    [00:00:13.769303] load_vorbis:348 loaded libvorbisfile.so.3
    [00:00:13.769316] register_vorbis:377 using vorbis to decode ogg
    [00:00:13.770499] load_opus:292 loaded libopusfile.so.0
    [00:00:13.770511] register_opus:321 using opus to decode ops
    [00:00:13.771098] load_flac:304 loaded libFLAC.so.8
    [00:00:13.771109] register_flac:332 using flac to decode ogf,flc
    [00:00:13.771116] register_pcm:483 using pcm to decode aif,pcm
    [00:00:13.771737] load_mad:388 loaded libmad.so.0
    [00:00:13.771748] register_mad:417 using mad to decode mp3
    [00:00:13.771755] decode_init:194 include codecs:  exclude codecs: 
    [00:00:13.772146] discover_server:788 sending discovery
    [00:00:13.775814] discover_server:799 got response from: 10.6.77.220:3483
    [00:00:13.775866] slimproto:887 connecting to 10.6.77.220:3483
    [00:00:13.782403] slimproto:926 connected
    [00:00:13.782424] sendHELO:142 mac: dc:a6:32:0f:ff:bc
    [00:00:13.782434] sendHELO:144 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.7-1256-pCP,ModelName=SqueezeLite,MaxSampleRate=352800,dsf,dff,aac,ogg,ops,ogf,flc,aif,pcm,mp3
    [00:00:13.787047] process:521 strm
    [00:00:13.787059] process_strm:274 strm command q
    [00:00:13.787066] decode_flush:236 decode flush
    [00:00:13.787073] output_flush:435 flush output buffer
    [00:00:13.787083] sendSTAT:189 STAT: STMf
    [00:00:13.787666] process:521 strm
    [00:00:13.787676] process_strm:274 strm command q
    [00:00:13.787682] decode_flush:236 decode flush
    [00:00:13.787688] output_flush:435 flush output buffer
    [00:00:13.787696] sendSTAT:189 STAT: STMf
    [00:00:13.787721] process:521 setd
    [00:00:13.787730] sendSETDName:248 set playername: HiFi-kitchen
    [00:00:13.787761] process:521 setd
    [00:00:13.789165] process:521 aude
    [00:00:13.789175] process_aude:415 enable spdif: 1 dac: 1
    [00:00:13.789202] process:521 audg
    [00:00:13.789211] process_audg:433 audg gainL: 20992 gainR: 20992 adjust: 1
    [00:00:13.789219] set_volume:233 setting internal gain left: 20992 right: 20992
    [00:00:14.386785] process:521 strm
    [00:00:14.386822] process_strm:274 strm command q
    [00:00:14.386831] decode_flush:236 decode flush
    [00:00:14.386839] output_flush:435 flush output buffer
    [00:00:14.386958] sendSTAT:189 STAT: STMf
    [00:00:14.484465] process:521 audg
    [00:00:14.484506] process_audg:433 audg gainL: 20992 gainR: 20992 adjust: 1
    [00:00:14.484516] set_volume:233 setting internal gain left: 20992 right: 20992
    [00:00:14.495978] process:521 strm
    [00:00:14.496053] process_strm:274 strm command s
    [00:00:14.496103] process_strm:344 strm s autostart: 3 transition period: 10 transition type: 0 codec: f
    [00:00:14.496118] sendSTAT:189 STAT: STMf
    [00:00:14.496155] codec_open:264 codec open: 'f'
    [00:00:14.496205] _tcp_connect:486 connecting to 10.6.77.96:9100
    [00:00:14.496373] stream_sock:577 header: GET /S16_LE/44100/2/F HTTP/1.0
    Cache-Control: no-cache
    Connection: close
    Accept: */*
    Host: 10.6.77.96:9100
    User-Agent: iTunes/4.7.1 (Linux; N; Red Hat; x86_64-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/7.9.3/1588164984
    Icy-Metadata: 1
    
    
    [00:00:14.496387] sendSTAT:189 STAT: STMc
    [00:00:14.496401] process_strm:377 set fade mode: 0
    [00:00:14.496587] process:521 audg
    [00:00:14.496597] process_audg:433 audg gainL: 20992 gainR: 20992 adjust: 1
    [00:00:14.496605] set_volume:233 setting internal gain left: 20992 right: 20992
    [06:51:40.405635] stream_thread:247 headers: len: 123
    HTTP/1.0 200 OK
    Content-Type: audio/x-flac
    icy-br: 917280
    icy-name: pCP hifi-kitchen line-in (flac)
    icy-metadata: 0
    
    
    [06:51:40.405724] sendRESP:220 RESP
    [06:51:40.411186] process:521 cont
    [06:51:40.411225] process_cont:391 cont metaint: 0 loop: 0
    [06:51:40.422017] process:521 strm
    [06:51:40.422051] process_strm:274 strm command t
    [06:51:40.422066] sendSTAT:189 STAT: STMt
    [06:51:40.505781] stream_thread:320 end of stream
    [06:51:40.505912] sendDSCO:208 DSCO: 0
    [06:51:40.507587] process:521 strm
    [06:51:40.507599] process_strm:274 strm command u
    [06:51:40.507609] process_strm:331 unpause at: 0 now: 14695
    [06:51:40.507621] sendSTAT:189 STAT: STMr
    [06:51:40.584586] decode_thread:100 decode complete
    [06:51:40.584620] slimproto_run:709 output underrun
    [06:51:40.584634] sendSTAT:189 STAT: STMd
    [06:51:40.584659] sendSTAT:189 STAT: STMu
    [06:51:40.640613] process:521 audg
    [06:51:40.640657] process_audg:433 audg gainL: 20992 gainR: 20992 adjust: 1
    [06:51:40.640670] set_volume:233 setting internal gain left: 20992 right: 20992
    [06:51:40.644652] process:521 strm
    [06:51:40.644700] process_strm:274 strm command s
    [06:51:40.644710] process_strm:344 strm s autostart: 3 transition period: 10 transition type: 0 codec: m
    [06:51:40.644723] sendSTAT:189 STAT: STMf
    [06:51:40.644786] codec_open:264 codec open: 'm'
    [06:51:40.644799] codec_open:281 closing codec: 'f'
    [06:51:40.644857] _tcp_connect:486 connecting to 10.6.77.96:9100
    [06:51:40.645023] stream_sock:577 header: GET /S16_LE/44100/2/M HTTP/1.0
    Cache-Control: no-cache
    Connection: close
    Accept: */*
    Host: 10.6.77.96:9100
    User-Agent: iTunes/4.7.1 (Linux; N; Red Hat; x86_64-linux; EN; utf8) SqueezeCenter, Squeezebox Server, Logitech Media Server/7.9.3/1588164984
    Icy-Metadata: 1
    
    
    [06:51:40.645042] sendSTAT:189 STAT: STMc
    [06:51:40.645060] process_strm:377 set fade mode: 0
    [06:51:40.645090] process:521 audg
    [06:51:40.645101] process_audg:433 audg gainL: 20992 gainR: 20992 adjust: 1
    [06:51:40.645111] set_volume:233 setting internal gain left: 20992 right: 20992
    [06:51:40.740325] stream_thread:247 headers: len: 117
    HTTP/1.0 200 OK
    Content-Type: audio/mpeg
    icy-br: 320
    icy-name: pCP hifi-kitchen line-in (mp3)
    icy-metadata: 0
    
    
    [06:51:40.740423] sendRESP:220 RESP
    [06:51:40.746092] process:521 cont
    [06:51:40.746141] process_cont:391 cont metaint: 0 loop: 0
    [06:51:40.767060] process:521 strm
    [06:51:40.767100] process_strm:274 strm command t
    [06:51:40.767114] sendSTAT:189 STAT: STMt
    [06:51:40.840482] stream_thread:320 end of stream
    [06:51:40.840636] sendDSCO:208 DSCO: 0
    [06:51:40.842308] process:521 strm
    [06:51:40.842321] process_strm:274 strm command u
    [06:51:40.842332] process_strm:331 unpause at: 0 now: 15030
    [06:51:40.842345] sendSTAT:189 STAT: STMr
    [06:51:40.884848] mad_decode:207 end of stream
    [06:51:40.885308] mad_decode:247 setting track_start
    [06:51:40.885333] mad_decode:276 gapless: skipping 529 frames at start
    [06:51:40.885362] decode_thread:100 decode complete
    [06:51:40.885410] sendSTAT:189 STAT: STMd
    [06:51:40.885477] sendSTAT:189 STAT: STMt
    [06:51:40.918630] _output_frames:149 track start sample rate: 44100 replay_gain: 0
    [06:51:41.002998] slimproto_run:709 output underrun
    [06:51:41.003052] sendSTAT:189 STAT: STMs
    [06:51:41.003089] sendSTAT:189 STAT: STMu
    [06:51:41.003118] process:521 strm
    [06:51:41.003129] process_strm:274 strm command t
    [06:51:41.003139] sendSTAT:189 STAT: STMt
    [06:51:45.003800] process:521 strm
    Then the log continues with the last few lines being repeated
    Why is it not playing?
    Perfect in every way, Modest and Misunderstood!

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,937
    I'm a bit lost on which device is recording, which device is playing and where the LMS server lives. One thought is that you cannot play and record on the same player at different bit depths. Try locking squeezelite on that players at 16 bits using the alsa options on the squeezelite page.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #7
    Junior Member
    Join Date
    May 2020
    Posts
    19
    Paul you are a Genius!!
    Locking the Alsa Sample Rate to 16 on the Player has done the trick.

    I am doing this to get rid of my Sonos Kit. I am Fed Up with Sonos making perfectly good equipment redundant. They have done it once too often, So Good Bye Sonos, Hello Raspberry Pi and HiFiBerry!

    To explain my system for anyone else out there having problems.:
    Fancy Dell Server running CentOS 7 with a few Xen Guests has LMS running to serve my ripped CD & LP Collection.
    Kitchen - Pi4 with HiFiBerry DAC+ ADC Plus to send TV Sound to other rooms in the house. Also running LMS so alternative sound can be played in different rooms..
    Cottage - Pi4 with HiFiBerry with Amp2 and piCorePlayer to play from any of the LMS Servers
    Bedroom - Pi4 with HiFiBerry with Amp2 and piCorePlayer to play from any of the LMS Servers

    Pretty simple really, and no WiFi, I am hard wiring into TP-Link PowerLine round the house.
    Regards, and thank you for your patience
    (:{)}}
    Perfect in every way, Modest and Misunderstood!

  8. #8
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,464
    Quote Originally Posted by themetman View Post
    Paul you are a Genius!!
    Locking the Alsa Sample Rate to 16 on the Player has done the trick.

    I am doing this to get rid of my Sonos Kit. I am Fed Up with Sonos making perfectly good equipment redundant. They have done it once too often, So Good Bye Sonos, Hello Raspberry Pi and HiFiBerry!

    To explain my system for anyone else out there having problems.:
    Fancy Dell Server running CentOS 7 with a few Xen Guests has LMS running to serve my ripped CD & LP Collection.
    Kitchen - Pi4 with HiFiBerry DAC+ ADC Plus to send TV Sound to other rooms in the house. Also running LMS so alternative sound can be played in different rooms..
    Cottage - Pi4 with HiFiBerry with Amp2 and piCorePlayer to play from any of the LMS Servers
    Bedroom - Pi4 with HiFiBerry with Amp2 and piCorePlayer to play from any of the LMS Servers

    Pretty simple really, and no WiFi, I am hard wiring into TP-Link PowerLine round the house.
    Regards, and thank you for your patience
    (:{)}}
    That looks good. Glad to hear it is working now.
    I note you have 2 LMS servers running - just be aware that you may find that players jump from one to another when you perform reboots of one or other LMS. Not a big issue but can catch people out.
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  9. #9
    Junior Member
    Join Date
    May 2020
    Posts
    19
    Thanks for the 'Heads Up' on that. I will not have the Kitchen LMS running much fortunately. Also, as far as I am concerned, the beauty of piCorePlayer is that you can just pull the plug on the device if LMS is not running, and not have to worry. Brilliant idea once again.

    Cheers
    Perfect in every way, Modest and Misunderstood!

  10. #10
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,178
    Quote Originally Posted by themetman View Post
    Paul you are a Genius!!
    I agree!

    piCorePlayer is getting bigger all the time with thousands of combinations, I don't know how he keeps on top of it all. I have trouble just reading the question!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •