Skip to main content
Collaborator II
February 1, 2020
Answered

YouTube Music skipping tracks due to song not being encoded properly

  • February 1, 2020
  • 82 replies
  • 7304 views

I keep getting this error randomly, after X seconds of playing a track. The same track will sometimes play through without error, so clearly its nothing to do with encoding since its intermittent.  Very frustrating since all I play is from YouTube Music.  Diagnostic 291296562.

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.
Best answer by Ryan S

The issue should be resolved, if everyone has updated their Sonos system to v11.1.

@Smilja is correct. I somehow missed this thread, though I notified others.

As of the last update, 11.1, the encoding issue with some YouTube Music tracks should be resolved. Make sure your players are all on that version by going into your Sonos app > Settings > System > About Sonos, you will see a version number there. You can also just go to System > System Updates to see if one is available.

Once you’re updated, you shouldn’t have any trouble playing YouTube Music. If you do, I recommend that you contact our support team directly so they can investigate. It’s possible that you’re running into an issue local to your system, but if you aren’t they’ll need to get some more details to take back to the team to investigate further.

82 replies

February 1, 2020

It’s usually a network error, rather than an encoding one… Could be a duplicate IP address.  Have you tried doing a full shutdown/restart in the recommended manner?

rbrownAuthor
Collaborator II
February 1, 2020

It’s usually a network error, rather than an encoding one… Could be a duplicate IP address.  Have you tried doing a full shutdown/restart in the recommended manner?

Hi, I searched previously and saw network was often blamed, more specifically packet loss.  I am network engineer by trade however, definitely no dup IPs, and packet loss is not seen either.  I experience this issue on both my Sonos, one is wifi, the other is rj45, so I am struggling to believe its network related.  I will try the restart however and report back!

rbrownAuthor
Collaborator II
February 1, 2020

Restart didn’t work, the song sometimes plays 2/3 seconds, other times 10 seconds, then says not encoded properly.

Ken_Griffiths
February 1, 2020

Restart didn’t work, the song sometimes plays 2/3 seconds, other times 10 seconds, then says not encoded properly.

As you appear to have one device wired, it’s important that the speaker is connected direct to your main router (or unmanaged switch directly off it),  rather than say having it wired to an access point or WiFi mesh hub etc.. I would just ensure that is the case.

Any wifi access points/hubs need to be operating on the same WiFi channel as the main router. Ensure that the 5ghz and 2.4ghz bands are separately named too. 

The Sonos system in this situation will be running on SonosNet rather than your WiFi, (About my Sonos System will show devices as WM:0) so also check you have then put the following two things in place.…

  1. Set the SonosNet channel in “Settings/System/Network” of the Sonos App so that it is at least 5 channels away from your router 2.4ghz channel.
  2. Remove/reset the WiFi credentials in the Sonos App “SettingsSystem/Network/Wireless Setup”. These are not needed when running the devices on SonosNet.

There are other things you can do to improve network stability, but let’s leave it there for now and 'perhaps' try the above (if relevant to your situation), to see if it (hopefully) resolves your issue. 👍

rbrownAuthor
Collaborator II
February 1, 2020

Restart didn’t work, the song sometimes plays 2/3 seconds, other times 10 seconds, then says not encoded properly.

As you appear to have one device wired, it’s important that the speaker is connected direct to your main router (or unmanaged switch directly off it),  rather than say having it wired to an access point or WiFi mesh hub etc.. I would just ensure that is the case.

Any wifi access points/hubs need to be operating on the same WiFi channel as the main router. Ensure that the 5ghz and 2.4ghz bands are separately named too. 

The Sonos system in this situation will be running on SonosNet rather than your WiFi, (About my Sonos System will show devices as WM:0) so also check you have then put the following two things in place.…

  1. Set the SonosNet channel in “Settings/System/Network” of the Sonos App so that it is at least 5 channels away from your router 2.4ghz channel.
  2. Remove/reset the WiFi credentials in the Sonos App “SettingsSystem/Network/Wireless Setup”. These are not needed when running the devices on SonosNet.

There are other things you can do to improve network stability, but let’s leave it there for now and 'perhaps' try the above (if relevant to your situation), to see if it (hopefully) resolves your issue. 👍

Thank you that definitely gives me some points to look at.

My wired speaker is actually connected to an AP, not the default gateway, however the AP is still connected physically to the DG, so in principle its as you said, an unmanaged switch hanging off the main router.

I have 3 APs in the house, all 3 are on different channels, so again that seems to be an issue with what you’ve said.

