How to Enable Widevine DRM in Ubuntu

Content streaming services like Netflix, Amazon Prime Video, Disney+, and HBO are providing a huge library of content to their end-users. These services have a much better distribution network, reach, and catalog than any other traditional form of video distribution. Their subscription plans are also cost-effective to end-users, enabling video consumption at a fraction of the price of owning or renting movies and shows. This article will explain how to enable Widevine DRM on Ubuntu, used by most content providers to deliver video content.

About DRM

Digital Rights Management (DRM) provides software and hardware level tools to protect digital content and facilitates its control, use, and distribution. DRM can be forced in many forms, and vendors may lock content if certain conditions about user authentication, presence of certain hardware components or software libraries are not met. DRM can also be used as an anti-tamper mechanism to prevent and block unauthorized modification of software or hardware.

About Widevine DRM

Widevine is a DRM solution by Google that allows the delivery of secure and encrypted digital video content. It is widely used by streaming content providers to enable the distribution of encrypted videos on desktop and mobile operating systems. Any Widevine compatible system will have a Content Decryption Module provided by Widevine, mainly used for decryption of content.

Check Installed Widevine Libraries on Your System

Widevine libraries must be present and supported by browsers installed on your Ubuntu system. You can verify if Widevine libraries are duly installed on your system or not by running the two commands mentioned below:

$ sudo apt install mlocate
$ locate libwidevinecdm.so

You should get some output similar to this:


The presence of the word “libwidevinecdm.so” in the output above confirms the availability of widevine libraries. If you have installed these browsers and apps from official sources or from your distribution’s officially supported repositories, it is almost guaranteed that you will get Widevine libraries installed on your system.

Enable Widevine DRM on Firefox

Type in “about:addons” in the Firefox URL address bar and hit <ENTER> key. Make sure that “Widevine Content Decryption Module” is set to “Always Activate”. You can do so by clicking on the three-dot button, as shown in the screenshot below:

You may need to restart Firefox after activating the Widevine addon.

Enable Widevine DRM on Chrome

Widevine DRM is always turned on in Chrome and cannot be disabled. The presence of the Widevine library under the Chrome installation directory is a confirmation that the DRM is already enabled in the browser. However, you can manually check for Widevine DRM in Chrome by entering URL “chrome://components”.

Fix for Unrecognized Video Format

Sometimes you may get video format errors in browsers while playing a Widevine DRM protected stream even after ensuring that Widevine is properly enabled. This may be due to limited codecs support on your system. To fix this on Ubuntu, install full codecs set by running the command below:

$ sudo apt install ubuntu-restricted-extras


Widevine DRM is now used by almost all major streaming content providers. Unfortunately, Linux is rarely a priority for these providers. Even though you may have Widevine configured correctly on your system, streams from some content providers may not play at all or play in standard definition. Some streaming services providers also use multiple DRMs, and if even one of them is not configured properly or missing, your audio and video consumption experience may become sub-par.

About the author

Nitesh Kumar

I am a freelancer software developer and content writer who loves Linux, open source software and the free software community.