13

Recently I have begun getting the following message in Firefox on about half the videos on YouTube, forcing me to use Chrome "Your browser does not currently recognize any of the video formats available":

enter image description here

When I get this I have to open Chrome and paste the URL in there to watch the video which is insanely annoying. Opening the info page (https://www.youtube.com/html5) shows the following:

enter image description here

How can I (A) find out what formats the video has, and (B) how to make Firefox support those formats?

(This is the latest version of Firefox, I do immediate updates whenever new versions come out. The current version is 49.0.2. This is a Windows box.)

Andrew P.
  • 105
Tyler Durden
  • 6,333

11 Answers11

14

This problem occurred when I watch a YouTube live video with Firefox on Ubuntu.

Installing ffmpeg solved my problem:

sudo apt install ffmpeg or

Same fix on Fedora 26 Workstation with Firefox 56 (x64):

sudo dnf install ffmpeg

3

Tyler, as others have mentioned Firefox supports HTML5 video natively. If your Firefox installation does not, please try the following steps:

First, disable all the add-ons in your browser and try visiting Youtube again. If Youtube works, you can go through and enable single add-ons at a time, testing each time to make sure video plays correctly.

Next, if you're still not able to play Youtube videos natively, remove Firefox entirely and then go to https://www.mozilla.org/en-US/firefox/new/ and download a fresh copy of the latest version and install it.

UPDATE: More clarity on HTML5

HTML 5 is essentially a container, a WAY to deliver video, it is not the video codec itself.

In the picture you show, the HTMLVideoElement is the code that Youtube uses that the browser knows how to handle, but it doesn't actually encode the video, it's just the container the video is delivered in.

The video itself must be encoded in one of several formats, which are the other parts of the picture: h264, WebM, MSE, etc.

So, your browser knows how to handle the container, but it should also know how to handle the encoding formats itself, and that is where your problem lies.

If you look into the Stats For Nerds that @Scott Chamberlain mentions in his comment above, you will never see HTMLVideoElement listed as the encoding format. You will, however, find each Youtube video is encoded using h264 or WebM or MSE, and, once again, this is what your browser is failing to do and what you must troubleshoot, and the steps I've outlined above are the correct first steps to doing so.

music2myear
  • 49,799
2

My FIX: I went to https://www.youtube.com/html5 (Thx Grandpa Dave!), - Scrolled to the BOTTOM YOUTUBE LOGO on left- and just to the RIGHT of the bottom-left logo "LANGUAGE" and CORRECTED my location/LANGUAGE.

Everything played fine after that. Pls share if this worked for you. It's a weird auto-location selection. I thought there might be a prob when the comp auto-filled my date/time with another country time, sure enough, youtube matched the incorrect auto location.

CKP
  • 21
1

The problem was/is that Firefox uses Adobe Flash to play all movie types, except HTML, so if Flash is blocked for any reason, then you get the message shown in the question.

In my case several configuration items and protective Add-ons are in place to block Flash (because we know great Flash's security is, heh), so it was being silently blocked, thus preventing the videos from playing.

By tweaking my settings I was able to remove the silent block and make it a case-by-case block, so now I can approve videos and YouTube is working once again.

Apparently changes in various Add-Ons and in Firefox itself only caused this to be a problem recently. The relevant Add-ons in my case are: Flash, NoScript and FlashStopper.

Tyler Durden
  • 6,333
0

Are you using some Linux distro? (if so, what?)

Go to about:config and look for "video", then check whether it's all default, and it's enabled. Maybe you don't have h.264 proper codecs; then you must have gstreamer bad and ugly if using Ubuntu, or other codecs if another distro, this assuming you're using Linux.

Suzamax
  • 183
0

You can use vlc player to find out which format a video has .

1. Just open network stream -> enter youtube url -> right klick -> tool -> codec information

2. Some Firefox plugins lead from time to time to strange behaviors of Flash and HTML5 Player. Add youtube.com as exception by Flashblock etc ....

3.Check under about:config if the following values enabled:

media.webm.enabled 
  1. Run -> sudo apt-get update && sudo apt-get upgrade
Wiffzack
  • 258
  • 3
  • 9
0

This happend to me in Opera after updating to the latest version of Ubuntu. Oddly enough, the problem seemed to be with Flash. Uninstalling everything associated with flash player from the computer and then installing the Opera extension fixed the problem.

MegaBluejay
  • 236
  • 2
  • 7
0

This add-on solve the problem, it requires Flash Player.

https://addons.mozilla.org/fr/firefox/addon/youtube-flash-video-player/

kerdi
  • 1
0

With Ubuntu 18.04, in Mozilla Firefox, I just get a turning "Loading" icon when the loading fails. I was able to make it work by going to the config and turn on the optional media features.

  1. Go to about:config (enter that as the URL in your location bar)
  2. Enter media.mediasource in the search box at the top
  3. Make sure all entries are "true"

enter image description here

Note: at some point I hit an ad and then it wouldn't work until I restarted... so expect such problems.

The equivalent page in Chromium is found at chrome://flags/ but unfortunately, there are no options to enable additional media sources (as of Marsh 2020). It may be possible to enable the GPU decoding, but I've not tried that extensively. Also by default it looks like Chromium doesn't support the GPU on Linux. (I may need to install Chrome instead of Chromium.)

Alexis Wilke
  • 1,806
0

Here's an updated solution for Fedora users (and yes, it DOES use FFmpeg, but it works as of now)

First, install the RPM Fusion repository via:

sudo dnf install \
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

then, simply normally install FFmpeg.

sudo dnf install ffmpeg
-1

same problem for me. Ubuntu 16.04 Firefox 55.0.2 (64-bit) add-ons include flash. The fix was to disable flash by clicking the f icon. The video then played fine. Note that I had all positive browser support checkmarks on the "YouTube HTML5 Video Player" page, and they did not change when I toggled flash On or Off, (https://www.youtube.com/html5)