Should not, except for strange configs in your container configs.
Way to play and control music directly from server (webUI or remote controller) to the connected usb DAC
-
- OMV 5.x
- gelöst
- godzinilla
-
-
Should not, except for strange configs in your container configs.
Oh man, I do not know If I should or should not do this
I have a one, additional question about running - let's named it - "additional applications" - is it possible to create a virtual machine or something
similar (Docker, right, but as we know from this thread it is not quite sufficient for jobs like this) which will work independent than OMV system and install there some complete hifi system such as HiFiBerry or piCorePlayer?
-
Honestly, I do not know, if there is anything for the pi.
-
As first, thanks to all users which have been involved into this thread. Especially chente and Zoki. I really appreciate that. Thank you!
The last stand for me - before I get rid of all it from my OMV server - is to try to configure Logitech Media Server with Squeezelite. Maybe we have here an user who is familiar with this software and will give me a hand with proper configuration.
So I have this docker-compose for the LMS for Docker:Code
Alles anzeigenversion: '3' services: lms: container_name: lms image: lmscommunity/logitechmediaserver environment: - PUID=1001 # user1 - GUID=100 # users - HTTP_PORT=9001 # because it is automatically created and set by default to 9000 while deploying without it volumes: - /srv/dev-disk-by-uuid-12345/CONFIG/lms:/config:rw - /srv/dev-disk-by-uuid-54321:/music:ro - /srv/dev-disk-by-uuid-54321/PLAYLISTS:/playlist:rw - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro ports: - 9001:9001/tcp - 9091:9091/tcp - 3483:3483/tcp - 3483:3483/udp # not sure if 'devices' is needed in this case devices: - /dev/snd:/dev/snd restart: always
LMS container is deployed and running, but before accessing via http://serverip:9001 I am removing additional PGID:100 Env variable which was added by default (?) to the container setup. Anyway, the webGUI container loading with or without it.
After installation I have found in the internet that I need to install plugin (inside the LMS) named LocalPlayer, description of the plugin is:
ZitatLocal playback from your server computer using the Squeezelite software emulator. This plugin uses Squeezelite to playback through the audio output of your server computer. The player can be controlled from the server's web interface or other Squeezebox controller applications. Note: the plugin will only support servers or NAS devices with Intel or ARM processors.
so the LocalPlayer plugin is installed and updated (there is an update available just after installation).
Restart of the LMS container (just to be sure everything is OK).
Next, as the LocalPlayer description said, we need to install squeezelite package from debian repositories (I believe there is no need to add other repository, as the squeezelite-pa repository is available in Debian's repo). So under bash:
Code
Alles anzeigenroot$ > apt-get install squeezelite-pa Czytanie list pakietów... Gotowe Budowanie drzewa zależności Odczyt informacji o stanie... Gotowe The following additional packages will be installed: libfaad2 liblirc-client0 libmad0 libportaudio2 Sugerowane pakiety: lirc Zostaną zainstalowane następujące NOWE pakiety: libfaad2 liblirc-client0 libmad0 libportaudio2 squeezelite-pa 0 aktualizowanych, 5 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych. Konieczne pobranie 0 B/435 kB archiwów. Po tej operacji zostanie dodatkowo użyte 1 219 kB miejsca na dysku. Kontynuować? [T/n] t Wybieranie wcześniej niewybranego pakietu libfaad2:amd64. (Odczytywanie bazy danych ... 102135 plików i katalogów obecnie zainstalowanych. ) Przygotowywanie do rozpakowania pakietu .../libfaad2_2.8.8-3_amd64.deb ... Rozpakowywanie pakietu libfaad2:amd64 (2.8.8-3) ... Wybieranie wcześniej niewybranego pakietu liblirc-client0:amd64. Przygotowywanie do rozpakowania pakietu .../liblirc-client0_0.10.1-6.3~deb10u1_a md64.deb ... Rozpakowywanie pakietu liblirc-client0:amd64 (0.10.1-6.3~deb10u1) ... Wybieranie wcześniej niewybranego pakietu libmad0:amd64. Przygotowywanie do rozpakowania pakietu .../libmad0_0.15.1b-10_amd64.deb ... Rozpakowywanie pakietu libmad0:amd64 (0.15.1b-10) ... Wybieranie wcześniej niewybranego pakietu libportaudio2:amd64. Przygotowywanie do rozpakowania pakietu .../libportaudio2_19.6.0-1+deb10u1_amd64 .deb ... Rozpakowywanie pakietu libportaudio2:amd64 (19.6.0-1+deb10u1) ... Wybieranie wcześniej niewybranego pakietu squeezelite-pa. Przygotowywanie do rozpakowania pakietu .../squeezelite-pa_1.8-4.1+b1_amd64.deb ... Rozpakowywanie pakietu squeezelite-pa (1.8-4.1+b1) ... Konfigurowanie pakietu libportaudio2:amd64 (19.6.0-1+deb10u1) ... Konfigurowanie pakietu liblirc-client0:amd64 (0.10.1-6.3~deb10u1) ... Konfigurowanie pakietu libfaad2:amd64 (2.8.8-3) ... Konfigurowanie pakietu libmad0:amd64 (0.15.1b-10) ... Konfigurowanie pakietu squeezelite-pa (1.8-4.1+b1) ... Przetwarzanie wyzwalaczy pakietu systemd (241-7~deb10u8)... Przetwarzanie wyzwalaczy pakietu man-db (2.8.5-2)... Przetwarzanie wyzwalaczy pakietu libc-bin (2.28-10)...
(Polish and English language are mixed up in my SSH, I don't know why, sorry) - all installed packages are: libfaad2, liblirc-client0, libmad0, libportaudio2, squeezelite-pa.
Restart of the LMS container (to communicate with newly installed packages - not sure if this is required or not).
After opening LMS webGUI my OMV server name appears in the upper right dropdown (where all available devices are listed; it is not listed there when squeezelite is not installed):
So let's try to play some music:
Music can be loaded and looks like it is played, but no sound on the iFi Zen Dac.
-
(continuation of the post)
So let's check if squeezelite is runing and if it see my device:
Bash
Alles anzeigen$ > squeezelite --help Option error: --help Squeezelite v1.8, Copyright 2012-2015 Adrian Smith. See -t for license terms Usage: squeezelite [options] -s <server>[:<port>] Connect to specified server, otherwise uses autodiscovery to find server -o <output device> Specify output device, default "default", - = output to stdout -l List output devices -a <l> Specify Portaudio params to open output device, l = target latency in ms -a <f> Specify sample format (16|24|32) of output file when using -o - to output samples to stdout (interleaved little endian only) -b <stream>:<output> Specify internal Stream and Output buffer sizes in Kbytes -c <codec1>,<codec2> Restrict codecs to those specified, otherwise load all available codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec) -C <timeout> Close output device when idle after timeout seconds, default is to keep it open while player is 'on' -d <log>=<level> Set logging level, logs: all|slimproto|stream|decode|output|ir, level: info|debug|sdebug -e <codec1>,<codec2> Explicitly exclude native support of one or more codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec) -f <logfile> Write debug to logfile -i [<filename>] Enable lirc remote control support (lirc config file ~/.lircrc used if filename not specified) -m <mac addr> Set mac address, format: ab:cd:ef:12:34:56 -M <modelname> Set the squeezelite player model name sent to the server (default: SqueezeLite) -n <name> Set the player name -N <filename> Store player name in filename to allow server defined name changes to be shared between servers (not supported with -n) -P <filename> Store the process id (PID) in filename -r <rates>[:<delay>] Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms -R -u [params] Resample, params = <recipe>:<flags>:<attenuation>:<precision>:<passband_end>:<stopband_start>:<phase_response>, 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) -D [delay] Output device supports DSD over PCM (DoP), delay = optional delay switching between PCM and DoP in ms -v Visualiser support -z Daemonize -t License terms -? Display this help text Build options: LINUX PORTAUDIO EVENTFD RESAMPLE FFMPEG VISEXPORT IR DSD LINKALL
Bash
Alles anzeigen$ > squeezelite -l ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Output devices: 0 - HDA NVidia: HDMI 1 (hw:0,7) [ALSA] 1 - HDA NVidia: HDMI 2 (hw:0,8) [ALSA] 2 - HDA NVidia: HDMI 3 (hw:0,9) [ALSA] 3 - HDA NVidia: HDMI 4 (hw:0,10) [ALSA] 4 - HDA NVidia: HDMI 5 (hw:0,11) [ALSA] 5 - iFi (by AMR) HD USB Audio: - (hw:1,0) [ALSA]
As you can see there are some weird errors. I believe pcm-related errors comes from built-in audio card, which currently is disabled in my bios.
On the Output devices: section my device is listed in 5 row: 5 - iFi (by AMR) HD USB Audio: - (hw:1,0) [ALSA], so looks like the squeezelite recognized it correctly.
-
(continuation of the post)
As there is an option -o to set the output device, I have tried to run squeezelite -o 5 command. Output:
Bash
Alles anzeigen$ > squeezelite -o 5 ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2722 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2722 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2722 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2722 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2722 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2722 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2722 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843
and looks like process is hang, or waiting for something. After about 5 minutes of waiting I stopped it with CTRL+Z.
iFi is still on, but output of squeezelite -l looks as follow now:
Bash
Alles anzeigen$ > squeezelite -l ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Output devices: 0 - HDA NVidia: HDMI 1 (hw:0,7) [ALSA] 1 - HDA NVidia: HDMI 2 (hw:0,8) [ALSA] 2 - HDA NVidia: HDMI 3 (hw:0,9) [ALSA] 3 - HDA NVidia: HDMI 4 (hw:0,10) [ALSA] 4 - HDA NVidia: HDMI 5 (hw:0,11) [ALSA]
As you can see my device dissapeared. I need to reconnect it to be recognized by squeezelite -l again.
So I am stuck here and do not know what should I do next.
Please advise
-
So I re-check all the output I have provided you and:
1. sudo apt-get install libjack0 - to get rid of:
- jack server is not running or cannot be started,
- JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock,
- JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock.
2. sudo apt-get install alsa-tools alsa-utils - it is not installed, so that is why it keeps erroring with all ALSA stuff.
3. uninstalled squeezelite-pa and installed squeezelite.
And now it looks as follows:
Bash
Alles anzeigen$ > aplay -l **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [iFi (by AMR) HD USB Audio], device 0: USB Audio [USB Audio] Subdevices: 0/1 Subdevice #0: subdevice #0
Bash
Alles anzeigen$ > squeezelite -l Output devices: default - Playback/recording through the PulseAudio sound server null - Discard all samples (playback) or generate zero samples (capture) jack - JACK Audio Connection Kit pulse - PulseAudio Sound Server hdmi:CARD=NVidia,DEV=0 - HDA NVidia, HDMI 0 - HDMI Audio Output hdmi:CARD=NVidia,DEV=1 - HDA NVidia, HDMI 1 - HDMI Audio Output hdmi:CARD=NVidia,DEV=2 - HDA NVidia, HDMI 2 - HDMI Audio Output hdmi:CARD=NVidia,DEV=3 - HDA NVidia, HDMI 3 - HDMI Audio Output hdmi:CARD=NVidia,DEV=4 - HDA NVidia, HDMI 4 - HDMI Audio Output hdmi:CARD=NVidia,DEV=5 - HDA NVidia, HDMI 5 - HDMI Audio Output dmix:CARD=NVidia,DEV=3 - HDA NVidia, HDMI 0 - Direct sample mixing device dmix:CARD=NVidia,DEV=7 - HDA NVidia, HDMI 1 - Direct sample mixing device dmix:CARD=NVidia,DEV=8 - HDA NVidia, HDMI 2 - Direct sample mixing device dmix:CARD=NVidia,DEV=9 - HDA NVidia, HDMI 3 - Direct sample mixing device dmix:CARD=NVidia,DEV=10 - HDA NVidia, HDMI 4 - Direct sample mixing device dmix:CARD=NVidia,DEV=11 - HDA NVidia, HDMI 5 - Direct sample mixing device dsnoop:CARD=NVidia,DEV=3 - HDA NVidia, HDMI 0 - Direct sample snooping device dsnoop:CARD=NVidia,DEV=7 - HDA NVidia, HDMI 1 - Direct sample snooping device dsnoop:CARD=NVidia,DEV=8 - HDA NVidia, HDMI 2 - Direct sample snooping device dsnoop:CARD=NVidia,DEV=9 - HDA NVidia, HDMI 3 - Direct sample snooping device dsnoop:CARD=NVidia,DEV=10 - HDA NVidia, HDMI 4 - Direct sample snooping device dsnoop:CARD=NVidia,DEV=11 - HDA NVidia, HDMI 5 - Direct sample snooping device hw:CARD=NVidia,DEV=3 - HDA NVidia, HDMI 0 - Direct hardware device without any conversions hw:CARD=NVidia,DEV=7 - HDA NVidia, HDMI 1 - Direct hardware device without any conversions hw:CARD=NVidia,DEV=8 - HDA NVidia, HDMI 2 - Direct hardware device without any conversions hw:CARD=NVidia,DEV=9 - HDA NVidia, HDMI 3 - Direct hardware device without any conversions hw:CARD=NVidia,DEV=10 - HDA NVidia, HDMI 4 - Direct hardware device without any conversions hw:CARD=NVidia,DEV=11 - HDA NVidia, HDMI 5 - Direct hardware device without any conversions plughw:CARD=NVidia,DEV=3 - HDA NVidia, HDMI 0 - Hardware device with all software conversions plughw:CARD=NVidia,DEV=7 - HDA NVidia, HDMI 1 - Hardware device with all software conversions plughw:CARD=NVidia,DEV=8 - HDA NVidia, HDMI 2 - Hardware device with all software conversions plughw:CARD=NVidia,DEV=9 - HDA NVidia, HDMI 3 - Hardware device with all software conversions plughw:CARD=NVidia,DEV=10 - HDA NVidia, HDMI 4 - Hardware device with all software conversions plughw:CARD=NVidia,DEV=11 - HDA NVidia, HDMI 5 - Hardware device with all software conversions usbstream:CARD=NVidia - HDA NVidia - USB Stream Output sysdefault:CARD=Audio - iFi (by AMR) HD USB Audio, USB Audio - Default Audio Device front:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - Front speakers surround21:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - 4.0 Surround output to Front and Rear speakers surround41:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - IEC958 (S/PDIF) Digital Audio Output dmix:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - Direct sample mixing device dsnoop:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - Direct sample snooping device hw:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - Direct hardware device without any conversions plughw:CARD=Audio,DEV=0 - iFi (by AMR) HD USB Audio, USB Audio - Hardware device with all software conversions usbstream:CARD=Audio - iFi (by AMR) HD USB Audio - USB Stream Output
But if i try to select device using aplay --device plughw:CARD=Audio,DEV=0:
Code$ > aplay --device plughw:CARD=Audio,DEV=0 ^Z [4]+ Zatrzymano aplay --device plughw:CARD=Audio,DEV=0 $ > aplay --device plughw:CARD=Audio,DEV=0 aplay: main:828: audio open error: Urządzenie lub zasoby zajęte
first it hangs up, and after stoping it and trying again it indicates, that device is busy.
It looks almost the same for squeezelite -o plughw:CARD=Audio,DEV=0:
-
Additional information:
I borrowed RPI3B+, installed piCorePlayer 8.1.0 standard version. I managed to configure it to communicate (and play music) to my iFi Zen Dac without any problems.
On my OMV machine I have checked also the other dac that I have own - Lotoo Paw S1. And there is exactly the same situation as for iFi:
Bash
Alles anzeigen$ > aplay -L null Discard all samples (playback) or generate zero samples (capture) jack JACK Audio Connection Kit pulse PulseAudio Sound Server default hdmi:CARD=NVidia,DEV=0 HDA NVidia, HDMI 0 HDMI Audio Output hdmi:CARD=NVidia,DEV=1 HDA NVidia, HDMI 1 HDMI Audio Output hdmi:CARD=NVidia,DEV=2 HDA NVidia, HDMI 2 HDMI Audio Output hdmi:CARD=NVidia,DEV=3 HDA NVidia, HDMI 3 HDMI Audio Output hdmi:CARD=NVidia,DEV=4 HDA NVidia, HDMI 4 HDMI Audio Output hdmi:CARD=NVidia,DEV=5 HDA NVidia, HDMI 5 HDMI Audio Output dmix:CARD=NVidia,DEV=3 HDA NVidia, HDMI 0 Direct sample mixing device dmix:CARD=NVidia,DEV=7 HDA NVidia, HDMI 1 Direct sample mixing device dmix:CARD=NVidia,DEV=8 HDA NVidia, HDMI 2 Direct sample mixing device dmix:CARD=NVidia,DEV=9 HDA NVidia, HDMI 3 Direct sample mixing device dmix:CARD=NVidia,DEV=10 HDA NVidia, HDMI 4 Direct sample mixing device dmix:CARD=NVidia,DEV=11 HDA NVidia, HDMI 5 Direct sample mixing device dsnoop:CARD=NVidia,DEV=3 HDA NVidia, HDMI 0 Direct sample snooping device dsnoop:CARD=NVidia,DEV=7 HDA NVidia, HDMI 1 Direct sample snooping device dsnoop:CARD=NVidia,DEV=8 HDA NVidia, HDMI 2 Direct sample snooping device dsnoop:CARD=NVidia,DEV=9 HDA NVidia, HDMI 3 Direct sample snooping device dsnoop:CARD=NVidia,DEV=10 HDA NVidia, HDMI 4 Direct sample snooping device dsnoop:CARD=NVidia,DEV=11 HDA NVidia, HDMI 5 Direct sample snooping device hw:CARD=NVidia,DEV=3 HDA NVidia, HDMI 0 Direct hardware device without any conversions hw:CARD=NVidia,DEV=7 HDA NVidia, HDMI 1 Direct hardware device without any conversions hw:CARD=NVidia,DEV=8 HDA NVidia, HDMI 2 Direct hardware device without any conversions hw:CARD=NVidia,DEV=9 HDA NVidia, HDMI 3 Direct hardware device without any conversions hw:CARD=NVidia,DEV=10 HDA NVidia, HDMI 4 Direct hardware device without any conversions hw:CARD=NVidia,DEV=11 HDA NVidia, HDMI 5 Direct hardware device without any conversions plughw:CARD=NVidia,DEV=3 HDA NVidia, HDMI 0 Hardware device with all software conversions plughw:CARD=NVidia,DEV=7 HDA NVidia, HDMI 1 Hardware device with all software conversions plughw:CARD=NVidia,DEV=8 HDA NVidia, HDMI 2 Hardware device with all software conversions plughw:CARD=NVidia,DEV=9 HDA NVidia, HDMI 3 Hardware device with all software conversions plughw:CARD=NVidia,DEV=10 HDA NVidia, HDMI 4 Hardware device with all software conversions plughw:CARD=NVidia,DEV=11 HDA NVidia, HDMI 5 Hardware device with all software conversions usbstream:CARD=NVidia HDA NVidia USB Stream Output sysdefault:CARD=PAWS1 PAW-S1, USB Audio Default Audio Device front:CARD=PAWS1,DEV=0 PAW-S1, USB Audio Front speakers surround21:CARD=PAWS1,DEV=0 PAW-S1, USB Audio 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=PAWS1,DEV=0 PAW-S1, USB Audio 4.0 Surround output to Front and Rear speakers surround41:CARD=PAWS1,DEV=0 PAW-S1, USB Audio 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=PAWS1,DEV=0 PAW-S1, USB Audio 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=PAWS1,DEV=0 PAW-S1, USB Audio 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=PAWS1,DEV=0 PAW-S1, USB Audio 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=PAWS1,DEV=0 PAW-S1, USB Audio IEC958 (S/PDIF) Digital Audio Output dmix:CARD=PAWS1,DEV=0 PAW-S1, USB Audio Direct sample mixing device dsnoop:CARD=PAWS1,DEV=0 PAW-S1, USB Audio Direct sample snooping device hw:CARD=PAWS1,DEV=0 PAW-S1, USB Audio Direct hardware device without any conversions plughw:CARD=PAWS1,DEV=0 PAW-S1, USB Audio Hardware device with all software conversions usbstream:CARD=PAWS1 PAW-S1 USB Stream Output $ > aplay -D plughw:CARD=PAWS1,DEV=0 ^CAborted by signal Przerwanie... ^Z [1]+ Zatrzymano aplay -D plughw:CARD=PAWS1,DEV=0 $ > aplay -D plughw:CARD=PAWS1,DEV=0 aplay: main:828: audio open error: Urządzenie lub zasoby zajęte
So now I am 100% sure that this problem is not related to my DAC devices but with my OMV system.
Is anyone here familiar with ALSAa and overall all audio based stuff working under OMV?
-
No idea about audio, but ypu can use strace to check where it hangs.
-
No idea about audio, but ypu can use strace to check where it hangs.
Thank you. How to invoke this command and what to look for? I have run just strace df -h - nothing alsa-referred found.
-
strace aplay -D plughw:CARD=PAWS1,DEV=0 should tell you on which call it hangs.
-
strace aplay -D plughw:CARD=PAWS1,DEV=0 should tell you on which call it hangs.
I got it, can I attach here .txt file with full output? Is it safe?
Last lines before hang:Code
Alles anzeigenioctl(4, SNDRV_PCM_IOCTL_INFO, 0x7ffe19b27780) = 0 rt_sigaction(SIGINT, {sa_handler=0x561e90d38310, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc07b82c840}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGTERM, {sa_handler=0x561e90d38310, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc07b82c840}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGABRT, {sa_handler=0x561e90d38310, sa_mask=[ABRT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc07b82c840}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGUSR1, {sa_handler=0x561e90d34e30, sa_mask=[USR1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fc07b82c840}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 fstat(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0), ...}) = 0 read(0, "\n", 24) = 1 read(0, "\n", 23) = 1 read(0, "\n", 22) = 1 read(0, "\n", 21) = 1 read(0, "\n", 20) = 1 read(0, "\n", 19) = 1 read(0, "\n", 18) = 1 read(0, "\n", 17) = 1 read(0, "\n", 16) = 1 read(0, "\n", 15) = 1 read(0, "\n", 14) = 1 read(0, "\n", 13) = 1 read(0,
-
I am leaving this problem right now for Raspberry Pi, but I will check if it would appear again on freshly installed instance of OMV:
- if no - is there a way to safely reinstall OMV system without loosing all setup, data, etc.?
- if yes - where should I report this problem?
-
I borrowed RPI3B+, installed piCorePlayer 8.1.0 standard version. I managed to configure it to communicate (and play music) to my iFi Zen Dac without any problems.
And you did this with the same setting:
RaspiOS Lite Buster with OMV5?
Or the IMG just install the needed files for that specific case?
So now I am 100% sure that this problem is not related to my DAC devices but with my OMV system.
Is anyone here familiar with ALSAa and overall all audio based stuff working under OMV?
I've lost track of the whole thread but this really makes no sense.
If I remember, you're trying to do this via docker, correct?
So, why would OMV be at fault for you not beeing able to pass the DAC to docker?
The DAC is controlled by the underlaying OS (RaspiOS or Debian) and then is passed to the docker container.
If you really want to figure out where it's going wrong, you should start asking in their respective foruns.
Either on the Pi/Debian forum or the github page of the image container you want to use.
Seasons Greetings
-
So after my last post, at about the end of the previous year I have finally managed to get it to work. I am not 100% sure now if the below scenario is correct - I was not have time to write it just after configuring, so now I may not remember it exactly - sorry for that. But If you guys want to achieve this and encounter some problems during it - please share with us - we will try to resolve it together
1. As first I completely removed the pulseaudio and squeezelite services from my system using - as far as I remember:
sudo apt-get remove pulseaudio and sudo apt-get remove squeezelite. For both uninstallation process there was an information about dependencies packages which will not being removed and user need to remove it manually using apt-get autoremove. After performing autoremove command I rebooted my machine.
2. As second I reinstalled the pulseaudio. Just after installation I have found that the communication with my device is still problematic (the device or resource busy problem) and there are a lot of other, strange problems. I have finally found a solution for this - removing the ~./config/pulse/default.pa file and performing the pulseaudio -vvvvv comand to restart/reload the pulseaudio. After that I have finally working pulseaudio process with ability to comunicate with my device without problems (eg. setting volume).
3. Now there should be some steps with installing packages squeezelite and squeezelite-pa, installing docker version of the Logitech Media Server (using image lmscommunity/logitechmediaserver) and blacklisting the built-in audio card of my machine. But I do not remember now all the steps which I performed. While messing around with it I noticed that when using squeezelite or squeezelite-pa packages I am able to play music in Logitech Media Server to my device but audio comes from it only after clicking on the progress bar of currently playing track (in any place on it). No audio for just playing selected track or skipping tracks. So I kept looking for an solution and finally I found it.. the giof71/squeezelite image for Docker
4. giof71/squeezelite-docker - the description is simple and clear. I have not tested it with the SQUEEZELITE_AUDIO_DEVICE=default value yet, but I know that my device is found under my system as hw:CARD=Audio,DEV=0 (or plughw:CARD=Audio,DEV=0) so I leaved it like this. The SQUEEZELITE_SERVER_PORT leave empty for auto discover of your LMS server or place the IP:port addres here. SQUEEZELITE_NAME=your_custom_endpointdevice_name - name it as you want. I have named it just iFi Zen Dac. Deploy the container. INFO: for the auto discovery function you should have already configured Logitech Media Server. Otherwise the container need to be restarted after configuring LMS.
5. Installing Logitech Media Server using docker/portainer. I have used following image: lmscommunity/logitechmediaserver - this is an official image. The configuration is also simple. Just after installing you should at least load the library im LMS settings. This step may be performed before installing squeezelite from Step 4.
Finally - test the connection with your device. In Logitech Media Server your device custom name should be now selectable. Sleect it, turn it ON (physically and in Logitech Media Server) and play some music. Music should be played without problems right now.
Now it is time for configuration of LMS - as you may found there were A LOT of options and addons there
Thanks!
The last word
I am very happy with my setup right now. I am able to play my music or radio stations directly from my server. The quality is superb - squeezelite and LMS are bit-perfect capable (as default). The GUI of the LMS (especially in the Material skin) is great and simple to use. It is a lot responsed and user-friendly than Airsonic. And running it on my server machine instead of RaspberryPi 0W or Raspberry Pi 3B+ in final effect is a lot quicker and responsive.
-
chente
Hat das Label gelöst hinzugefügt.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!