Utilising my NUC's 3.5mm jack as a media player

Hi everyone, I know this has been raised before and I tried follow the guide to install local VLC, but this fails with the below supervisor error. Just wondered if this is still the easiest solution to play media (internet radio) to the audio output of the host PC? Thanks for advice, as always.

#5 extracting sha256:c9b1b535fdd91a9855fb7f82348177e5f019329a58c53c47272962dd60f71fc9
#5 sha256:57fc5239478654d8ffe845ad42b705faf1453ca49baa25aea8adbc36c252e02f 4.70MB / 4.70MB 2.0s done
#5 extracting sha256:c9b1b535fdd91a9855fb7f82348177e5f019329a58c53c47272962dd60f71fc9 0.3s done
#5 extracting sha256:a36be90649c0fd2bfdd510d4ec13152fbb23f5b09a67e0382d57a43a24d5d60e
#5 extracting sha256:a36be90649c0fd2bfdd510d4ec13152fbb23f5b09a67e0382d57a43a24d5d60e done
#5 extracting sha256:57fc5239478654d8ffe845ad42b705faf1453ca49baa25aea8adbc36c252e02f
#5 extracting sha256:57fc5239478654d8ffe845ad42b705faf1453ca49baa25aea8adbc36c252e02f 1.4s done
#5 DONE 6.8s
#6 [2/8] RUN apk update
#6 1.397 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
#6 1.915 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
#6 2.410 fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
#6 2.662 fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
#6 2.664 ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/main: UNTRUSTED signature
#6 2.664 WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory
#6 2.919 ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/community: UNTRUSTED signature
#6 2.919 WARNING: Ignoring APKINDEX.b53994b4.tar.gz: No such file or directory
#6 2.919 fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
#6 3.188 ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/testing: UNTRUSTED signature
#6 3.188 WARNING: Ignoring APKINDEX.30e6f5af.tar.gz: No such file or directory
#6 3.300 v3.11.13-12-g2cfa91a2b4 [http://dl-cdn.alpinelinux.org/alpine/v3.11/main]
#6 3.300 v3.11.11-124-gf2729ece5a [http://dl-cdn.alpinelinux.org/alpine/v3.11/community]
#6 3.300 3 errors; 11292 distinct packages available
#6 ERROR: process "/bin/ash -o pipefail -c apk update" did not complete successfully: exit code: 3
------
 > [2/8] RUN apk update:
2.664 ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/main: UNTRUSTED signature
2.664 WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory
2.919 ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/community: UNTRUSTED signature
2.919 WARNING: Ignoring APKINDEX.b53994b4.tar.gz: No such file or directory
2.919 fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
3.188 ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/testing: UNTRUSTED signature
3.188 WARNING: Ignoring APKINDEX.30e6f5af.tar.gz: No such file or directory
3.300 v3.11.13-12-g2cfa91a2b4 [http://dl-cdn.alpinelinux.org/alpine/v3.11/main]
3.300 v3.11.11-124-gf2729ece5a [http://dl-cdn.alpinelinux.org/alpine/v3.11/community]
3.300 3 errors; 11292 distinct packages available
------
 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 5)
Dockerfile:9
--------------------
   7 |     # Copy data for add-on
   8 |     ENV HOME=/home/vlc
   9 | >>> RUN apk update
  10 |     RUN apk add --no-cache alsa-plugins-pulse
  11 |     RUN apk add --no-cache vlc
--------------------
ERROR: failed to build: failed to solve: process "/bin/ash -o pipefail -c apk update" did not complete successfully: exit code: 3```

If you are running HAOS, then direct install will likely be gone as soon as you update HAOS.
You would need to make that work with an App or an Integration.

1 Like

It is hard to make it work in HAOS and even harder to keep it working.
My solution is to run Proxmox on the NUC and then have HAOS on one VM and another VM with the player for the jack output, which also run other services, like Debmatic for Homematic IP and so on.

2 Likes

Have you tried with VLC via telnet? It works for me in some of the instances. If you have already tried that then the second option is to use a cheap USB to Sound Card with 3.5mm (Ugreen makes decent ones) and try with VLC. I did the same and it works without much hassle.

1 Like

I used VLC a long long time ago to do something similar, and my memory of it is faded, but I remember it not going well. I think playback was problematic and stuttered, but others may have had a better experience.

I ended up going with these which are pretty cheap:-

https://www.aliexpress.com/item/1005004949068471.html

And flashed them with squeezelite. They intregrate into Music Assistant really well.

2 Likes

The next Music Assistant release will support this. Is your best bet.

Btw vlc is indeed working in my local host, via telnet VLC media player via Telnet - Home Assistant

1 Like

Thank you everyone for this info.