RaspiCam

Standard

The Project

The project is to take photos with a camera connected to my Raspberry Pi and stream live video from the camera via my Raspberry Pi to my iPad.

What is a Raspberry Pi?: http://www.raspberrypi.org/

Progress

 

July 24, 2014:

I finished the entire project today. This project was easy and wasn’t as challenging as the other projects I have done. The hardest part was finding out how to stream the video to my iPad. I researched on the internet and found an app called VLC which allows you to stream video. Then I installed VLC on the Raspberry Pi and typed in a command to stream the camera video. Then I entered the Raspberry Pi’s ip address to view the video on my iPad.

How To Do It Yourself

Step 1: Set up the camera

Step 2: How to take pictures and videos

To take a photo with the Raspberry Pi camera enter the following command into the LXTerminal after pointing the camera at what you want to take a picture of sudo raspistill -o filename.jpg This will save an image into your home directory. To view the image go to the file manager on your Pi and go to the home directory.

To take a video point at what you want to take a video of and enter sudo raspivid -o filename.h264 -t 10000  into the LXTerminal. This will save a video that is ten seconds long into your home directory. To change the duration of the video change the number after “-t” which is the duration of the video in milliseconds.

Step 3 Stream video to your iPad

To stream video first you need to install VLC on both the iPad and the Raspberry Pi. To install VLC on the Raspberry Pi enter
sudo apt-get install vlc  into the LXTerminal and wait for vlc to finish installing. To install VLC on the iPad go to the app store and download VLC.

Now to start streaming live video from the Raspberry Pi camera enter raspivid -o - -t 9999999 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8554}' :demux=h264 into the LXTerminal.

This will start the video stream. To view the video stream your Raspberry Pi must be connected to the internet with a wifi dongle.

Then you have to find out the ip address of your Raspberry Pi. This can be done by typing “ifconfig” into the LXTerminal.

Then go on VLC on your iPad and click “open network stream” and type in http://IPaddressOfRaspberryPi:8554 as the address. Replace where it says “IPaddressOfRaspberryPi” with your pi’s ip address. Then you should see video on your iPad.

Advertisements

One thought on “RaspiCam

Ask a Question or Comment Here

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s