Install Netflix Amazon Prime Video and Plex on the Raspberry Pi in Kodi using OSMC
Lets install OSMC
Lets grab the latest release version of OSMC from here.
Once downloaded, write the image to your SD card. If your new to writing images, there is a great cross-platform program called Etcher you can use to write to the SD card. It can be found here.
Once your have written to the SD card, lets insert and start our Raspberry Pi.
On first boot, OSMC will install, then ask you a number of setup questions.
Set your Default Language
Set your Time Zone
Set your Device Name
Make sure SSH is Enabled
Configure your Networking (Wired or Wireless)
Choose OSMC for your default look (Estuary may have playback issues with the Netflix add-on)
Once all the configuration is completed, you should be at the OSMC homescreen. Head down to Settings, then to System Info and note what the IP address is of your Raspberry Pi.
Lets update OSMC to a nightly build
Next we need to update OSMC to one of the nightly builds. To do this we need to SSH into our Raspberry Pi. If you need some help with this, there is a great program for windows called Putty, which can be downloaded here.
Using your SSH client, and the IP address noted earlier now connect to your Raspberry Pi. The defaults are login is
This should log you into your Raspberry Pi.
Lets update our apt sources to include the nightly builds of OSMC.
sudo nano /etc/apt/sources.list
This will open our sources file. Scroll to the bottom, and add the following line.
deb http://download.osmc.tv/dev/gmc-18 gmc-18 main
Press CTRL+x, enter Y to confirm, and press enter again to save our changes.
Now lets add the gpg certificate for the new source.
wget -qO - http://download.osmc.tv/dev/gmc-18/pubkey.asc | sudo apt-key add -
Now, lets set OSMC to run on our specific build with the following commands. Enter each one at a time.
sudo apt-get update sudo apt-get dist-upgrade -y
This will install OSMC to the latest OSMC beta build and supports the newest version of widevine. Previously the guide used versions 17.8-387, 17.8-370, 17.8-351, 17.8-339, 17.8-319, 17.8-315, 17.8-290, 17.8-243 & 17.8-225.
Lets add some dependencies
In order to get our add-ons working correctly, we need to add some additional dependencies and their recommended packages.
sudo apt-get install python-pip python-crypto build-essential -y sudo apt-get install python-all-dev python-setuptools python-wheel -y sudo apt-get install python-crypto-dbg python-crypto-doc python-pip-whl -y
Now lets install our Python cryptography dependency.
pip install pycryptodomex
To make sure our add-ons are finding our pycryptodomex module, lets add a symbolic link to the location.
sudo ln -s /usr/lib/python2.7/dist-packages/Crypto /usr/lib/python2.7/dist-packages/Cryptodome
Lets get our add-ons
You can download these .zip repositories directly in Kodi, but its nice and simple to cut and paste these links into our SSH session. So lets download our Netflix and Amazon Prime Video Addons here.
wget https://github.com/castagnait/repository.castagnait/raw/master/repository.castagnait-1.0.0.zip wget https://github.com/Sandmann79/xbmc/releases/download/v1.0.2/repository.sandmann79.plugins-1.0.2.zip
Once downloaded, lets go ahead and reboot our system.
Lets Install our Add-ons
Now that we are all setup, lets configure OSMC. First, lets enable our newly downloaded Add-ons.
Settings -> Add-on browser -> Install from Repository -> Video add-ons
Move to the left until the sidebar opens, and select Check for updates.
Now scroll down to Plex and select. Then select Install. And Ok to confirm.
Amazon Prime Video
Settings -> Add-on browser -> Install from Zip File
Root filesystem -> home -> osmc -> repository.sandmann79.plugins…
This will install the repository. Now we install the add-on.
Settings -> Add-on browser -> Install from repository -> Sandmann79s Repository
Video add-ons -> Amazon VOD (Select Amazon if you live in Germany)
Now select install and okay. I tested with Amazon VOD version 0.6.3~beta.
Settings -> Add-on browser -> Install from Zip File
Root filesystem -> home -> osmc -> repository.castagnait.zip
This will install the repository, now lets install the add-on.
Settings -> Add-on browser -> Install from repository -> Netflix Addon Repository
Video add-ons -> Netflix
Select Install, Select newest version, and select okay. (script.module.pycryptodome will state unavailable, but we took care of that earlier.) I tested with version 0.13.21.
Lets configure our installed Add-ons
Amazon Prime Video configuration.
Settings -> Add-on browser -> My add-ons -> Video Add-ons -> Amazon VOD
Under General, change Playback with to Input Stream.
Under Connection, go to Sign In, and login to our Amazon Prime Account.
Settings -> Add-on browser -> My add-ons -> Video Add-ons -> Netflix
Under Account, select Switch Accounts and enter your login information.
Settings -> Add-on browser -> My add-ons -> VideoPlayer InputStream -> InputStream Adaptive
Set your Max Resolution general and secure decoders to your desired resolution and Select Ok.
Running Netflix or Amazon Video for the first time
Netflix (and Amazon Video) require a proprietary decryption module called Widevine. Luckily our add-ons will take care of this for us. Select a Netflix or Amazon show and start an episode. You will then be prompted to Install Widevine. Because it is propriety it will be downloaded from a Chrome OS recovery image. Select yes to continue, and accept the license and root permissions. Once downloaded you will be prompted once more to install.
This installation will take some time, and prompt you a few times for the license agreement, root privileges, and installation. Once the installation is complete, lets reboot once more. Head back to the home screen, to Power and select reboot.
The first time you launch the video, the quality may be poor, but after the first launch it should improve to your selected quality. You can launch both Prime and Netflix and back out. Next time in should be looking great! Depending on your Raspberry Pi, you may need to play with some of the quality settings under the input stream settings to get nice smooth video streaming. Netflix seems to be more cpu intensive on the decryption/streaming.
Congratulations, you should now have a working Media Center which you can use for your local content, as well as Netflix, Amazon Prime, and Plex. To be on the safe side, turn off your automatic updates for OSMC, and your add-ons to ensure updates don’t break anything. It may also be wise to decline Widevine updates as well as a recent update actually broke the system.
If you found this guide helpful please leave me some encouragement below! If your really happy, you can always gift me a coffee, I can never say no to coffee!
I have also by request added a bitcoin donation address. If you want to show your appreciation I would be grateful, but under no means do you need to feel obligated. This is a fun hobby for me. 🙂
And for those that have, thank you for enabling my coffee addiction!