Skip to content

Instantly share code, notes, and snippets.

@sshravan
Last active July 4, 2020 23:17
Show Gist options
  • Save sshravan/6c678382b9dd8d4b1b79734903cc23fa to your computer and use it in GitHub Desktop.
Save sshravan/6c678382b9dd8d4b1b79734903cc23fa to your computer and use it in GitHub Desktop.

Opera + Widevine + Netflix

  • Here is a hack to watch Netflix on Opera with Widevine DRM support.
  • Download official Opera DEB and, weirdly, remove it after installation.
     cd ~/Downloads
     sudo dpkg -i opera-stable_*.deb
     sudo apt-get autoremove opera-stable
     sudo rm -rf /usr/lib/x86_64-linux-gnu/opera
  • Install other necessary things
     sudo apt-get install ubuntu-restricted-extras flashplugin-installer
     sudo apt-get install ffmpeg libavcodec-dev	
  • Setup Opera PPA
     wget -qO- https://deb.opera.com/archive.key | sudo apt-key add - && sudo add-apt-repository "deb [arch=i386, amd64] https://deb.opera.com/opera-stable/ stable non-free" && sudo apt-get install opera-stable
  • Install something which has libffmpeg.so
    • VS Code, Slack, Skype, Chromium, etc., are good candidates
    • Opera comes with libffmpeg.so, but it does not seem to work
     cd /
     find . -iname "libffmpeg.so"
     ./usr/share/code/libffmpeg.so
     ./usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
     ./usr/lib/slack/libffmpeg.so
  • Update the path of libffmpeg.so in Opera folder
     sudo nano /usr/lib/x86_64-linux-gnu/opera/resources/ffmpeg_preload_config.json
     # Add any of the find results (Except the one in Opera directory) as the first element of the array
     "/usr/share/code/libffmpeg.so",
  • Option 2
     sudo cp /usr/share/code/libffmpeg.so /usr/lib/chromium-browser/
  • References
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment