operating-system icon indicating copy to clipboard operation
operating-system copied to clipboard

Update to OS 12.3 causing problems to VLC addon / VLC-Telnet integration

Open LeoCal opened this issue 1 year ago • 28 comments

Describe the issue you are experiencing

After updating to OS 12.3, I started facing issue with VLC addon / VLC Telnet integration. More specifically, I get an intermittent and chopping sound, which has never occurred to me in several years using VLC. It seems multiple users are facing a similar issue, as reported to VLC addon as well: https://github.com/home-assistant/addons/issues/3594

Here's the details of my HA setup: Core: 2024.5.3 Supervisor: 2024.05.1 Operating System: 12.3 Frontend: 20240501.1

What operating system image do you use?

rpi4-64 (Raspberry Pi 4/400 64-bit OS)

What version of Home Assistant Operating System is installed?

Home Assistant OS 12.3

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Upgrade to OS 12.3
  2. Try to reproduce a sound through the VLC addon with VLC Telnet integration
  3. Notice how sound is chopping and intermittent

Anything in the Supervisor logs that might be useful for us?

You can refer to the issue reported to the VLC addon for more logs from me and other users:
https://github.com/home-assistant/addons/issues/3594

Anything in the Host logs that might be useful for us?

You can refer to the issue reported to the VLC addon for more logs from me and other users:
https://github.com/home-assistant/addons/issues/3594

System information

No response

Additional information

No response

LeoCal avatar May 15 '24 10:05 LeoCal

I have this problem too. Still no solution?

sakirsek avatar Jun 07 '24 08:06 sakirsek

AFAIK, unfortunately no solution yet :-(

LeoCal avatar Jun 07 '24 08:06 LeoCal

Hello,

the same with HAOS: 12.4

I found an alternative solution (without VLC) https://smarterkram.de/6217/ (In German) Also works with short mp3 files.

Best regards Gunter

GunterAv avatar Jun 19 '24 11:06 GunterAv

Yes, I also have an MPD based addon that works fine, but ideally this needs to be fixed in VLC addon as that's part of the Home Assistant "official add-ons".

LeoCal avatar Jun 19 '24 12:06 LeoCal

Hello,

I'm right there with you. But I need the sound output via the RasPi output and didn't want to wait any longer.

Greetings

GunterAv avatar Jun 19 '24 12:06 GunterAv

Throwing my hat into the ring, it's not just raspberry Pi's. After the update 12.4 I'm not able to get any sound out of my setup, running baremetal with x86-64

Grafton1046 avatar Jun 27 '24 12:06 Grafton1046

I also have the issue since I updated to 2024.5

FadilAbdulla avatar Jul 29 '24 05:07 FadilAbdulla

I had the same problem on 12.3 so I downgraded to 12.2 and the audio was fixed.

Anybody knows if OS 13 still presents this issue?

rodolfoleo avatar Aug 16 '24 02:08 rodolfoleo

in 13.0 the proplem was NOT fixed.

GunterAv avatar Aug 16 '24 06:08 GunterAv

I experience the same on my RPI4 and noticed a very high cpu usage when playing audio or TTS. This might cause the stuttering sound.

When I reverted to HA OS 12.2 with ha os update --version 12.2 there is no issue

basvdijk avatar Aug 16 '24 07:08 basvdijk

I'm also stuck on version 12.2 until this issue is resolved.
Is there anything I can do to help diagnose the root cause?

bitbytie avatar Aug 18 '24 14:08 bitbytie

I had an opportunity to look at this issue a bit more in depth, and I'm afraid I don't have good news. The problem indeed happens only for VLC, which, when ran with debug logging, shows it has issues with synchronization and logs playback way too early ... playing silence or playback way too late ... playing silence couple of times. Playing audio using other tools (like ffplay) is fine. I checked and tried adjusting buffer values but it has no effect.

I have confirmed that Raspberry Pi OS has exact the same issue if PulseAudio and VLC is used. The problem only happens on latest (for RPi) 6.6 kernel, 6.1 is fine - and 12.2 to 12.3 was right where we updated to Raspberry Pi's current kernel.

Unfortunately, I don't have capacity to pursue this issue, these are the key information that could be used to report the issue upstream in raspberrypi/linux repo - install PulseAudio (it's not used as the default sound server though) on the latest RPi OS and try playing audio files with VLC. If the cause is found and resolved there, we can apply the fix to HAOS as well.

sairon avatar Aug 19 '24 18:08 sairon

same problem when using VLC stuttering / lagging.. RaspberryPi 3 B rev. 1.2 HAOS 13.0

itCarl avatar Aug 21 '24 11:08 itCarl

Running the latest versions and all of my door/alarm sounds now just make weird .2 sec chirps. Really annoying. Is anyone looking at this, anything we can do to help?

ClubspeedChris avatar Sep 15 '24 02:09 ClubspeedChris

+1, this issue is driving me crazy. Is there anything we can do to help? And/or resolve the issue temporarily on our own hardware?

NoahJamesTech avatar Oct 04 '24 22:10 NoahJamesTech

As mentioned in https://github.com/home-assistant/operating-system/issues/3373#issuecomment-2297181620, reporting this issue to the raspberrypi/linux repository by affected users would help to get it fixed upstream, thx :+1:

mib1185 avatar Oct 04 '24 22:10 mib1185

I have the same problem with the output on VLC only when I use the piper voice or with some mp3 audio. The strange thing is that if I use the google voice on the VLC output it works fine. I don't know if this can give you any ideas but I hope it gets solved

robertodomotico avatar Oct 08 '24 10:10 robertodomotico

In my case, instead, this is happening also using google TTS on the VLC output, on a Raspberry PI 4.

LeoCal avatar Oct 08 '24 11:10 LeoCal

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 07 '25 05:01 github-actions[bot]

Anyone tested if the latest HAOS fixed this issue?

basvdijk avatar Jan 07 '25 06:01 basvdijk

I tested with the last major version (I think 14.0) and it still wasn't working. Reverted back to 12.2 where it was working.

NoahJamesTech avatar Jan 07 '25 06:01 NoahJamesTech

@NoahJamesTech Thanks! Looks like we are stuck with 12 or need to find another solution. I have the feeling this is not going to be fixed with future HA updates.

basvdijk avatar Jan 07 '25 08:01 basvdijk

Confirming this is still broken on 2025.3.1 & 14.2. Choppy, missing, and broken audio with any TTS used

HiTechTLS avatar Mar 10 '25 22:03 HiTechTLS

with HAOS 15 the kernel is updated to 6.12 for all systems, except the PI, since 6.12 is not final available (but it is near to be). I've done some tests with an rpi4 ... I'm able to reproduce the issue with the current latest kernel 6.6.74+rpt-rpi-v8 by playing an web audio stream via pullseaudio with vlc and ensure some high load with dd if=/dev/urandom bs=10M count=1000 of=/dev/null Then I've updated to the current test kernel 6.12.18-v8+ and tried to reproduce the issue again, but this time the audio was playing fine all the time, even when under high load 👍

TL;DR: with upcoming kernel 6.12 (which will be the next LTS kernel for the rpi) the issue should be gone

mib1185 avatar Mar 15 '25 12:03 mib1185