Sunday, December 4, 2016

My Favorite Kodi Setup

Home Theaters.... Who doesn't love to go to the theater, eat some popcorn while the trivia slides, new trailers, and the turn-off-your-cell-phone clip runs?  That whole cinema experience is something I'd been wanting to recreate in my home for those times when staying in is the plan.  I looked at a few media center setups, but most of them worked only (or had the best features) on windows, cost money to buy, or required a subscription or additional expensive hardware.  I won't tell you which ones I tried, because I'm really stoked about a tried and true free option.  You've probably heard about it: KODI.  It's free, very stable, and fast.  It's one of the best open source media centers available and you can get it on Windows, MAC OSX, Linux, Android, iOS, and Raspberry Pi (which is really just a linux version).  Since I love the raspberry pi, this walk-though will use that.

I didn't want to be wasting my electric bill on a PC running solely to stream my ripped movies that I own, so I looked into a light weight, energy efficient, fast media center that I could have complete control over... Enter stage Raspberry Pi 3.  It wasn't until the raspberry pi 3 came out that the pi really had enough speed to perform similarly to the windows version on KODI,  So I went all in.  I'll be updating this blog with my changes as I perform them periodically, but let's get right to the setup:

My Hardware:

The Software:

WARNING: Your USB Stick / SDcard will be erased by this procedure as it installs OpenELEC onto it. Please ensure you know the correct drive letter for your USB Stick / SDcard.

Writing *.IMG to SDCard:
  1. Extract the OpenELEC image using 7zip.
  2. Insert your USB Stick / SDcard into your system/card reader. It should appear as a new drive letter (make very sure you know which drive letter it is, since Win32DiskImager WILL wipe that drive - if it happens to be your Windows drive... too bad).
  3. Run Win32DiskImager
  4. Select the image (*.img) file and verify the destination drive letter is correct, then click write.
  5. When it is finished you can safely remove the USB stick / SDcard by right clicking on the drive in windows explorer and selecting eject.
Get Kodi Setup for the First Time:
  1. If you have a case for the raspberry pi, please put it all together so you don't inadvertently short out any circuits.
  2. Plug the newly written SD card into the SD card slot in the raspberry pi.
  3. Connect the usb keyboard.
  4. Connect the HDMI cable from the raspberry pi to a motitor or TV.
  5. Power on the raspberry pi by plugging it into a wall outlet.
  6. Follow the first time setup guide in order to add a media source for Kodi to be aware of your video/tv locations: http://wiki.openelec.tv/index.php/Guide_to_first_use
  7. I happen to use the AEON MQ6 skin (seems to look and feel great), you can add it from here: http://kodi.wiki/view/Add-on:Aeon_MQ_6
Creating the True Home Theater Experience (MY FAVORITE PART AND THE REASON I WENT WITH KODI):
I happen to love the full movie experience once in a while without the cost.  I have found that the Cinema Experience add-on for Kodi to be the most comprehensive experience of them all.  It's pretty simple to setup, and amazingly powerful for customization.  What I love about it, is that you can add your own pre-roll videos, trivia slides, and any amount of other pre-roll stuff, including scripts to control lights in the room, and have it download and play trailers from the internet that are the same or lower ratings as the movie you are playing.  Here's how to get it setup from the main menu:
  1. Settings
  2. Add-ons
  3. Install from repository (v15/v16) / Get add-ons (v14)
  4. Kodi add-on repository
  5. Program Add-ons
  6. Cinema Experience
  7. Install
You do need to spend a bit of time reading how to setup the cinema experience add-on in order to show the correct videos/trivia/intros/outtros/etc and when, but it's not hard, just go into the configuration of cinema experience (CE) and look at each item and compare it with what you want to show and when.  You will need to specify file locations for the different types of videos and trivia and have downloaded those things into those folders.  But the trailers can be set to download from internet sources, so you can always be seeing up coming trailers without any extra work.  Here is a list of things you can possible add around the feature film (this comes directly from the section 3.2 Sequence Overview from the CE wiki):

Cinema Experience gives you the ability to enable or disable any introduction videos, or the trivia slideshow. You have the power to customize your cinema experience. The following is an example of the complete script flow:

  1. Trivia Intro Video(s)
  2. Trivia Slides with Optional Music Playlist
  3. Trivia Outro Video(s)
  4. Movie Theater Intro Video(s)
  5. Coming Attractions Intro Video(s)
  6. Trailer(s)
  7. Coming Attractions Outro Video(s)
  8. 3D Intro Video(s) - if upcoming Movie is in 3D format
  9. 3D Trailers( from folder as I haven't found a site that has them really available) - if upcoming Movie is in 3D format
  10. Countdown Video
  11. Feature Presentation Intro Video(s)
  12. Rating Video (MPAA, BBFC and FSK ratings are currently supported)
  13. Audio Format Video
  14. FEATURE PRESENTATION
  15. Intermission Video(s) (note)
  16. Rating Video
  17. Audio Format Video
  18. FEATURE PRESENTATION 2
  19. Intermission Video(s) (note)
  20. Rating Video
  21. Audio Format Video
  22. FEATURE PRESENTATION 3
  23. Intermission Video(s) (note)
  24. Rating Video
  25. Audio Format Video
  26. FEATURE PRESENTATION 4
  27. Intermission Video(s) (note)
  28. Rating Video
  29. Audio Format Video
  30. FEATURE PRESENTATION 5 (end note)
  31. Feature Presentation Outro Video(s)
  32. 3D Outro Video(s) - if upcoming Movie is in 3D format
  33. Movie Theater Outro Video(s)

Available in 3D if upcoming movie is 3D and settings enabled.
(note) At this point in the script, if multiple features have been queued and the skin uses home menu integration, multiple rating videos, audio format videos, features, and intermission videos will take the place of a single feature. A total of 5 features can be queued. This option can be even larger if you use one of the starting methods suggested in the Script Starting methods section.

You setup the folders first (they can be networked locations or local), then go into the cinema experience configuration and select what you want turned on to show during the flow and where that file source is.

For the home automation stuff see the integration section.  This is for things like dimming the lights, etc.  Of course, you'll need to do a bit more research on this, as I've not setup home automation yet with CE, but I will be, and when I do, I'll post it most likely right here.

In order to play a movie using the cinema experience, you need to select the movie and show the movie details. One of the items in the list of actions along with the standard "Play" button will be "cinema experience" button.  Choose that one and you'll be on your way.  The default button, "Play", will just play the video without any of the cinema experience.   I really like that I've setup the time of the trivia to display for 10 minutes (this can be changed in the CE config).  This allows me to go make popcorn and tell everyone that the movie will start at a certain time, and just show up right before that time and it starts into the intro videos and trailers.  It's really, really, really cool.  Did I mention it was really cool?
Using your phone or tablet to control Kodi
I Installed the android app Kore on my phone to control KODI over the network.  It works great, but you also need to make sure that you set Kodi to allow to accept network remote controls:
  1. Go to System->Settings->Services->Webserver and enable the setting Allow control of XBMC via HTTP;
  2. Take note of the Port number that is selected, the Username and the Password (if any). You’ll need to input this in Kore;
  3. Go to System->Settings->Services->Remote control and enable the settings Allow programs on this system to control XBMC and Allow programs on other systems to control XBMC.


No comments:

Post a Comment