Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Widevine + H.264 Support on Ubuntu 19.10

  • There are new changes with the release of Ubuntu 19.10 that interrupt Opera's support for Widevine and H.264 videos. Note that this solution assumes you have Google Chrome installed. I've only had time to test this on Ubuntu.

    With previous iterations of Ubuntu (e.g. 18.04 and 19.04) I was had widevine (Netflix, Amazon Prime) and H.264 (YouTube) support with a simple adjustments. You need to copy over Google Chrome's libffmpeg.so file over to Opera's directory

    sudo cp /usr/lib/chromium-browser/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so 
    

    However, in Ubuntu 19.10 things changed a bit. The libffmpeg.so file moved to /usr/share/code/libffmpeg.so. The fix was fairly easy

    sudo cp /usr/share/code/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
    

    This returned support for H.264 videos (YouTube). But widefine was still missing. Again, files moved with Ubuntu 19.10's release. Here is where I found the necessary libwidevinecdm.so file.

    sudo cp /opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so /opt/google/chrome/libwidevinecdm.so
    

    Looking at Opera's files we can see that it utilizes Google's files once again.

    (base) jonathan@asus:~$ cat /usr/lib/x86_64-linux-gnu/opera/resources/widevine_config.json 
    [
    {
        "preload" : "/opt/google/chrome/libwidevinecdm.so"
    },
    {
        "preload" : "/opt/google/chrome-beta/libwidevinecdm.so"
    },
    {
        "preload" : "/opt/google/chrome-unstable/libwidevinecdm.so"
    }
    ]
    

    So the fix is to copy that livwidevinecdm.so to one of those directories. The above command does so.

    I hope this helps anyone out there encountering this problem. Comments and suggestions are welcome (especially for non-Ubuntu distributions).

  • I've had some issues with the chromium bundled ffmpeg library but iteufel/nwjs-ffmpeg-prebuilt works just fine.

    Just in case someone stumbles across ffmpeg issues. https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases

  • @romanzipp are you using Google Chrome from https://www.google.com/chrome/ ? You should download the .deb file from that source to install Google Chrome. Don't use Chromium or snap to install Google Chrome. This applies to Opera as well. Download Opera from https://www.opera.com/download .

Log in to reply