Chromium browser not loading youtube video [duplicate]

Chromium on Ubuntu 12.04. Youtube says:

This video is currently unavailable

I don't know why but this is the case for some videos, but not all. Well, most videos. And I don't know what's wrong.

Anyone help?


I'm using Chromium Version 28.0.1500.52 Ubuntu 12.10 (28.0.1500.52-0ubuntu1.12.10.3) and faced with same issue. To solve issue you need to remove current set of chromium codecs:

sudo apt-get remove chromium-codecs-ffmpeg

And them install similar, but extra package:

sudo apt-get install chromium-codecs-ffmpeg-extra

YouTube trouble will be removed and video will be played.

So, common solution leads to update chrome/chromium codecs.

You can also be faced with proposition to install chromium-codecs-ffmpeg-extra while removing chromium-codecs-ffmpeg. Just apply suggestion to install package with extra version.

Additionally, will be useful to update current version of chromium browser to take newest version:

sudo apt-get install chromium-browser

Thanks


You can test to see if it's a problem with Chromium's built-in Flash player by joining YouTube's HTML5 trial, which will switch you over to YouTube's new HTML5 video player. If the videos work then, something is messed up with your installation of Chromium/Flash player. Try reinstalling it. If they still don't work, it may be a problem on YouTube's end or your ISP's end or somewhere in between. Could you comment with an example of a video that's giving you this error?

Also, does this appear to be a YouTube error, or an error that you're receiving from Flash/Chromium?


Fix this problem by replacing the default, limited set of patent-free codecs, with the package containing all codecs. Run:

sudo apt-get install chromium-codecs-ffmpeg-extra

(Answer yes when asked if you want to remove chromium-codecs-ffmpeg and have chromium-codecs-ffmpeg-extra installed instead.)

After the install, you'll need to restart Chromium.

Why this happens

Chromium is (for political/ideological reasons) by default only installed with patent-free codecs (Ogg, Vorbis and Theora), which means that much video and audio content on the web will be in formats that Chromium does not understand.

The chromium-codecs-ffmpeg-extra package contains both the patent-free, and a bunch of (widely used) patented codecs.

Description of the chromium-codecs-ffmpeg-extra package:

This package contains the multi-threaded ffmpeg codecs needed for the HTML5 <audio> and <video> tags. In addition to the patent-free ogg, vorbis and theora codecs, aac / ac3 / mpeg4audio / h264 / mov / mp3 are also included. See chromium-codecs-ffmpeg if you prefer only the patent-free codecs