As a quick test, I’ve just shutdown 2 APs and left the main router running.  The most problematic song that only ever gets at most 10s in, this time got to 30s before skipping.  Playing it again it’s back to around 10s. 

 

I am defintely going to play around some more with the network settings, shutdown all other APs and reset the system, see where that takes me. 

 

Thanks again Ken!

 

Ken_Griffiths
February 1, 2020

If you are able to (even as a temporary measure) wire a single Sonos device direct to the main router/hub that is the gateway and broadcasting the local 2.4ghz WiFi subnet, that would be best. I assume the only thing after that device might be an ISP provided router in 'bridge' or 'modem' mode with its WiFi switched off. However an unmanaged switch is also fine between the main LAN Hub and the chosen Sonos device … also separate out these wireless devices by approx. 2-3 feet to prevent interference betwee them and then do the other things mentioned in my earlier post.

rbrownAuthor
Collaborator II
February 7, 2020

Unfortunately I’ve had no joy with this.  I’ve wired in the speaker to my router, disabled all wifi, and still getting similar issues.  I never used to have any problem, but over the past few weeks its gotten progressively worse.  It only seems to affect YouTube Music on Sonos.  YouTube Music on any other device is fine, and any other music source on Sonos is fine.  Any other ideas?  It would be helpful Sonos, if the error were accurate.  It is complaining that the audio file is not encoded properly, however if its infact network related, the error message should say so.

rbrownAuthor
Collaborator II
February 7, 2020

I am getting a little further with this now since I’ve had the morning to investigate a bit more.  It seems that the issue is that I have a Sonos upstairs, that is wired to a switch running to my router downstairs.  The Sonos downstairs is on wifi.

 

I believe what is happening is that the downstairs Sonos is trying to connect via SonosNET to the upstairs, when in fact I want it to just use my own wifi and SonosNET should not be running anywhere.

 

I am finding it almost impossible to create this scenario however, since when I try and connect to WIFI from settings>network, I get password incorrect, which it is not.  I have seen other threads regarding this, but no surefire solution.  I seem to be going in circles atm resetting one device after another, but I am never seeing the downstairs sonos connect via my home wifi,

Ken_Griffiths
February 7, 2020

I am getting a little further with this now since I’ve had the morning to investigate a bit more.  It seems that the issue is that I have a Sonos upstairs, that is wired to a switch running to my router downstairs.  The Sonos downstairs is on wifi.

 

I believe what is happening is that the downstairs Sonos is trying to connect via SonosNET to the upstairs, when in fact I want it to just use my own wifi and SonosNET should not be running anywhere.

 

I am finding it almost impossible to create this scenario however, since when I try and connect to WIFI from settings>network, I get password incorrect, which it is not.  I have seen other threads regarding this, but no surefire solution.  I seem to be going in circles atm resetting one device after another, but I am never seeing the downstairs sonos connect via my home wifi,

Firstly, I would not recommend you reset your devices in this situation as that really only needs to be done as a very last resort and it will not resolve what you are trying to achieve here. ALL Sonos devices will, in most situations, switchover to SonosNet whenever one device is wired to the LAN and in that situation I would recommend you remove the WiFi credentials from the Sonos App.

If you wish to run all devices on your WiFi, then you must uncable ALL your speakers from the LAN.. and (obviously) keep the WiFi credentials, or restore them, in “Settings/System/Network/Wireless Setup”… its best to have one, or the other, type of setup, rather than both, which is often referred to here as 'mixed mode’ ...and mixed mode only occurs automatically, when one signal is unavailable, or out of reach… in your case, it sounds like that is unlikely to happen.

I would recommend you keep all on SonosNet, but ideally you need to put the wired Sonos device direct into the main router, rather than the upstairs switch… if that’s not practicable, then you maybe best to switch to WiFi and enter the credentials as I have described for your routers 2.4ghz band (case sensitive) SSID/password.

rbrownAuthor
Collaborator II
February 7, 2020

Hi Ken,

 

I spent quite a long time investigating this this morning, also with Sonos over the phone.  In the first instance the wifi device was not connecting to the closest AP, so that was defintely making things worse.  That is now resolved, but still 1/5 songs or so skip with this error, but only on YouTube Music.  I’ve tried just about everything now, removed all APs, wired in the sonos, removed one sonos etc, and still some songs skip, so i think this has got to come down to YT Music on some songs.  Network was defintely compounding the issue however, the secondary AP though close, was not the best.