Home of the Squeezebox™ & Transporter® network music players.
Page 7 of 7 FirstFirst ... 567
Results 61 to 66 of 66
  1. #61
    Senior Member
    Join Date
    Sep 2009
    Location
    Denmark
    Posts
    133
    Quote Originally Posted by marcoc1712 View Post
    No, you need to investigate the input file (or stream) to determinate the sample rate. I implemented this in C-3PO plugin, you could have a look at it, is in the third party plugin lis in LMS.
    Hi Marco - thank you for your help and for making the C-3PO plugin. Are you a Star Wars fan? :-)

    I just wish to mention here that, as I enter LMS -> Settings -> Plugin menu, the C-3PO Transcoding Helper plugin is already listed. No need to add a third party repository, it seems like (or am I mistaken here?). I just enabled it and look forward to testing it.

    /Claus

  2. #62
    Senior Member
    Join Date
    Sep 2009
    Location
    Denmark
    Posts
    133
    Here's my settings for C-3PO:

    Name:  C-3PO_settings.jpg
Views: 222
Size:  117.7 KBName:  C-3PO_piCorePlayer.jpg
Views: 221
Size:  119.5 KB

    /Claus

  3. #63
    Senior Member
    Join Date
    Sep 2009
    Location
    Denmark
    Posts
    133
    I received nothing but noise out of the above settings.

    I then removed the support for low PCM sample rates: 8000 - 16000 - 24000 - 32000 ... I have no use for them. I also changed output format to uncompressed FLAC (from basic WAV). Now it plays fine.

    [EDIT] ... I also removed the output formats of 44.1 and 48 kHz, forcing output to be upsampled, I think.

    Is there a way in piCorePlayere that I can see what stream it is receiving? (= i.e. check that the upsampling works on the server side)

    [ANOTHER EDIT] ... Not sure, but I think currently the output is forced to 24 bit. That's what I gather from looking at the settings for C-3PO, because under Output bit depth, dithering it says 3 byte = 24 bit.

    /Claus
    Last edited by cfuttrup; 2018-12-27 at 13:20.

  4. #64
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    688
    Quote Originally Posted by cfuttrup View Post
    I received nothing but noise out of the above settings.

    I then removed the support for low PCM sample rates: 8000 - 16000 - 24000 - 32000 ... I have no use for them. I also changed output format to uncompressed FLAC (from basic WAV). Now it plays fine.
    To output upsampled PCM you need the R2 modification to be active, that means, in standard Squeezelite, you need to add -W option, in Squeeezelite-R2 is enabled by default.
    That's why the white noise.

    Quote Originally Posted by cfuttrup View Post
    [EDIT] ... I also removed the output formats of 44.1 and 48 kHz, forcing output to be upsampled, I think.
    Correct

    Quote Originally Posted by cfuttrup View Post
    Is there a way in piCorePlayere that I can see what stream it is receiving? (= i.e. check that the upsampling works on the server side)
    Enable Squeezelite log and look for something like this:

    Code:
    Content-Type: audio/L16
    
    [13:09:56.031217] sendRESP:202 RESP
    
    [13:09:56.349297] _check_header:77 WAVE
    
    [13:09:56.349356] _check_header:101 header: fmt len: 40
    
    [13:09:56.349381] _check_header:143 pcm size: 3 rate: 192000 chan: 2 bigendian: 0
    
    [13:09:56.349425] _check_header:101 header: fact len: 4
    
    [13:09:56.349450] _check_header:101 header: data len: -2016005086
    
    [13:09:56.349473] _check_header:114 unknown or invalid audio size, reading up to EOF
    
    [13:09:56.349495] pcm_decode:214 setting track_start
    
    [13:09:56.357468] _output_frames:61 start buffer frames: 65522
    
    [13:09:56.357547] _output_frames:146 track start sample rate: 192000 replay_gain: 0
    Quote Originally Posted by cfuttrup View Post
    [ANOTHER EDIT] ... Not sure, but I think currently the output is forced to 24 bit. That's what I gather from looking at the settings for C-3PO, because under Output bit depth, dithering it says 3 byte = 24 bit.
    Yes, correct, but this is the output from SOX/LMS, the otput to the sound card is determinated by the settings in squeezelite.

    /Claus[/QUOTE]
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  5. #65
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (RE) Italy
    Posts
    688
    Quote Originally Posted by cfuttrup View Post
    Hi Marco - thank you for your help and for making the C-3PO plugin. Are you a Star Wars fan? :-)
    Not really a fan, I like it, but I most like George Lucas raise against the major's power, this is my tribute to a free man.[/QUOTE]

    Quote Originally Posted by cfuttrup View Post
    I just wish to mention here that, as I enter LMS -> Settings -> Plugin menu, the C-3PO Transcoding Helper plugin is already listed. No need to add a third party repository, it seems like (or am I mistaken here?). I just enabled it and look forward to testing it.

    /Claus
    Is listed in the "3rd party plugins" section, that's what I meant, no needs (anymore) to add a repository.
    __________________________________________________ ______________________
    Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it

  6. #66
    Senior Member
    Join Date
    Sep 2009
    Location
    Denmark
    Posts
    133
    Hi all

    Just to give feedback about my experiments. I found it confusing to have multiple upsampling options and therefore disabled the C-3PO plugin (in LMS). I wish that I could somewhere in Jivelite (on the 7 inch screen I have connected, or elsewhere) could read the live-feed on the I2S GPIO. Instead I now use the SoX in piCorePlayer. It seems to me the best settings (in my case) are:

    Max sample rate: 88200,96000,176400,192000

    Upsample setting: v::4:28:95:105:45

    These are from Archimago (he named them Goldilocks settings). Only difference is I don't specify 44100 and 48000. Supposedly this means any such input will be upsampled - I confirm, piCorePlayer is fine with 44.1 and 48 kHz input.

    Cheers,
    Claus
    Last edited by cfuttrup; 2019-01-09 at 10:26.

Posting Permissions

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