I have a patio with a Samsung TV (QN85B) hooked up to 2x Sonos amps for some virtual surround. The amps are in a closet in the house so the HDMI is converted over a cat6 cable to make the run. For some reason the audio from YouTube is all glitchy and cuts out intermittently. See video.
https://photos.app.goo.gl/T1GQAAnKWhXPLkeu7
When playing a test tone through YouTube it sounds like Morse code at times because of the audio cutting out.
My installer has replaced the HDMI converter twice. Once with the same brand and another time with a different brand altogether. One was for ARC audio only and the other is a full HDMI converter (video and everything).
Other apps work fine.
I bought a new Google Chromecast 4k and the problem exists there as well.
For me, this rules out the “app” portion of it being Samsung’s fault since Samsung’s YouTube app is Tizen based and the Chromecast is Android based. Could still have something to do with Samsung’s audio engine, ARC port, etc… I’m not sure exactly if the TV would be doing anything to the digital audio other than passing it directly to the Sonos AMP.
I’m thinking this is likely a Sonos issue, perhaps something to do with the Opus codec being used by YouTube in conjunction with the two Amps being set up for virtual surround.
When I download some music videos off of YouTube via yt-dlp and put it on my Plex server those videos play find on the TV but it that case it’s not using the Opus codec, it’s using AAC audio.