Home of the Squeezebox™ & Transporter® network music players.
Page 347 of 349 FirstFirst ... 247297337345346347348349 LastLast
Results 3,461 to 3,470 of 3481
  1. #3461
    Junior Member
    Join Date
    Feb 2019
    Posts
    26
    Are they?

    Code:
    osmc@osmc:~$ ls -lh squeezelite*
    -rwxr-xr-x 1 osmc osmc 2.3M Mar 22 20:47 squeezelite
    -rwxr-xr-x 1 osmc osmc 155K Apr  4 16:54 squeezelite-rpi
    osmc@osmc:~$ file squeezelite*
    squeezelite:     ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=011ce9727c7dd1951dc26115f495c8207e9f1719, stripped
    squeezelite-rpi: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=ba7f4453fff769ebde0615e11db61de966920627, stripped
    osmc@osmc:~$ ldd squeezelite*
    squeezelite:
            linux-vdso.so.1 (0x7ee6d000)
            /usr/lib/libarmmem.so (0x76faf000)
            libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76f8b000)
            libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76f78000)
            librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76f62000)
            libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76eea000)
            libasound.so.2 => /usr/lib/arm-linux-gnueabihf/libasound.so.2 (0x76e35000)
            libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d47000)
            /lib/ld-linux-armhf.so.3 (0x76fc3000)
    squeezelite-rpi:
            linux-vdso.so.1 (0x7efe8000)
            /usr/lib/libarmmem.so (0x76f9f000)
            libasound.so.2 => /usr/lib/arm-linux-gnueabihf/libasound.so.2 (0x76eea000)
            libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76ec6000)
            libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76e4e000)
            libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76e3b000)
            librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76e25000)
            libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d37000)
            /lib/ld-linux-armhf.so.3 (0x76fb3000)
    "squeezelite" is the downloaded binary, "squeezelite-rpi" is self-compiled.

  2. #3462
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,093
    Quote Originally Posted by Manul View Post
    Are they?
    "squeezelite" is the downloaded binary, "squeezelite-rpi" is self-compiled.
    By default a self compiled binary dynamically loads the system installed decoder libraries at run time, whereas the builds I provide include the decoder static libraries linked in.

    Try running ./squeezelite-rpi -d decode=debug and you'll see
    Code:
    [07:51:29.230408] decode_init:153 init decode
    [07:51:29.231993] load_faad:611 loaded libfaad.so.2
    [07:51:29.232048] register_faad:641 using faad to decode aac
    [07:51:29.233869] load_vorbis:305 loaded libvorbisfile.so.3
    [07:51:29.233938] register_vorbis:334 using vorbis to decode ogg
    [07:51:29.234527] load_flac:266 loaded libFLAC.so.8
    [07:51:29.234555] register_flac:294 using flac to decode flc
    [07:51:29.234595] register_pcm:433 using pcm to decode aif,pcm
    [07:51:29.234877] load_mad:385 loaded libmad.so.0
    [07:51:29.234897] register_mad:414 using mad to decode mp3
    [07:51:29.234908] decode_init:187 include codecs:  exclude codecs: 
    [07:51:29.235742] load_soxr:269 loaded libsoxr.so.0
    [07:51:29.235788] resample_init:362 resampling sync recipe: 0x04, flags: 0x00, scale: 0.89, precision: 0.0, passband_end: 0.00000, stopband_begin: 0.00000, phase_response: -1.0
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  3. #3463
    Junior Member
    Join Date
    Feb 2019
    Posts
    26
    Ah, I see now. Thanks for clearing that up!

  4. #3464
    Hi Everyone,

    maybe you can remember the discussion about HD Wav (DXD) files that did not work properly with Squeezelite.
    Installed is the latest version from Ralphy: squeezelite-1.9.1.1137-x86_64.tar.gz

    LMS is 7.9.2 (Today's build)

    The Dac I am using is from IFI which is capable of Native DSD Playback.
    I start with:

    Code:
    ./squeezelite -b 3072:4096 -R -u vME:::28 -c pcm,dsd,flac,mp3,ogg -r 44100,48000,88200,96000,176400,192000,352800,384000 -D 0:u32be -d all=debug -o hw:CARD=Audio,DEV=0 -a 100:3:32:1:2 -p 45
    I can play almost every track but when it comes to HD Wav there's a loud noise while playing it. (You can hear the song in the background but the noise is much louder)

    Code:
    test@streamer:~/programs$ ./squeezelite_pre -b 3072:4096 -R -u vME:::28 -c pcm,dsd,flac,mp3,ogg -r 44100,48000,88200,96000,176400,192000,352800,384000 -D 0:u32be -d all=debug -o hw:CARD=Audio,DEV=0 -a 100:3:32:1:2 -p 45
    [19:18:59.455843] stream_init:294 init stream
    [19:18:59.456046] stream_init:295 streambuf size: 3145728
    [19:18:59.458731] output_init_alsa:939 init output
    [19:18:59.458788] output_init_alsa:979 requested alsa_buffer: 100 alsa_period: 3 format: 32 mmap: 1
    [19:18:59.458829] output_init_common:350 outputbuf size: 4194304
    [19:18:59.458917] output_init_common:374 idle timeout: 0
    [19:18:59.460963] output_init_common:414 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100
    [19:18:59.464912] output_init_alsa:1005 memory locked
    [19:18:59.464947] output_init_alsa:1011 glibc detected using mallopt
    [19:18:59.465058] output_init_alsa:1031 set output sched fifo rt: 45
    [19:18:59.465072] decode_init:153 init decode
    [19:18:59.465148] register_dsd:908 using dsd to decode dsf,dff
    [19:18:59.465158] register_vorbis:334 using vorbis to decode ogg
    [19:18:59.465166] register_flac:294 using flac to decode flc
    [19:18:59.465175] register_pcm:433 using pcm to decode aif,pcm
    [19:18:59.465184] register_mad:414 using mad to decode mp3
    [19:18:59.465191] decode_init:187 include codecs: pcm,dsd,flac,mp3,ogg exclude codecs:
    [19:18:59.465697] resample_init:362 resampling sync recipe: 0x36, flags: 0x00, scale: 0.89, precision: 28.0, passband_end: 0.00000, stopband_begin: 0.00000, phase_response: -1.0
    [19:18:59.465739] discover_server:784 sending discovery
    [19:18:59.465781] output_thread:687 open output device: hw:CARD=Audio,DEV=0
    [19:18:59.465801] alsa_open:351 opening device at: 44100
    [19:18:59.465925] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [19:18:59.465955] alsa_open:513 buffer: 100 period: 3 -> buffer size: 4410 period size: 1470
    [19:18:59.466222] discover_server:795 got response from: 10.0.0.34:3483
    [19:18:59.515176] alsa_open:351 opening device at: 44100
    [19:18:59.515399] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [19:18:59.515433] alsa_open:513 buffer: 100 period: 3 -> buffer size: 4410 period size: 1470
    [19:18:59.515947] slimproto:883 connecting to 10.0.0.34:3483
    [19:18:59.516297] slimproto:922 connected
    [19:18:59.516310] sendHELO:130 mac: ec:a8:6b:fd:86:06
    [19:18:59.516315] sendHELO:132 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.1-1137,ModelName=SqueezeLite,MaxSampleRate=384000,aif,pcm,dsf,dff,flc,mp3,ogg
    [19:18:59.526619] decode_flush:229 decode flush
    [19:18:59.526642] output_flush:427 flush output buffer
    [19:18:59.526671] sendSTAT:179 STAT: STMf
    [19:18:59.526752] process_aude:408 enable spdif: 1 dac: 1
    [19:18:59.526860] process:514 audg
    [19:18:59.526876] process_audg:426 audg gainL: 3840 gainR: 3840 adjust: 1
    [19:18:59.526883] set_volume:233 setting internal gain left: 3840 right: 3840
    [19:19:29.334724] process_serv:476 switch server
    [19:19:29.434850] slimproto:892 switching server to 10.0.0.25:3483
    [19:19:29.435410] slimproto:922 connected
    [19:19:29.435455] sendHELO:130 mac: ec:a8:6b:fd:86:06
    [19:19:29.435478] sendHELO:132 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.1-1137,ModelName=SqueezeLite,MaxSampleRate=384000,aif,pcm,dsf,dff,flc,mp3,ogg
    [19:19:29.443355] process:514 strm
    [19:19:29.443392] process_strm:264 strm command q
    [19:19:29.443407] decode_flush:229 decode flush
    [19:19:29.443424] output_flush:427 flush output buffer
    [19:19:29.443445] sendSTAT:179 STAT: STMf
    [19:19:29.443490] process:514 strm
    [19:19:29.443502] process_strm:264 strm command q
    [19:19:29.443516] decode_flush:229 decode flush
    [19:19:29.443529] output_flush:427 flush output buffer
    [19:19:29.443544] sendSTAT:179 STAT: STMf
    [19:19:29.443562] process:514 setd
    [19:19:29.443577] process:514 setd
    [19:19:29.443592] process:514 aude
    [19:19:29.443603] process_aude:408 enable spdif: 1 dac: 1
    [19:19:29.443621] process:514 audg
    [19:19:29.443632] process_audg:426 audg gainL: 3840 gainR: 3840 adjust: 0
    [19:19:29.443649] set_volume:233 setting internal gain left: 65536 right: 65536
    [19:19:29.997065] process:514 strm
    [19:19:29.997119] process_strm:264 strm command t
    [19:19:29.997134] sendSTAT:179 STAT: STMt
    [19:19:34.947316] set_volume:233 setting internal gain left: 65536 right: 65536
    [19:19:34.947982] codec_open:257 codec open: 'p'
    [19:19:34.947996] pcm_open:397 pcm size: 4 rate: 352800 chan: 2 bigendian: 0
    [19:19:34.948020] stream_sock:393 connecting to 10.0.0.25:9000
    [19:19:34.948254] stream_sock:422 header: GET /stream.mp3?player=ec:a8:6b:fd:86:06 HTTP/1.0
    [19:19:34.948274] sendSTAT:179 STAT: STMc
    [19:19:34.948284] process_strm:370 set fade mode: 0
    [19:19:34.948300] process:514 audg
    [19:19:34.948312] process_audg:426 audg gainL: 3840 gainR: 3840 adjust: 0
    [19:19:34.948324] set_volume:233 setting internal gain left: 65536 right: 65536
    [19:19:34.996784] stream_thread:180 headers: len: 115
    
    HTTP/1.1 200 OK
    Server: Logitech Media Server (7.9.2 - 1555406898)
    Connection: close
    Content-Type: audio/L16
    
    
    [19:19:34.997739] sendRESP:210 RESP
    [19:19:35.001858] pcm_decode:206 setting track_start
    [19:19:35.001991] resample_newstream:232 disable resampling - rates match
    [19:19:35.002009] process_newstream:124 processing: inactive
    [19:19:35.018828] _output_frames:64 start buffer frames: 44761
    [19:19:35.018881] _output_frames:149 track start sample rate: 352800 replay_gain: 0
    [19:19:35.028925] output_thread:687 open output device: hw:CARD=Audio,DEV=0
    [19:19:35.029337] alsa_open:351 opening device at: 352800
    [19:19:35.029683] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 352800 mmap: 1
    [19:19:35.029740] alsa_open:513 buffer: 100 period: 3 -> buffer size: 35280 period size: 11760
    [19:19:35.165146] alsa_open:351 opening device at: 352800
    [19:19:35.165539] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 352800 mmap: 1
    [19:19:35.165602] alsa_open:513 buffer: 100 period: 3 -> buffer size: 35280 period size: 11760
    [19:19:46.677301] decode_flush:229 decode flush
    [19:19:46.677317] output_flush:427 flush output buffer
    I have prepared a second system with the same USB Interface from IFI. However I installed Daphile on this. This plays the File without any issue. HEre's the logfile from this system.

    Code:
    [17:16:49.763572] decode_flush:224 decode flush
    [17:16:49.763621] output_flush:423 flush output buffer
    [17:16:49.825601] codec_open:252 codec open: 'p'
    [17:16:49.825650] pcm_open:449 pcm size: 16 rate: 705600 chan: 15 bigendian: 0
    [17:16:49.825685] stream_sock:384 connecting to 127.0.0.1:9000
    [17:16:49.825877] stream_sock:413 header: GET /stream.mp3?player=5a:ae:a6:73:2f:e4 HTTP/1.0
    
    
    [17:16:49.889248] stream_thread:176 headers: len: 117
    HTTP/1.1 200 OK
    Server: Logitech Media Server (7.9.2 - git776eb7c)
    Connection: close
    Content-Type: audio/x-wav
    
    
    [17:16:49.985875] _check_header:77 WAVE
    [17:16:49.985919] _check_header:101 header: fmt  len: 40
    [17:16:49.985929] _check_header:134 pcm size: 4 rate: 352800 chan: 2 bigendian: 0
    [17:16:49.985937] _check_header:101 header: fact len: 4
    [17:16:49.985957] _check_header:101 header: data len: 615610848
    [17:16:49.985964] _check_header:111 audio size: 615610848
    [17:16:49.985971] pcm_decode:203 setting track_start
    [17:16:49.985979] resample_newstream:231 disable resampling - rates match
    [17:16:49.985986] process_newstream:123 processing: inactive
    [17:16:50.004984] _output_frames:61 start buffer frames: 393199
    [17:16:50.005033] _output_frames:146 track start sample rate: 352800 replay_gain: 0
    and the Transcode log
    Code:
    [Native+] -F wav-wav-daphile-* -m 5a-ae-a6-73-2f-e4 -p daphile -f wav /srv/mediaserver/music/USB Drives/LEER/What-A-Wonderful-World_DXD352KHz_2chDXD.wav
      Clock: 17:16:49.796
      Source: Music Folder/USB Drives/LEER/What-A-Wonderful-World_DXD352KHz_2chDXD.wav
      Input format: WAV (F32LE), 352.8kHz, 32bits
      Output format: WAV (S32LE), 352.8kHz, 32bits

    Maybe this helps to see what Daphile does here to play the tracks properly.

    Any idea? Maybe to do with the Transcode?
    Input format: WAV (F32LE)
    Output format: WAV (S32LE)


    Thanks S

  5. #3465
    Junior Member
    Join Date
    Apr 2019
    Posts
    1
    Hello. I'm hoping I could get a bit of a steer in the right direction for troubleshooting my Squeezelite installation. Googling around has not been very helpful, so I must not know the correct keywords or maybe even where the problem lies.

    I'm on Ubuntu 18.04 Desktop and trying to get a Squeezelite instance running on the same machine as Logitech Media Server 7.9.2 - 1555406898. Squeezelite is version 1.8, installed from the current Ubuntu repository. This is my main media playback machine, so I'm looking to have all of my various apps playback through the same speakers.

    Everything seems to work as expected when I run Squeezelite from the command line, but something different is going on when the service starts at boot or with
    Code:
    service squeezelite start
    . When starting as a service, it plays fine at first, but as soon as I use the software mixer (change system volume level), Squeezelite goes silent.

    I'm guessing this could mean that the service is starting with a device output other than PulseAudio, but I don't seem to be going to the right place or entering the right details to tweak that option. When I edit /etc/default/squeezelite - even just to add
    Code:
    SL_SOUNDCARD="pulse"
    it seems to just crash, showing me:

    Code:
      squeezelite.service - LSB: Lightweight headless Squeezebox emulator
       Loaded: loaded (/etc/init.d/squeezelite; generated)
       Active: active (exited) since Fri 2019-04-19 14:34:01 MST; 9s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 13693 ExecStop=/etc/init.d/squeezelite stop (code=exited, status=0/SUCCESS)
      Process: 14218 ExecStart=/etc/init.d/squeezelite start (code=exited, status=0/SUCCESS)
    
    Apr 19 14:34:01 Maxie systemd[1]: Starting LSB: Lightweight headless Squeezebox emulator...
    Apr 19 14:34:01 Maxie systemd[1]: Started LSB: Lightweight headless Squeezebox emulator.
    And, as I say, I can successfully launch Squeezelite from the command console as either my user account or the root account. Running it using either
    Code:
    squeezelite
    with no arguments, or something like
    Code:
    squeezelite -n squeezetest -o pulse
    work fine; no problems using the software mixer to change volume.

    So, now I'm stuck since I haven't figured out how to get the init.d scripts to accept a custom output setting and I'm not sure what else I should be looking at in order to troubleshoot.

    Could anyone make a suggestion?

  6. #3466
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,093
    Quote Originally Posted by s25a View Post
    Hi Everyone,

    maybe you can remember the discussion about HD Wav (DXD) files that did not work properly with Squeezelite.
    Installed is the latest version from Ralphy: squeezelite-1.9.1.1137-x86_64.tar.gz

    LMS is 7.9.2 (Today's build)

    The Dac I am using is from IFI which is capable of Native DSD Playback.
    I start with:

    Code:
    ./squeezelite -b 3072:4096 -R -u vME:::28 -c pcm,dsd,flac,mp3,ogg -r 44100,48000,88200,96000,176400,192000,352800,384000 -D 0:u32be -d all=debug -o hw:CARD=Audio,DEV=0 -a 100:3:32:1:2 -p 45
    I can play almost every track but when it comes to HD Wav there's a loud noise while playing it. (You can hear the song in the background but the noise is much louder)

    Code:
    test@streamer:~/programs$ ./squeezelite_pre -b 3072:4096 -R -u vME:::28 -c pcm,dsd,flac,mp3,ogg -r 44100,48000,88200,96000,176400,192000,352800,384000 -D 0:u32be -d all=debug -o hw:CARD=Audio,DEV=0 -a 100:3:32:1:2 -p 45
    [19:18:59.455843] stream_init:294 init stream
    [19:18:59.456046] stream_init:295 streambuf size: 3145728
    [19:18:59.458731] output_init_alsa:939 init output
    [19:18:59.458788] output_init_alsa:979 requested alsa_buffer: 100 alsa_period: 3 format: 32 mmap: 1
    [19:18:59.458829] output_init_common:350 outputbuf size: 4194304
    [19:18:59.458917] output_init_common:374 idle timeout: 0
    [19:18:59.460963] output_init_common:414 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100
    [19:18:59.464912] output_init_alsa:1005 memory locked
    [19:18:59.464947] output_init_alsa:1011 glibc detected using mallopt
    [19:18:59.465058] output_init_alsa:1031 set output sched fifo rt: 45
    [19:18:59.465072] decode_init:153 init decode
    [19:18:59.465148] register_dsd:908 using dsd to decode dsf,dff
    [19:18:59.465158] register_vorbis:334 using vorbis to decode ogg
    [19:18:59.465166] register_flac:294 using flac to decode flc
    [19:18:59.465175] register_pcm:433 using pcm to decode aif,pcm
    [19:18:59.465184] register_mad:414 using mad to decode mp3
    [19:18:59.465191] decode_init:187 include codecs: pcm,dsd,flac,mp3,ogg exclude codecs:
    [19:18:59.465697] resample_init:362 resampling sync recipe: 0x36, flags: 0x00, scale: 0.89, precision: 28.0, passband_end: 0.00000, stopband_begin: 0.00000, phase_response: -1.0
    [19:18:59.465739] discover_server:784 sending discovery
    [19:18:59.465781] output_thread:687 open output device: hw:CARD=Audio,DEV=0
    [19:18:59.465801] alsa_open:351 opening device at: 44100
    [19:18:59.465925] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [19:18:59.465955] alsa_open:513 buffer: 100 period: 3 -> buffer size: 4410 period size: 1470
    [19:18:59.466222] discover_server:795 got response from: 10.0.0.34:3483
    [19:18:59.515176] alsa_open:351 opening device at: 44100
    [19:18:59.515399] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [19:18:59.515433] alsa_open:513 buffer: 100 period: 3 -> buffer size: 4410 period size: 1470
    [19:18:59.515947] slimproto:883 connecting to 10.0.0.34:3483
    [19:18:59.516297] slimproto:922 connected
    [19:18:59.516310] sendHELO:130 mac: ec:a8:6b:fd:86:06
    [19:18:59.516315] sendHELO:132 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.1-1137,ModelName=SqueezeLite,MaxSampleRate=384000,aif,pcm,dsf,dff,flc,mp3,ogg
    [19:18:59.526619] decode_flush:229 decode flush
    [19:18:59.526642] output_flush:427 flush output buffer
    [19:18:59.526671] sendSTAT:179 STAT: STMf
    [19:18:59.526752] process_aude:408 enable spdif: 1 dac: 1
    [19:18:59.526860] process:514 audg
    [19:18:59.526876] process_audg:426 audg gainL: 3840 gainR: 3840 adjust: 1
    [19:18:59.526883] set_volume:233 setting internal gain left: 3840 right: 3840
    [19:19:29.334724] process_serv:476 switch server
    [19:19:29.434850] slimproto:892 switching server to 10.0.0.25:3483
    [19:19:29.435410] slimproto:922 connected
    [19:19:29.435455] sendHELO:130 mac: ec:a8:6b:fd:86:06
    [19:19:29.435478] sendHELO:132 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.1-1137,ModelName=SqueezeLite,MaxSampleRate=384000,aif,pcm,dsf,dff,flc,mp3,ogg
    [19:19:29.443355] process:514 strm
    [19:19:29.443392] process_strm:264 strm command q
    [19:19:29.443407] decode_flush:229 decode flush
    [19:19:29.443424] output_flush:427 flush output buffer
    [19:19:29.443445] sendSTAT:179 STAT: STMf
    [19:19:29.443490] process:514 strm
    [19:19:29.443502] process_strm:264 strm command q
    [19:19:29.443516] decode_flush:229 decode flush
    [19:19:29.443529] output_flush:427 flush output buffer
    [19:19:29.443544] sendSTAT:179 STAT: STMf
    [19:19:29.443562] process:514 setd
    [19:19:29.443577] process:514 setd
    [19:19:29.443592] process:514 aude
    [19:19:29.443603] process_aude:408 enable spdif: 1 dac: 1
    [19:19:29.443621] process:514 audg
    [19:19:29.443632] process_audg:426 audg gainL: 3840 gainR: 3840 adjust: 0
    [19:19:29.443649] set_volume:233 setting internal gain left: 65536 right: 65536
    [19:19:29.997065] process:514 strm
    [19:19:29.997119] process_strm:264 strm command t
    [19:19:29.997134] sendSTAT:179 STAT: STMt
    [19:19:34.947316] set_volume:233 setting internal gain left: 65536 right: 65536
    [19:19:34.947982] codec_open:257 codec open: 'p'
    [19:19:34.947996] pcm_open:397 pcm size: 4 rate: 352800 chan: 2 bigendian: 0
    [19:19:34.948020] stream_sock:393 connecting to 10.0.0.25:9000
    [19:19:34.948254] stream_sock:422 header: GET /stream.mp3?player=ec:a8:6b:fd:86:06 HTTP/1.0
    [19:19:34.948274] sendSTAT:179 STAT: STMc
    [19:19:34.948284] process_strm:370 set fade mode: 0
    [19:19:34.948300] process:514 audg
    [19:19:34.948312] process_audg:426 audg gainL: 3840 gainR: 3840 adjust: 0
    [19:19:34.948324] set_volume:233 setting internal gain left: 65536 right: 65536
    [19:19:34.996784] stream_thread:180 headers: len: 115
    
    HTTP/1.1 200 OK
    Server: Logitech Media Server (7.9.2 - 1555406898)
    Connection: close
    Content-Type: audio/L16
    
    
    [19:19:34.997739] sendRESP:210 RESP
    [19:19:35.001858] pcm_decode:206 setting track_start
    [19:19:35.001991] resample_newstream:232 disable resampling - rates match
    [19:19:35.002009] process_newstream:124 processing: inactive
    [19:19:35.018828] _output_frames:64 start buffer frames: 44761
    [19:19:35.018881] _output_frames:149 track start sample rate: 352800 replay_gain: 0
    [19:19:35.028925] output_thread:687 open output device: hw:CARD=Audio,DEV=0
    [19:19:35.029337] alsa_open:351 opening device at: 352800
    [19:19:35.029683] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 352800 mmap: 1
    [19:19:35.029740] alsa_open:513 buffer: 100 period: 3 -> buffer size: 35280 period size: 11760
    [19:19:35.165146] alsa_open:351 opening device at: 352800
    [19:19:35.165539] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using format: S32_LE sample rate: 352800 mmap: 1
    [19:19:35.165602] alsa_open:513 buffer: 100 period: 3 -> buffer size: 35280 period size: 11760
    [19:19:46.677301] decode_flush:229 decode flush
    [19:19:46.677317] output_flush:427 flush output buffer
    I have prepared a second system with the same USB Interface from IFI. However I installed Daphile on this. This plays the File without any issue. HEre's the logfile from this system.

    Code:
    [17:16:49.763572] decode_flush:224 decode flush
    [17:16:49.763621] output_flush:423 flush output buffer
    [17:16:49.825601] codec_open:252 codec open: 'p'
    [17:16:49.825650] pcm_open:449 pcm size: 16 rate: 705600 chan: 15 bigendian: 0
    [17:16:49.825685] stream_sock:384 connecting to 127.0.0.1:9000
    [17:16:49.825877] stream_sock:413 header: GET /stream.mp3?player=5a:ae:a6:73:2f:e4 HTTP/1.0
    
    
    [17:16:49.889248] stream_thread:176 headers: len: 117
    HTTP/1.1 200 OK
    Server: Logitech Media Server (7.9.2 - git776eb7c)
    Connection: close
    Content-Type: audio/x-wav
    
    
    [17:16:49.985875] _check_header:77 WAVE
    [17:16:49.985919] _check_header:101 header: fmt  len: 40
    [17:16:49.985929] _check_header:134 pcm size: 4 rate: 352800 chan: 2 bigendian: 0
    [17:16:49.985937] _check_header:101 header: fact len: 4
    [17:16:49.985957] _check_header:101 header: data len: 615610848
    [17:16:49.985964] _check_header:111 audio size: 615610848
    [17:16:49.985971] pcm_decode:203 setting track_start
    [17:16:49.985979] resample_newstream:231 disable resampling - rates match
    [17:16:49.985986] process_newstream:123 processing: inactive
    [17:16:50.004984] _output_frames:61 start buffer frames: 393199
    [17:16:50.005033] _output_frames:146 track start sample rate: 352800 replay_gain: 0
    and the Transcode log
    Code:
    [Native+] -F wav-wav-daphile-* -m 5a-ae-a6-73-2f-e4 -p daphile -f wav /srv/mediaserver/music/USB Drives/LEER/What-A-Wonderful-World_DXD352KHz_2chDXD.wav
      Clock: 17:16:49.796
      Source: Music Folder/USB Drives/LEER/What-A-Wonderful-World_DXD352KHz_2chDXD.wav
      Input format: WAV (F32LE), 352.8kHz, 32bits
      Output format: WAV (S32LE), 352.8kHz, 32bits

    Maybe this helps to see what Daphile does here to play the tracks properly.

    Any idea? Maybe to do with the Transcode?
    Input format: WAV (F32LE)
    Output format: WAV (S32LE)


    Thanks S
    Try adding -W to the squeezelite command line.

    -W Read wave and aiff format from header, ignore server parameters
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  7. #3467
    Senior Member
    Join Date
    Nov 2009
    Location
    DUS
    Posts
    828
    I'm currently getting my brain ruffled by testing the digital HW (based digital) volume control.
    That includes the "-X" option.
    If we take the PCM5122, it offers a logarithmic ramp-up/amp-down series at 0.5db stepwidth.

    We don't want a 2nd logarithmic curve applied by squeezelite. "-X" makes sense.

    The PCM5122 - e.g. Allo Boss offers a range from -103.5 to 23db and these are put into 255 steps.
    The Allo driver cuts off the attenuation part from 208 to 255. All these steps get a 0db assignment.
    Actually pretty much all PCM51xx DACs do it by now.

    0db starts at step 207. Now we'got 207 0.5db steps. And we just have 100 clicks on the LMS/squeezelite.

    That'd be an easy one. Just take out the 0.5dB steps and cut off the bottom. We'd have a proper 1db/click
    linear scale in db-steps. As naive as I was, I thought that'd be accomplished by "-X".




    So far so good.
    Below the ramp-down scale of the PCM5122. I ran a script ramping all the way down to see what's going on .

    Code:
          %   db
    207 100 0.00
    206 100 -0.50
    205 99 -1.00
    204 99 -1.50
    203 98 -2.00
    202 98 -2.50
    201 97 -3.00
    200 97 -3.50
    199 96 -4.00
    198 96 -4.50
    197 95 -5.00
    196 95 -5.50
    195 94 -6.00
    194 94 -6.50
    193 93 -7.00
    192 93 -7.50
    191 92 -8.00
    190 92 -8.50
    189 91 -9.00
    188 91 -9.50
    187 90 -10.00
    186 90 -10.50
    185 89 -11.00
    184 89 -11.50
    183 88 -12.00
    182 88 -12.50
    181 87 -13.00
    180 87 -13.50
    179 86 -14.00
    178 86 -14.50
    ...
    As you can see it goes down linear in 0.5dB steps.

    Since there are only 100%=100clicks we see two values per %. Not very nice. Another reason for letting the 0.5db values go.


    I then configured SL with "-V Digital" "-X". The linear HW VC mode. My assumption then, one click on LMS WEB GUI VC = -1dB.

    I debugged what's going on.

    Code:
    [17:30:42.961540] process_audg:426 audg gainL: 46592 gainR: 46592 adjust: 1
    [17:30:42.961564] set_mixer:193 setting vol raw [0..207]
    [17:30:42.961585] set_mixer:226 Digital left: -3.0dB -> 198 right: -3.0dB -> 198
    [17:30:43.961656] sendSTAT:179 STAT: STMt
    [17:30:44.081764] process:514 audg
    [17:30:44.081857] process_audg:426 audg gainL: 41728 gainR: 41728 adjust: 1
    [17:30:44.081892] set_mixer:193 setting vol raw [0..207]
    [17:30:44.083492] set_mixer:226 Digital left: -3.9dB -> 195 right: -3.9dB -> 195
    [17:30:44.083597] process:514 audg
    [17:30:44.083621] process_audg:426 audg gainL: 41728 gainR: 41728 adjust: 1
    [17:30:44.083645] set_mixer:193 setting vol raw [0..207]
    [17:30:44.083667] set_mixer:226 Digital left: -3.9dB -> 195 right: -3.9dB -> 195
    [17:30:45.005768] sendSTAT:179 STAT: STMt
    [17:30:45.005946] process:514 strm
    [17:30:45.005970] process_strm:264 strm command t
    [17:30:45.005993] sendSTAT:179 STAT: STMt
    [17:30:45.152253] process:514 audg
    [17:30:45.152339] process_audg:426 audg gainL: 37120 gainR: 37120 adjust: 1
    [17:30:45.152375] set_mixer:193 setting vol raw [0..207]
    [17:30:45.153978] set_mixer:226 Digital left: -4.9dB -> 192 right: -4.9dB -> 192
    [17:30:45.154083] process:514 audg
    [17:30:45.154106] process_audg:426 audg gainL: 37120 gainR: 37120 adjust: 1
    [17:30:45.154131] set_mixer:193 setting vol raw [0..207]
    [17:30:45.154152] set_mixer:226 Digital left: -4.9dB -> 192 right: -4.9dB -> 192
    [17:30:46.154228] sendSTAT:179 STAT: STMt
    [17:30:46.563268] process:514 audg
    [17:30:46.563355] process_audg:426 audg gainL: 33024 gainR: 33024 adjust: 1
    [17:30:46.563392] set_mixer:193 setting vol raw [0..207]
    [17:30:46.564995] set_mixer:226 Digital left: -6.0dB -> 189 right: -6.0dB -> 189
    [17:30:46.565099] process:514 audg
    [17:30:46.565123] process_audg:426 audg gainL: 33024 gainR: 33024 adjust: 1
    [17:30:46.565147] set_mixer:193 setting vol raw [0..207]
    [17:30:46.565168] set_mixer:226 Digital left: -6.0dB -> 189 right: -6.0dB -> 189
    [17:30:47.565242] sendSTAT:179 STAT: STMt
    [17:30:49.005664] sendSTAT:179 STAT: STMt
    6 clicks = -6dB -> that's looks good.

    On the first glance.

    What made me wonder were the -4.9 and -3.9dB are coming from. These shouldn't be there. We're on HW VC and in linear mode. 1 click one clean and straight -1dB.
    Hmmh.
    Do I maybe look at the SL SW control in the debug log, which still runs even though HW VC "-V" is enabled!?!? I'd guess so. That's not good.

    Then I had a look at the amixer setting, what happened there after 6 clicks..

    Code:
    tc@pico1:~$ amixer sget Digital
    Simple mixer control 'Digital',0
      Capabilities: pvolume pswitch
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 207
      Mono:
      Front Left: Playback 189 [91%] [-9.00dB] [on]
      Front Right: Playback 189 [91%] [-9.00dB] [on]
    What ?? -9dB !??! Something is not quite right here.

    Ok. I quickly talked to Paul@pCP.

    I'd be opening a can of worms (my words). I have no issue with that.

    One of the issues seems that different HW, comes with different VC scales.
    Matching these properly is quite challenging.

    However. I do think there'd be a way to accomplish this.
    squeezelite would need a feature that reads custom VC scales - maybe read from a stored file.
    That file would consist of 100 number pairs.

    100 207
    99 205
    98 203
    ...

    That should lead to a linear and "predictable" volume control at last. I'd know that 94 = -6dB and 88 = -12dB for a 5122 chip.

    With such a file at hand, people could even improve/tailor the ramp-up/ramp-down curve.


    Any comments?

  8. #3468
    Quote Originally Posted by ralphy View Post
    Try adding -W to the squeezelite command line.

    -W Read wave and aiff format from header, ignore server parameters
    Hi Ralphy,

    that didn't solve the Problem however I have some 2 new results maybe this can help to solve the problem:

    1) When I start squeeze with these parameters (including c)

    Code:
    ./squeeze-b 3072:4096 -R -u vME:::28 -c pcm,dsd,flac,mp3,ogg,alac,wma,aac -r 44100,48000,88200,96000,176400,192000,352800,384000 -D 0:u32be -d all=debug -o hw:CARD=Audio,DEV=0 -a 100:3:32:1:2 -p 45
    I can play the file however there's a very loud noise in the track

    When I start squeeze without the -c parameter:
    Code:
    ./squeeze-b 3072:4096 -R -u vME:::28 -r 44100,48000,88200,96000,176400,192000,352800,384000 -D 0:u32be -d all=debug -o hw:CARD=Audio,DEV=0 -a 100:3:32:1:2 -p 45
    It does not Play the track (Just picks up the next track in the playlist)

    2) When I convert the track in advance with

    Code:
    sox /tank/media/TEST/What-A-Wonderful-World_DXD352KHz_2chDXD.wav -b 32 -e signed /tank/media/TEST/What-A-Wonderful-World_converted32Int.wav
    Than it works and plays perfectly.

    So my question is:

    - Do you know why there's a difference when I load the codecs...I did not exclude anything so there must be one codec loaded used for playing this file?
    - Is there a possibility to convert the file on the fly?

    When i compare this to the Daphile log I see
    Code:
    [Native+] -F wav-wav-daphile-* -m 5a-ae-a6-73-2f-e4 -p daphile -f wav /srv/mediaserver/music/USB Drives/LEER/What-A-Wonderful-World_DXD352KHz_2chDXD.wav
      Clock: 17:16:49.796
      Source: Music Folder/USB Drives/LEER/What-A-Wonderful-World_DXD352KHz_2chDXD.wav
      Input format: WAV (F32LE), 352.8kHz, 32bits
      Output format: WAV (S32LE), 352.8kHz, 32bits
    So maybe the conversion from F32LE to S32LE would solve it. Any chance to do that in the LMS?

    Thanks a lot.

    S

  9. #3469
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    17,009
    Quote Originally Posted by s25a View Post
    So maybe the conversion from F32LE to S32LE would solve it. Any chance to do that in the LMS?
    Unless you are using the C-3PO plugin - Enable logging player.source to INFO to see exactly what LMS is currently doing and why.

  10. #3470
    Quote Originally Posted by bpa View Post
    Unless you are using the C-3PO plugin - Enable logging player.source to INFO to see exactly what LMS is currently doing and why.
    Hi bpa,

    thanks a lot for help. I tried the C-3PO plugin but after activating this half of my music files do not play. I guess becaue I am using Ralphy release and not the one from Marco.

    Here is the logfile with player.source in debugging mode (only the Part when I start the Track)

    https://pastebin.com/n3yAqjSW


    Thanks S

Posting Permissions

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