Home of the Squeezebox™ & Transporter® network music players.
Page 12 of 37 FirstFirst ... 2101112131422 ... LastLast
Results 111 to 120 of 370
  1. #111
    Junior Member
    Join Date
    Aug 2017
    Posts
    13

    C3PO flip channels

    Hello

    And thanks for C3PO Plugin !

    I've noticed something strange on my system : when I check C3PO flip channels, the sound seems louder and even better than without checking it...!

    What does it do exactly ?

    Thanks
    Serge

  2. #112
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    735
    Quote Originally Posted by weuw View Post
    Hello

    And thanks for C3PO Plugin !

    I've noticed something strange on my system : when I check C3PO flip channels, the sound seems louder and even better than without checking it...!

    What does it do exactly ?

    Thanks
    Serge
    You could check the RESULTING COMMANDS section of C-3PO player settings to see what the actual command looks like in your system, in mine, where I have a reduction in the RIGHT channel, this is the resulting command for flac:

    Code:
    flc pcm * 00:e0:4c:68:ce:77
    # F noArgs, R noArgs, I noArgs, D RESAMPLE=-r %d
    
    [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav -b 24 --buffer 32768 --multi-threaded - gain -h remix -m 1v0.91 2 rate -v -M -b 95 48000 dither -f improved-e-weighted
    
    that becomes:
    
    
    flc pcm * 00:e0:4c:68:ce:77
    # D RESAMPLE=-r %d, I noArgs, R noArgs, F noArgs
    
    [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav -b 24 --buffer 32768 --multi-threaded - gain -h remix -m 2v0.91 1 rate -v -M -b 95 48000 dither -f improved-e-weighted
    As you could see, the only difference is -m, wher channels are inverted (first is out Left, second is Right, 1 is input left, 2 input right, v0.91 stand for volume 91% of the input channel).

    Depending on other settings adding "remix -m" or, in general, gain/ volume alteration could result in SOX claiming back the headroom in excess, resulting in a sound louder, gain -h (option automatic headroom) is there to avoid clippings.

    BTW, the SOX volume control is considered one of the best out there but be sure dither is applied when needed.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  3. #113
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    735
    Quote Originally Posted by Marvin Adeff View Post
    This error keeps repeating in Server Log:
    [18-02-17 18:33:48.2746] Slim::Utils::Misc::msg (1250) Warning: [18:33:48.2744] Use of uninitialized value in concatenation (.) or string at C:\ProgramData\Squeezebox\Cache\InstalledPlugins/Plugins/C3PO/Plugin.pm line 274.

    Not sure what to do to clear it...
    $lastCommands{$id}{'msg'} = "\n".
    "At: ".$lastCommands{$id}{'time'}."\n".
    " Command: \n".
    " ".$lastCommands{$id}{'command'}."\n\n".
    " Tokenized command: \n".
    " ".$lastCommands{$id}{'tokenized'}."\n";
    I apologize for the late answer,

    short answer is: go to Settings-> Advanced-> Logging-> Plugins C-3PO and set it to ERROR.

    Long one, is I'm too lazy... I knew that, but i forgot to correct it last time.. I'll do in the next version!
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  4. #114
    Senior Member
    Join Date
    Aug 2008
    Posts
    152
    Thanks Marco for this great plugin, and also for the instructions on DSD resampling on https://audiodigitale.eu/.

    I've:

    - installed the C-3PO plugin and sox DSD version on my LMS.
    - updated my squeezelite to Ralphy's latest build and am running without resampling and with the -W option.
    - configured the output for squeezelite to DSF.

    Squeezelite is running on an Allo USBridge connected via USB to an Oppo BDP-105D and I can hear music fine! The BDP-105D is reporting 384khz PCM.

    I've set up logging on squeezelite (all=info) and have the following output:

    Code:
    [16:35:31.643712] _read_header:159 DSF version: 1 format: 0
    [16:35:31.644025] _read_header:169 channels: 2
    [16:35:31.644071] _read_header:170 sample rate: 11289600
    [16:35:31.644108] _read_header:171 lsb first: 1
    [16:35:31.644142] _read_header:172 sample bytes: 2305843009213693951
    [16:35:31.644176] _read_header:173 block size: 4096
    [16:35:31.644210] _read_header:179 found dsd len: 12
    [16:35:31.644245] dsd_decode:528 setting track_start
    [16:35:31.644285] dsd_decode:544 DSD to PCM output
    [16:35:31.663536] _output_frames:62 start buffer frames: 77824
    [16:35:31.663777] _output_frames:147 track start sample rate: 1411200 replay_gain: 0
    [16:35:31.673937] output_thread:632 open output device: hw:CARD=DAC,DEV=0
    [16:35:31.675394] alsa_open:338 opening device at: 1411200
    [16:35:31.676030] alsa_open:368 reopening device hw:CARD=DAC,DEV=0 in plug mode as plughw:CARD=DAC,DEV=0 for resampling
    [16:35:31.677421] alsa_open:389 opened device plughw:CARD=DAC,DEV=0 using format: S32_LE sample rate: 1411200 mmap: 1
    [16:35:31.677898] alsa_open:468 buffer: 80 period: 4 -> buffer size: 112896 period size: 28224
    [16:41:42.285750] slimproto_stop:1004 slimproto stop
    [16:41:42.386421] decode_close:212 close decode
    [16:41:42.442630] stream_close:331 close stream
    [16:41:42.502147] output_close_alsa:960 close output
    The sample rate 1411200 doesn't look like any feasible PCM sample rate so I'm guessing it's outputting DSD, although the line
    Code:
    dsd_decode:544 DSD to PCM output
    made we wonder.

    Does everything look OK with the DSD playback? Thanks.
    Last edited by badboygolf16v; 2018-03-11 at 10:14.

  5. #115
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    735
    Quote Originally Posted by badboygolf16v View Post
    Thanks Marco for this great plugin, and also for the instructions on DSD resampling on https://audiodigitale.eu/.

    I've:

    - installed the C-3PO plugin and sox DSD version on my LMS.
    - updated my squeezelite to Ralphy's latest build and am running without resampling and with the -W option.
    - configured the output for squeezelite to DSF.

    Squeezelite is running on an Allo USBridge connected via USB to an Oppo BDP-105D and I can hear music fine! The BDP-105D is reporting 384khz PCM.

    I've set up logging on squeezelite (all=info) and have the following output:

    Code:
    [16:35:31.643712] _read_header:159 DSF version: 1 format: 0
    [16:35:31.644025] _read_header:169 channels: 2
    [16:35:31.644071] _read_header:170 sample rate: 11289600
    [16:35:31.644108] _read_header:171 lsb first: 1
    [16:35:31.644142] _read_header:172 sample bytes: 2305843009213693951
    [16:35:31.644176] _read_header:173 block size: 4096
    [16:35:31.644210] _read_header:179 found dsd len: 12
    [16:35:31.644245] dsd_decode:528 setting track_start
    [16:35:31.644285] dsd_decode:544 DSD to PCM output
    [16:35:31.663536] _output_frames:62 start buffer frames: 77824
    [16:35:31.663777] _output_frames:147 track start sample rate: 1411200 replay_gain: 0
    [16:35:31.673937] output_thread:632 open output device: hw:CARD=DAC,DEV=0
    [16:35:31.675394] alsa_open:338 opening device at: 1411200
    [16:35:31.676030] alsa_open:368 reopening device hw:CARD=DAC,DEV=0 in plug mode as plughw:CARD=DAC,DEV=0 for resampling
    [16:35:31.677421] alsa_open:389 opened device plughw:CARD=DAC,DEV=0 using format: S32_LE sample rate: 1411200 mmap: 1
    [16:35:31.677898] alsa_open:468 buffer: 80 period: 4 -> buffer size: 112896 period size: 28224
    [16:41:42.285750] slimproto_stop:1004 slimproto stop
    [16:41:42.386421] decode_close:212 close decode
    [16:41:42.442630] stream_close:331 close stream
    [16:41:42.502147] output_close_alsa:960 close output
    The sample rate 1411200 doesn't look like any feasible PCM sample rate so I'm guessing it's outputting DSD, although the line
    Code:
    dsd_decode:544 DSD to PCM output
    made we wonder.

    Does everything look OK with the DSD playback? Thanks.

    Could you post the Squeezelite command line please?

    Not sure the Ralphy version of squeezelite is actually DSD 'native' capable.

    It seems to me you have DSD256 in input to suqeezelite converted to PCM 1411200 (that no dac on this world is capable to play!).

    You probably want to enable DOP (-D) on the squeezelite command line to play that material. If you like to play 'native' DSD instead, in Linux you could try squeezelite-R2 (https://github.com/marcoc1712/squeezelite-R2/releases/) .
    Last edited by marcoc1712; 2018-03-11 at 14:04.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  6. #116
    Senior Member
    Join Date
    Aug 2008
    Posts
    152
    The command line I'm using with Ralphy's squeezelite is:

    Code:
    /usr/bin/squeezelite -n USBridge -o hw:CARD=DAC,DEV=0 -a 80:4::1 -W
    On my Allo Sparky I have:

    Code:
    root@DietPi:~# uname -r
    3.10.38
    
    root@DietPi:~# aplay --version
    aplay: version 1.1.3 by Jaroslav Kysela <perex@perex.cz>
    ALSA is OK? But the kernel is old... Is it worth trying?

    Mind you I would need an arm6hf build. Is there a binary available? If not I'll build myself.
    Last edited by badboygolf16v; 2018-03-11 at 15:39.

  7. #117
    Senior Member
    Join Date
    Aug 2008
    Posts
    152
    I've just found this post https://www.computeraudiophile.com/f...comment=793615 so it looks like there is a ready made image for Allo Sparky and Squeezelite-R2. Only posted yesterday, so perfect timing. I'll try that.

  8. #118
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    735
    Quote Originally Posted by badboygolf16v View Post
    I've just found this post https://www.computeraudiophile.com/f...comment=793615 so it looks like there is a ready made image for Allo Sparky and Squeezelite-R2. Only posted yesterday, so perfect timing. I'll try that.
    YEP, is from a friend of mine that did a GREAT Job in assembling some Gentoo distribution. My own squeezelite box is a Celeron machine running one of his distros.

    About sparky, he reported some problems with the network card, "solved" increasing squeezelite buffer (-b) to 256MB both in and out.
    Last edited by marcoc1712; 2018-03-11 at 19:42.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  9. #119
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    735
    Quote Originally Posted by badboygolf16v View Post
    The command line I'm using with Ralphy's squeezelite is:

    Code:
    /usr/bin/squeezelite -n USBridge -o hw:CARD=DAC,DEV=0 -a 80:4::1 -W

    You need at least to add -D for DOP.
    Last edited by marcoc1712; 2018-03-11 at 19:44.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  10. #120
    Senior Member
    Join Date
    Aug 2008
    Posts
    152
    Hi Marco, please thank your friend Antonello for his distro, good job.

    I'm now running Squeezelite-R2 as follows:

    Code:
    /usr/bin/squeezelite-R2 -f /var/log/squeezelite-R2.log -C 1 -D :u32be -o hw:CARD=DAC,DEV=0 -r 384000 -b 262144:262144 -a 499:3::0 -n GentooPlayer
    I now see the following in the log:

    Code:
    [20:09:09.202876] alsa_open:445 unable to open audio device requested format: DSD_U32_BE
    I'm guessing this means that the Oppo doesn't accept DSD over USB? I need to check the specs of the BDP-105D...

    EDIT

    I've checked with Oppo and native DSD is supported.

    Looking at the source there are a number of DSD formats:

    DSD_U32_LE
    DSD_U32_BE
    DSD_U16_LE
    DSD_U16_BE
    DSD_U8

    u8
    u16le
    u16be
    u32le
    u32be

    Maybe I should try them..? :-)

    None seem to work.

    Using -D for DoP showed that DSD64 and DSD128 are OK, but not DSD256, so I disabled DSD256 in C-3PO settings for Squeezelite-R2.
    Last edited by badboygolf16v; 2018-03-12 at 17:02.

Posting Permissions

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