If you have some IP Cameras around the house that are ONVIF compliant or have h.264 video encoding, and if you like to get dirty in some DIY, this project is for you.
You will need a Raspberry Pi or an Orange Pi. I'm using for my tests the "Raspberry PI 3 Model B", but any Raspberry Pi with an Ethernet port or WiFi support should work. As for the Orange Pi, in my tests I used the Orange Pi Zero 512MB RAM version.
Note: This feature requires IP Camera Viewer Pro 2.7 or newer version on your Roku device.
Along with Raspberry Pi, the software that converts h.264 rtsp streams to HLS for the IP Camera Viewer Pro also works on Orange Pi. Tested on the $8 Pi Zero 512MB RAM version
To install the OS on the Orange Pi, follow this guide.
After installing the OS on the Orange Pi, follow the guide bellow (skip to step 2) to install the software. For the Raspberry Pi, start with step 1.
You will need a Raspberry Pi. I'm using for my tests the "Raspberry PI 3 Model B", but any Raspberry Pi with an Ethernet port or WiFi support should work.
If you already have Raspbian installed on your Raspberry Pi, skip to 2
First, you need to install Raspbian OS on your Raspberry Pi. To do this, you can follow the instructions here: https://www.raspberrypi.org/learning/noobs-install/worksheet/ ... or on short, here is what you need to do:
Note: You can use H.264 to HLS on the Pi along with any other software you want to use, for example Retro Pie. My software gets along just fine with almost anything else.
Wait for the Raspbian OS install to be done and then, open a console window and type:
wget https://raw.githubusercontent.com/e1ioan/rokuphp/master/install.sh
chmod +x install.sh
sudo ./install.sh
If php7 fails to install, you can try installing php5 using the following set of commands:
wget https://raw.githubusercontent.com/e1ioan/rokuphp/master/installphp5.sh
chmod +x installphp5.sh
sudo ./installphp5.sh
You will be shown two option:
Select 1 or 2 and wait for "DONE INSTALL" message.
At this point, if you didn't receive any errors, you are ready to go. Open IP Camera Viewer Pro on Roku, go into Settings and in the field PiIP enter the the install script showed at the end.
To configure the cameras, in a browser enter the IP, create a user, log in... and create cameras.
The cameras created will be imported automatically to IP Camera Viewer Pro on Roku.
If in any browser, you open your Raspberry Pi IP address, you will be able to configure your cameras. On the Roku you don't need to do anything, the cameras will be imported automatically from the Pi. Lets say the IP for you Raspberry Pi is 192.168.1.70. You open this address in your browser http://192.168.1.70 (on the phone or computer) and you'll get to the Login page:
After Login in, you get to the "menu" page where you can see a list of all the cameras you already added and the "services" available:
First option, will allow you to add rtsp cameras manually:
The second option will allow you to add any ONVIF compliant camera:
All the cameras added will be automatically imported on Roku.
Of course you will be able to edit/delete any of the cameras
The last option, has nothing to do with Roku (no roku necessary), but I thought it will be nice to be there: You can broadcast live on youtube or twitch your IP camera with a click of the button:
So that's about it!
Here is a youtube video showing the Roku playing a h.264 rtsp live stream coming from an Axis IP camera. Of course, audio is supported:
Let me know what you think. Thank you!