How to Fix YouTube Videos Not Playing On Linux
1. Chromium-based browsers
You need to install the licensed codec. You can use the following command or just run Vivaldi on the command line if you use the Vivaldi browser. Head over to the terminal and type "vivaldi" and hit Enter. It will open a new browser window and in the terminal, it will tell you the codecs found. Initially, there will only be open codecs installed and it will prompt you the command to install the proprietary command. Use that command or you can directly paste the following command.sudo apt update && sudo apt install chromium-codecs-ffmpeg-extra
If the above command doesn't work for you, you can alternatively download the ".deb" file from this location. Once downloaded, double-click on the file and install the additional codecs. After installation, restart your chromium-browser. In my case, it is Vivaldi. Play the video and now it should work.
Published: October 27, 2019