Combining Raspberry Pi with Pi Camera, essentially you get a portable and lightweight internet-connected camera (or IP Camera). Good enough for local streaming in HD over your home network but what about outside world? What if you want to stream live videos, cover events or friends party?

Great Idea but how do you get started with this? And how the heck to get the footage onto the internet??

Not to worry anymore - with Raspberry Pi and YouTube its possible without pulling your hairs. As with most things Raspberry Pi, it’s remarkably straightforward and thanks to YouTube Live streaming - offer great flexibility to stream in HD for free - Just verify your YouTube account, enable your Live Streaming and you are Done.

Project Video

Coming Soon!!

Step by Step Guide

  • Raspberry Pi 3
  • uSD Card (pre-loaded with latest Rasbian OS - preferably with the Pixel desktop)
  • Pi Camera Module (original or NoIR)
  • Raspberry Pi Power Supply
  • Portable battery supply (optional)
  • Youtube and/or Facebook account (you already might have - if not, its free)

1. Open a browser and go to www.youtube.com

2. On the top right-hand side click on "Sign In" button to sign-in.

3. Enter your Username and Password to log-in to your Youtube account

4. Once logged in click on your profile picture (top right corner) and from the drop-down menu select "Creator Studio"

5. First-time users only: Click on the Get Started and verify your YouTube account via phone call or SMS

6. Once you are under Creator Studio you will see the following screen, now on the left-hand panel select "Live Streaming"

7. Scroll down to Encoder Setup section and make a note of:

"Server name" - rtsp://URL

"Stream name/key" - Please note that the Stream key needs to be kept private. Anyone with this information can stream to your YouTube channel!

1. Connect the Pi Camera to Raspberry PI CSI slot.

2. Insert the pre-loaded uSD card into the Raspberry Pi uSD card slot.

3. Connect the Raspberry Pi to the monitor and the keyboard & mouse.

4. Connect the power supply and turn it ON to start the Raspberry Pi.

5. Once booted, go to Start>Preferences>Raspberry Pi Configuration. This will open RPi configuration window, under Interface tab Enable Camera & SSH (for remote headless connection).

6. To stream the video feed from your Raspberry Pi camera, you’ll need to install avconv. This is part of the libav-tools package, open a terminal window and run the following command. Once the avconv is installed, you are ready to create the feed for your YouTube channel.

sudo apt-get install libav-tools

7. You’ll need the stream name/key that you noted down earlier, and run following command:

raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | avconv -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/[YOUR STREAM KEY]

8. If everything goes well your Raspberry Pi should start streaming. On Raspberry Pi or any computer with internet connectivity, go to the browser and open your YouTube channel.

9. After some time OFFLINE grey button will turn to Green...Hurray, You are STREAMING LIVE!!!

Downloads

No Downloads Available