Running Netflix on Pi
Want to run Netflix using your Raspberry Pi? Since we're all staying home to keep safe, it's the perfect time to enhance your Netflix experience. You may have already figured out that Netflix can be challenging to get running on your Pi because it relies on Digital Rights Management (DRM) that's typically only distributed for closed platforms.
However, there are ways to get Netflix working with your Raspberry Pi. A plugin for Kodi makes it relatively simple and reliable to run Netflix on your Pi. This strategy is preferred over web browser methods that are easily broken.
Equipment Needed
- Raspberry Pi (versions 2, 3, or 4)
- Raspbian OS
- Micro SD Card (at least 16GB recommended)
- USB Keyboard & Mouse
- Power Supply
- HDMI cable
- Internet Connection (Pi 3 or 4 has built-in WiFi)
- Raspberry Pi Case (optional)
Get Prepared
Before you can get Netflix running, there are a few preparation steps:
- Update all packages on your Pi:
sudo apt updatesudo apt upgrade
- Install Kodi:
sudo apt install kodi kodi-peripheral-joystick kodi-pvr-iptvsimple kodi-inputstream-adaptive kodi-inputstream-rtmp
- Install extra packages to support Kodi:
sudo apt install build-essential python-pip python-dev libffi-dev libssl-dev libnss3
- Install required Python packages:
sudo pip install setuptools wheel pycryptodomex
- Download the CastagnaIT repository from GitHub
Add Netflix Repository
Now you're ready to use all of the packages you just installed:
- Launch Kodi on your Pi (hover over "Sound & Video" and select "Kodi")
- Change Kodi's settings to allow unknown sources:
- Click the "Settings" icon (cog graphic) at the top left
- Click "System" at the bottom right
- Click "Add-ons" in the sidebar
- Toggle "Unknown Sources" option (dismiss warning messages)
- Press Esc to return to Main Menu
- Click "Add-ons" in the sidebar to install the CastagnaIT repository
- Click "Install from zip file"
- Click "Home folder"
- Scroll to find and double-click
repository.castagnait-1.0.1.zip
Install Netflix Plugin
With the required repository installed, here's how to install the Netflix plugin:
- From the "Add-ons" page, click "Install from repository"
- Select "CastagnaIT Repository"
- Open "Video add-ons"
- Open the "Netflix" plugin
- Click "Install" in the bottom right (click "Ok" to install additional plugins)
- Enable the "Adaptive Inputstream" plugin:
- Go back to "My Add-ons"
- Choose "VideoPlayer Inputstream" category
- Open "InputStream Adaptive" plugin
- Click "Enable"
Run Netflix
You're finally ready to watch your favorite Netflix shows:
- Go back to the "Add-ons" page and click on "Netflix"
- The first time you open Netflix, enter your login info
- Choose a show you want to watch
- The first time you watch, install the DRM modules:
- You'll be notified that "Widevine CDM is required"
- Click "Install Widevine" to start installation
- Confirm that Widevine CDM extraction requires at least 3.1GiB of free disk space
- Click "I accept" to agree to Google's EULA
- Wait while download and extraction complete (great time to get popcorn!)
- As soon as the Widevine process completes, you're all set for your Netflix binge!