Introduction: Raspberry Pi As Chromecast Alternative (Raspicast)

Picture of Raspberry Pi As Chromecast Alternative (Raspicast)

In this Instructables, I will show you how to use raspberry pi 3 as Chromecast alternative. It is also worth mentioning that this is not a direct clone to Chromecast and that there are limitations. This method does not support the cast button but will stream Youtube videos as well as local audio and video files directly from your smartphone using an Android application. And I believe this application is only for android devices.

So, actually what is Chromecast?

Chromecast is a streaming media adapter from Google that allows users to play online content such as videos and music on a digital television.
The adapter is a dongle that plugs into the TV's HDMI port; a cable connects to a USB port to power the device. A mobile app makes it possible to essentially use a smartphone, tablet, laptop or desktop computer as a TV remote. Once the streaming begins, it's not necessary to keep the app open, and the device can be used for other purposes. Chromecast can stream content from an increasing number of sources including Netflix, Hulu Plus, YouTube, Google Play music and movies and the Chrome browser.

Step 1: Hardware Required

Picture of Hardware Required
  • Raspberry Pi 3 (All model will work, but then it will require a USB Wifi dongle).
  • Raspberry Pi Case.
  • Heatsinks for Raspberry Pi.
  • Micro SD card for storage.
  • Micro Usb charger and Cable

  • HDMI cable

  • SD card reader to load Raspbian onto the SD card

  • Mouse And Keyboard

Step 2: Assembling the Case and Adding Heatsink to the Board

Picture of Assembling the Case and Adding Heatsink to the Board

Here Heatsink in not mandatory, but while watching full 1080p videos for long time makes the cpu warm much. So it's better to add these.

The case which I've is used is easy to assemble and work with.

Step 3: Download and Install Raspbian Onto SD Card

Picture of Download and Install Raspbian Onto SD Card

Download Raspbian operating system for the Pi here.

Now carefully follow the instructions to install it onto the SD card (Mac and Windows) here.

Step 4: Getting Started

Picture of Getting Started

Plug the mouse and keyboard dongle. Power through the micro USB cable and connect HDMI cable to a Screen.

After booting up, connect to a WiFi network.

Step 5: Enable SSH

Picture of Enable SSH

You can enable SSH by navigating to Preferences > Raspberry Pi Configurations and click Interfaces then select SSH

Step 6: Essential for Software

Picture of Essential for Software

We need to grab some software required by the omxiv so it can be compiled.

Now click on the black terminal icon on the top bar of the Raspbian desktop to open the Terminal.

Type,

$ sudo apt-get install libjpeg8-dev libpng12-dev

Step 7: Download and Compile the OMXIV for Casting

Picture of Download and Compile the OMXIV for Casting

In terminal and type these commands in to download and compile the software, one by one

$ git clone https://github.com/HaarigerHarald/omxiv
$ cd omxiv $ make ilclient $ make -j4 $ sudo make install

Step 8: Download Raspicast on Android

Picture of Download Raspicast on Android

Download and install Raspicast from Playstore. Download

Step 9: Retrieve Your IP Address of Your PI

Picture of  Retrieve Your IP Address of Your PI

Once everything is compiled discover your Pi's IP address so that you can connect to it over the network. To do this, click on the black terminal icon on the top bar of the Raspbian desktop to open the Terminal.

Type "ifconfig" and then find the wireless IP address ("inet addr") under "wlan0" that will look something like 192.168.43.252 and make a note of it. Note it is not "192.168.43.252", there should be a different address under "wlan0".

Make sure your raspberry pi and phone are connected to same WiFi network.

$ ifconfig

Step 10: Casting Your Content to Raspberry Pi

Picture of  Casting Your Content to Raspberry Pi

After everything is downloaded Open the software and click on the three dots on the top right corner, then you will be asked for an Hostname or IP address. At this point you now insert the IP address you got earlier along with the Username and password on your raspberry pi.

The default username will be "pi". Leave port to 22 as itself

Now you can open your YouTube app and select a video to cast. Then but clicking the share icon look for the “raspicast”.

You can also cast Pictures, Music and Videos which or on your Device directly to target destination.

Comments

Raphango (author)2018-01-16

Great! Do you know if it should work with RPi 1? Thanks!

Maggie Shah (author)Raphango2018-01-20

Yes It will work

zhivazhiva (author)2018-01-19

Hey! Nice tutorial. Do you know if raspicast is available for ios? Wife has an iPhone ...

Maggie Shah (author)zhivazhiva2018-01-20

Sorry but raspicast is only available for Android.

Thank you. :)

Ylechasseur (author)2018-01-14

Very good tutorial !! Thanks to share

Maggie Shah (author)Ylechasseur2018-01-16

Much appreciated :)

BaReinhard (author)2018-01-14

Great tutorial! I might give this a shot. If everything works out this would be a great feature to add to existing projects!!

Maggie Shah (author)BaReinhard2018-01-16

Thank you :)

Aerandir14 (author)2018-01-12

I prefer the OSMC distribution alternative as it provides more flexibility, but nice tutorial!

Maggie Shah (author)Aerandir142018-01-16

It's support any of Raspberry pi's OS. Thank you

mfonseca2 (author)2018-01-14

great tutorial, simple instructions! ..however, it seems that the pi is not responding to any cast from raspicast. omxiv is installed and running, I have rebooted it, and I have the correct ip/usr/pwd combo. Can anyone else double-check that a step isn't missing, or am I just this dumb?

Maggie Shah (author)mfonseca22018-01-16

Just check your Raspberry pi's IP address and SSH setting of your Application. They should be the same. Thank you

GaryC148 (author)2018-01-14

Which Raspbian version did you use? Raspbian w/ Desktop or Raspbian Light?

Maggie Shah (author)GaryC1482018-01-16

Both will work fine. Any of Raspberry pi's OS are supported.

PARNIANI (author)2018-01-15

Hello

Please teach outernet with Raspberry Pi 3

hbpate (author)2018-01-15

Works perfectly for me. Many times faster than Chromecast using android. I love it !@

Irwini (author)2018-01-15

Just install Kodi / OpenElec / LibreElec or OSMC - they all allow you to cast every possible video or sound format and give a tone of additional features. At the same time you do not need any console-hustle - simply burn an image to SD card, plug it in, done.

PointerStop (author)Irwini2018-01-15

+1. I've been using OSMC for a while now.

PointerStop (author)2018-01-15

Really? I've been streaming video with a Pi 2 for years, without any trouble. The Pi 3 will handle it easily.

FrancescC3 (author)2018-01-15

It does! If you are not able to configure it, don’t blame on machine!

PaulS69 (author)2018-01-15

Nice tutorial, I'm guessing that this won't handle copyrighted content

About This Instructable

38,232views

372favorites

License:

More by Maggie Shah:Raspberry Pi As Chromecast Alternative (Raspicast)CUT THE CORD: DIY Qi WIRELESS CHARGING PAD AND STAND. Using Motors With L293D IC
Add instructable to: