Home of the Squeezebox™ & Transporter® network music players.
Page 330 of 330 FirstFirst ... 230280320328329330
Results 3,291 to 3,297 of 3297
  1. #3291
    Senior Member
    Join Date
    Nov 2009
    Location
    Duesseldorf
    Posts
    799
    Ralphy.

    Since you're in charge for squeezelite at PcP.

    Would be nice if you could compile SL with DSD-native enabled.

    I'd love to test it. (...without having to add my own binary to PcP)

    Thx.

  2. #3292
    Junior Member
    Join Date
    Jul 2014
    Location
    Austria
    Posts
    21

    Resample

    Hy,
    I start squeezelite with this option on my ThinkerBoard -> ARMBIAN 5.31 stable Ubuntu 16.04.3 LTS 4.4.73-rockchip

    /usr/bin/squeezelite-armv6hf -Z 44100 -W -c flac,pcm,mp3,ogg,aac -b 2048:4096 -a 60:16::0 -r 44100,44100 -d output=info -f /tmp/squeeze.log -p 97 -o squeeze01 -n test -m 00:00:00:00:00:01 -z

    Squeezelite v1.8.4-720
    binary was not compiled by me.

    this is my output:


    Code:
    [14:02:58.696457] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 44100 mmap: 0
    [14:02:58.697941] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [14:02:58.832436] _output_frames:62 start buffer frames: 55343
    [14:02:58.832570] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:01.005855] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:01.793444] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:03.575735] output_flush:424 flush output buffer
    [14:03:03.588612] output_flush:424 flush output buffer
    [14:03:03.813404] _output_frames:62 start buffer frames: 61103
    [14:03:03.813539] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:05.276509] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:06.007401] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:08.616983] output_flush:424 flush output buffer
    [14:03:08.620419] output_thread:781 disabling output
    [14:03:08.633761] output_flush:424 flush output buffer
    [14:03:08.725445] output_thread:664 open output device: squeeze01
    [14:03:08.725628] alsa_open:381 opening device at: 44100
    [14:03:08.736409] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 44100 mmap: 0
    [14:03:08.737888] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [14:03:08.834354] _output_frames:62 start buffer frames: 55343
    [14:03:08.834485] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:11.008763] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:11.690327] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:13.586424] output_flush:424 flush output buffer
    [14:03:13.593423] output_flush:424 flush output buffer
    [14:03:13.745325] _output_frames:62 start buffer frames: 53039
    [14:03:13.745461] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:15.207575] _output_frames:147 track start sample rate: 22050 replay_gain: 0
    [14:03:15.207754] output_thread:664 open output device: squeeze01
    [14:03:15.208840] alsa_open:381 opening device at: 22050
    [14:03:15.219581] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 22050 mmap: 0
    [14:03:15.221200] alsa_open:511 buffer: 60 period: 16 -> buffer size: 6144 period size: 767
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:18.602216] output_thread:781 disabling output
    [14:03:18.625109] output_flush:424 flush output buffer
    [14:03:18.631095] output_flush:424 flush output buffer
    [14:03:18.703036] output_thread:664 open output device: squeeze01
    [14:03:18.703166] alsa_open:381 opening device at: 22050
    [14:03:18.709716] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 22050 mmap: 0
    [14:03:18.711349] alsa_open:511 buffer: 60 period: 16 -> buffer size: 6144 period size: 767
    [14:03:18.816223] _output_frames:62 start buffer frames: 55343
    [14:03:18.816353] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:18.826403] output_thread:664 open output device: squeeze01
    [14:03:18.827249] alsa_open:381 opening device at: 44100
    [14:03:18.833424] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 44100 mmap: 0
    [14:03:18.834833] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [14:03:21.010882] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:22.278242] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:23.596942] output_flush:424 flush output buffer
    [14:03:23.603925] output_flush:424 flush output buffer
    [14:03:23.776215] _output_frames:62 start buffer frames: 62255
    [14:03:23.776336] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:25.239337] _output_frames:147 track start sample rate: 44100 replay_gain: 0

    audio works fine .... even with this message:

    Code:
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    I do not know what that means. because I can hear a clear sound.

    but not anymore if the sample rate is not 44100
    Code:
    [14:03:15.208840] alsa_open:381 opening device at: 22050
    [14:03:15.219581] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 22050 mmap: 0
    [14:03:15.221200] alsa_open:511 buffer: 60 period: 16 -> buffer size: 6144 period size: 767
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    I would like squeezelite to always play with 44100. however, sometimes this one comes with a very different sample rate in this example 22050

    is this possible to play every times 44100? Does anyone have a solution?


    Thank you so much!

  3. #3293
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    516
    Quote Originally Posted by sevi_at View Post
    Hy,
    I start squeezelite with this option on my ThinkerBoard -> ARMBIAN 5.31 stable Ubuntu 16.04.3 LTS 4.4.73-rockchip

    /usr/bin/squeezelite-armv6hf -Z 44100 -W -c flac,pcm,mp3,ogg,aac -b 2048:4096 -a 60:16::0 -r 44100,44100 -d output=info -f /tmp/squeeze.log -p 97 -o squeeze01 -n test -m 00:00:00:00:00:01 -z

    Squeezelite v1.8.4-720
    binary was not compiled by me.

    this is my output:


    Code:
    [14:02:58.696457] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 44100 mmap: 0
    [14:02:58.697941] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [14:02:58.832436] _output_frames:62 start buffer frames: 55343
    [14:02:58.832570] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:01.005855] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:01.793444] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:03.575735] output_flush:424 flush output buffer
    [14:03:03.588612] output_flush:424 flush output buffer
    [14:03:03.813404] _output_frames:62 start buffer frames: 61103
    [14:03:03.813539] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:05.276509] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:06.007401] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:08.616983] output_flush:424 flush output buffer
    [14:03:08.620419] output_thread:781 disabling output
    [14:03:08.633761] output_flush:424 flush output buffer
    [14:03:08.725445] output_thread:664 open output device: squeeze01
    [14:03:08.725628] alsa_open:381 opening device at: 44100
    [14:03:08.736409] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 44100 mmap: 0
    [14:03:08.737888] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [14:03:08.834354] _output_frames:62 start buffer frames: 55343
    [14:03:08.834485] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:11.008763] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:11.690327] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:13.586424] output_flush:424 flush output buffer
    [14:03:13.593423] output_flush:424 flush output buffer
    [14:03:13.745325] _output_frames:62 start buffer frames: 53039
    [14:03:13.745461] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:15.207575] _output_frames:147 track start sample rate: 22050 replay_gain: 0
    [14:03:15.207754] output_thread:664 open output device: squeeze01
    [14:03:15.208840] alsa_open:381 opening device at: 22050
    [14:03:15.219581] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 22050 mmap: 0
    [14:03:15.221200] alsa_open:511 buffer: 60 period: 16 -> buffer size: 6144 period size: 767
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:18.602216] output_thread:781 disabling output
    [14:03:18.625109] output_flush:424 flush output buffer
    [14:03:18.631095] output_flush:424 flush output buffer
    [14:03:18.703036] output_thread:664 open output device: squeeze01
    [14:03:18.703166] alsa_open:381 opening device at: 22050
    [14:03:18.709716] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 22050 mmap: 0
    [14:03:18.711349] alsa_open:511 buffer: 60 period: 16 -> buffer size: 6144 period size: 767
    [14:03:18.816223] _output_frames:62 start buffer frames: 55343
    [14:03:18.816353] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:18.826403] output_thread:664 open output device: squeeze01
    [14:03:18.827249] alsa_open:381 opening device at: 44100
    [14:03:18.833424] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 44100 mmap: 0
    [14:03:18.834833] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [14:03:21.010882] ALSA snd_pcm_dmix_open:1022 unable to open slave
    [14:03:22.278242] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:23.596942] output_flush:424 flush output buffer
    [14:03:23.603925] output_flush:424 flush output buffer
    [14:03:23.776215] _output_frames:62 start buffer frames: 62255
    [14:03:23.776336] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [14:03:25.239337] _output_frames:147 track start sample rate: 44100 replay_gain: 0

    audio works fine .... even with this message:

    Code:
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    I do not know what that means. because I can hear a clear sound.

    but not anymore if the sample rate is not 44100
    Code:
    [14:03:15.208840] alsa_open:381 opening device at: 22050
    [14:03:15.219581] alsa_open:432 opened device squeeze01 using format: S32_LE sample rate: 22050 mmap: 0
    [14:03:15.221200] alsa_open:511 buffer: 60 period: 16 -> buffer size: 6144 period size: 767
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    I would like squeezelite to always play with 44100. however, sometimes this one comes with a very different sample rate in this example 22050

    is this possible to play every times 44100? Does anyone have a solution?


    Thank you so much!
    You could fix the oytput sample rate to 44100 ( -r 44100, as yu already did) and enable resampling (in squeezelite or in the server), but I suppose the problem here is DMIX, it ill always resample to the 'common' sample rate. I'd use the hw device to be sure to bypass any mixer.
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  4. #3294
    Junior Member
    Join Date
    Jul 2014
    Location
    Austria
    Posts
    21

    Resample

    @marcoc1712
    Thanks for the quick reply

    Unfortunately, I need dmix, because I have to mix several sound outputs together Airplay, Spotify, MPD ...
    is it possible to set alsa - dmix fix to 44100? at Airplay, Spotify, MPD is that too why is not that at squeezelite?

    1)
    what could I change here?:
    Code:
    pcm.dmixer02 { 
        type dmix 
        ipc_key 100224
        ipc_key_add_uid false
        ipc_perm 0666
        slave { 
            pcm "snd02_card"
            period_time 0 
            period_size 1536 
            buffer_size 12288
            rate 44100
            }
            bindings { 
                    0 0 
                    1 1 
            } 
    }
    2)
    how can i enable resampling in squeezelite or in the LM server?
    my start option:
    usr/bin/squeezelite-armv6hf -Z 44100 -W -c flac,pcm,mp3,ogg,aac -b 2048:4096 -a 60:16::0 -r 44100,44100 -d output=info -f /tmp/squeeze.log -p 97 -o squeeze01 -n test -m 00:00:00:00:00:01 -z

    3)

    I still have one question left:
    Code:
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    what does that mean?


    THX

  5. #3295
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    516
    Quote Originally Posted by sevi_at View Post
    @marcoc1712
    Thanks for the quick reply

    Unfortunately, I need dmix, because I have to mix several sound outputs together Airplay, Spotify, MPD ...
    is it possible to set alsa - dmix fix to 44100? at Airplay, Spotify, MPD is that too why is not that at squeezelite?

    1)
    what could I change here?:
    Code:
    pcm.dmixer02 { 
        type dmix 
        ipc_key 100224
        ipc_key_add_uid false
        ipc_perm 0666
        slave { 
            pcm "snd02_card"
            period_time 0 
            period_size 1536 
            buffer_size 12288
            rate 44100
            }
            bindings { 
                    0 0 
                    1 1 
            } 
    }
    2)
    how can i enable resampling in squeezelite or in the LM server?
    my start option:
    usr/bin/squeezelite-armv6hf -Z 44100 -W -c flac,pcm,mp3,ogg,aac -b 2048:4096 -a 60:16::0 -r 44100,44100 -d output=info -f /tmp/squeeze.log -p 97 -o squeeze01 -n test -m 00:00:00:00:00:01 -z

    3)

    I still have one question left:
    Code:
    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
    what does that mean?


    THX

    I don't know what -Z is for in your version, but with -r 41000, 41000, you sure could only play material at 44100Hz, resampling has then no meaning here.

    To resample on the server you have many ways, have a look to C-3PO plugin, for instance, in squeezelite you could add the option (from the manual):

    -r [:] Sample rates supported, allows output to be off when squeezelite is started; rates = |-|,,; delay = optional delay switching rates in ms -R -u [params] Resample, params = ::::::, recipe = (v|h|m|l|q)(L|I|M)(s) [E|X], E = exception - resample only if native rate not supported, X = async - resample to max rate for device, otherwise to max sync rate flags = num in hex, attenuation = attenuation in dB to apply (default is -1db if not explicitly set), precision = number of bits precision (NB. HQ = 20. VHQ = 28), passband_end = number in percent (0dB pt. bandwidth to preserve. nyquist = 100%), stopband_start = number in percent (Aliasing/imaging control. > passband_end), phase_response = 0-100 (0 = minimum / 50 = linear / 100 = maximum).

    DMIX is after squeezelite and it COULD resample if it has to mix different sources with different sampling rates, Squeezelite could do nothing in that matter and AFAIK neither MPD nor any other player could change the beaviour of DMIX in that matter. The message comes form ALSA/DMIX, you should check there for errors. If you could not avoid/need DMIX you should then avoid any constraint to ALSA, that probably will results in errors. Maybe you may give a try to -C 1 option instead, that make squeezelite 'release' the audio board as soon as it stop play.
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  6. #3296
    Junior Member
    Join Date
    Jul 2014
    Location
    Austria
    Posts
    21
    @ marcoc1712

    have now given all your ideas in my start command.

    I thought that r-44100,44100 already resampled thanks for this info.
    The logfile now looks exactly like I imagine and I do not have the message anymore:

    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave

    but still happens from time to time that the sound output sounds too slow. unfortunately I have no alsa log only card output:

    Code:
    root@penner:~# cat /proc/asound/card1/pcm0p/sub0/hw_params
    access: MMAP_INTERLEAVED
    format: S16_LE
    subformat: STD
    channels: 2
    rate: 44100 (44100/1)
    period_size: 1536
    buffer_size: 12288
    Log:
    /usr/bin/squeezelite-armv6hf -C 1 -c flac,pcm,mp3,ogg,aac -b 2048:4096 -a 60:16:16:0 -r 44100,44100 -R -u hMX -d output=info -f /tmp/squeeze.log -p 97 -o squeeze01 -n undefined -m 00:00:00:00:00:01 -z
    [15:59:13.455809] output_init_alsa:865 init output
    [15:59:13.456138] output_init_alsa:895 requested alsa_buffer: 60 alsa_period: 16 format: 16 mmap: 0
    [15:59:13.456326] output_init_common:411 supported rates: 44100
    [15:59:13.469174] output_init_alsa:911 memory locked
    [15:59:25.059350] output_flush:424 flush output buffer
    [15:59:28.627262] output_flush:424 flush output buffer
    [15:59:29.290645] output_thread:664 open output device: squeeze01
    [15:59:29.290768] alsa_open:381 opening device at: 44100
    [15:59:29.296907] alsa_open:432 opened device squeeze01 using format: S16_LE sample rate: 44100 mmap: 0
    [15:59:29.298315] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [15:59:29.300606] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [15:59:31.418843] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [15:59:41.762879] output_thread:781 disabling output
    [15:59:41.768094] output_flush:424 flush output buffer
    [15:59:41.778703] output_flush:424 flush output buffer
    [15:59:41.964072] output_thread:664 open output device: squeeze01
    [15:59:41.964199] alsa_open:381 opening device at: 44100
    [15:59:41.970392] alsa_open:432 opened device squeeze01 using format: S16_LE sample rate: 44100 mmap: 0
    [15:59:41.971779] alsa_open:511 buffer: 60 period: 16 -> buffer size: 12288 period size: 1536
    [15:59:42.036785] _output_frames:62 start buffer frames: 55343
    [15:59:42.036905] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [15:59:45.345784] _output_frames:147 track start sample rate: 44100 replay_gain: 0
    [15:59:51.544768] output_thread:781 disabling output
    [15:59:51.574360] output_flush:424 flush output buffer
    [15:59:51.580213] output_flush:424 flush output buffer
    all identical I think it should look like this, however, I still sometimes have a wrong sound output -> too slow and the editions still look like this.
    The only problem I have with Squeezlite I've never had that on MPD with the same soundfiles or internet radio stations.

    would the C-3PO plugin change or solve the problem?
    I still need squeezelite-R2 or does the plugin work on my now used Squeezelite v1.8.4-720?
    what is the difference to -R -u hMX option and C-3PO plugin?
    I had already played with the thought that I switch to DSD but i think the PCM2902C chip on my soundcard not Support this.
    which possibilities do I have to get the problem under control..... maybe with PulseAudio or Jack?

    THX for your experiences

  7. #3297
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    516
    Quote Originally Posted by sevi_at View Post
    @ marcoc1712

    have now given all your ideas in my start command.

    I thought that r-44100,44100 already resampled thanks for this info.
    Nope, it does not resample, but make you sure that material with different sample rate is rejected.


    Quote Originally Posted by sevi_at View Post
    The logfile now looks exactly like I imagine and I do not have the message anymore:

    [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave

    but still happens from time to time that the sound output sounds too slow. unfortunately I have no alsa log only card output:

    Code:
    root@penner:~# cat /proc/asound/card1/pcm0p/sub0/hw_params
    access: MMAP_INTERLEAVED
    format: S16_LE
    subformat: STD
    channels: 2
    rate: 44100 (44100/1)
    period_size: 1536
    buffer_size: 12288
    Log:


    all identical I think it should look like this, however, I still sometimes have a wrong sound output -> too slow and the editions still look like this.
    The only problem I have with Squeezlite I've never had that on MPD with the same soundfiles or internet radio stations.

    would the C-3PO plugin change or solve the problem?
    No, just becouse you only accept 4100 material, C-3PO could not send different sampling rate.

    But sound too slow, could mean wrong sample rate. Are you playng pcm (wav or AIFF) files or streams at sample rate <> 44100 (maybe 48Khz?) transcoded in convert.conf? That could be the origin of your problem and, yes, in this case C-3PO could help you better organize transcoding.

    Quote Originally Posted by sevi_at View Post
    I still need squeezelite-R2 or does the plugin work on my now used Squeezelite v1.8.4-720?
    I think Squeezelite v1.8.4-720 already has -W option, that is exactly the same as R2 (but DSD).


    Quote Originally Posted by sevi_at View Post
    what is the difference to -R -u hMX option and C-3PO plugin?
    One is resampling using the client CPU, the other the server. In quality... who knows, both uses SOX (one libsoxR the other SOX), but other than the engine, difference in settings have more chance to affect the sound.

    Quote Originally Posted by sevi_at View Post
    I had already played with the thought that I switch to DSD but i think the PCM2902C chip on my soundcard not Support this.
    Don't know, sorry.

    Quote Originally Posted by sevi_at View Post
    which possibilities do I have to get the problem under control..... maybe with PulseAudio or Jack?
    Wich one? the 'too slow'? I think you should first detect wich component is wrong with sample rate, if DMIX, probably pulse or jack could solve, but is a long chain to follow and I'm not so strong in this matter.

    Quote Originally Posted by sevi_at View Post
    THX for your experiences
    you'r welcome!
    Last edited by marcoc1712; Yesterday at 14:22.
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

Posting Permissions

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