Thursday, January 28, 2016

OSMC on Raspberry Pi

(This page is a work in progress)

If you want to play or stream movies and TV shows or watch Youtube with a Raspberry Pi, the easiest way is to install OSMC. The Raspberry Pi has a HDMI connector so you can easily connect it to your TV.

1. First get a microSD card (Raspberry Pi 2) or SD card (Raspberry Pi) of at least 4GB.
2. Download the installer and follow the steps until you have your SD card ready:
https://osmc.tv/download/
3. Put the SD card in the Raspberry Pi and connect the micro USB connector to power it on.

Now it's time to get some movies and install some apps.

Note: For the power supply I recommend using one that can supply 2A. If you only have a 1A power supply it will work but if you connect a lot of things maybe you won't have enough power. Also, the USB cable is important. If it's too long or if it's not rated for high current, the voltage drop in the cable will be so high that the Pi won't be able to work. If you see a multi-color square in the top right corner, that means the voltage on the Pi is too low.


How to add movies to the library

The easiest is to have a hard drive connected to the Pi. Before you do that you need to know that most hard drives need more current than what the Pi can supply.

Go to My OSMC (in programs)
Pi Config
add max_usb_current=1 (it is not usb_max_current=1)
Done, write


Even with that activated, I had the undervoltage rainbow square in the corner of my TV.  That means the voltage drops due to too much current. My cable had 2 USB connectors so I taped the 5V pin on the one going to the Pi and connected the other one to a 5V USB adapter. 

How to name files so they appear in the library

For movies :
\Movies\Avatar (2009)\somefilename.mkv
\Movies\The Usual Suspects (1995)\somefilename.avi

For TV shows :

TV Shows                 
   |----TV Show 1
   |       |----Season #
   |            |--Files

Then for every episode:

Show with season
anything_s01e02.ext 
anything_s1e2.ext 
anything_s01.e02.ext 
anything_s01_e02.ext 
anything_1x02.ext 
anything_102.ext 

Show without season
anything_ep02.ext
anything_ep_02.ext

for mini-series or short documentary series.
anything_part.II.ext
anything_pt.II.ext
anything_pt_II.ext


How to stream movies and TV shows


With Genesis you can stream movies and TV shows.

Download and unzip the file in ../home/osmc/.kodi/userdata/addon_data
http://iwillfolo.com/wordpress/wp-content/uploads/download_dir/plugin.video.genesis/plugin.video.genesis-5.1.4.zip

Link Genesis library with OSMC library
Make a shortcut of this path in OSMC home folder :
../home/osmc/.kodi/userdata/addon_data/plugin.video.genesis/TVShows

Then go to Movies->Files->Add Source and add the shortcut.


How to control OSMC from your computer or phone


First, you need to give a static IP address to your Pi so that the apps don't need to be configured again every time you reboot your Pi.

Go to My Osmc - Network and configure network manually

To control OSMC with your phone, install Yatse:
https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetfree&hl=en

To control OSMC with Google Chrome, install Play to Kodi:
https://chrome.google.com/webstore/detail/play-to-kodi/fncjhcjfnnooidlkijollckpakkebden?hl=en


How to download torrents

If you have a hard drive connected to your Pi you can turn it into a torrent machine!

Follow this tutorial :
http://codeyarns.com/2014/07/05/how-to-torrent-on-raspbmc-using-transmission/


Some useful info about OSMC

-Default username and password is osmc and osmc

-To go to the terminal exit osmc (not reboot) and press Escape

-If OSMC is playing something, hitting backspace returns to the menu and hitting Tab will go back to what's playing.

No comments:

Post a Comment