How To Have Public Stream From Raspberry Pi Camera
So I just got the photographic camera module for my Raspberry Pi yesterday, and I'thousand working on streaming live video bespeak from the camera direct to my PC. And then without farther ado, let's jump right in.
Before everything, make certain that you lot become your camera module perfectly ready, and go yourself familiar with the bones commands to control the photographic camera. If you have no clue how to install the photographic camera module, please refer to this tutorial on YouTube: http://world wide web.youtube.com/sentinel?five=T8T6S5eFpqE
Once you got everything fix, we can now start streaming some video from our photographic camera to PC.
Step 1:
download Mplayer and NetCat on your PC and unzip the files in your chosen directory:
http://dl.dropboxusercontent.com/u/106074492/mplayer%20and%20netcat.zip
Step 2:
install the same software in Raspberry Pi past type in the following commands in the terminal:
sudo apt-become install mplayer netcat
Stride iii:
go to your PC, click "start", and then tpye in "cmd", press Enter. And so type in:
ipconfig
a list of things will bear witness up. You need to scroll up and observe the line says
"IPv4 Address ……..thirty.xxx.xxx.xxx"
the number after the dotted line is the IP address for your PC. Write that down, you volition need it.
Pace 4:
In the same cmd window, go to the folder you chose to save Mplayer and NetCat, for example:
cd C:\Users\Desktop\mplayer and netcat
then blazon in:
nc -l -p 5001 | mplayer -fps 31 -cache 1024 –
you lot volition run into something like"Playing — Reading from stdin … Enshroud fill: 0.00% <0 bytes>" showing
Step 5:
Go to Raspberry Pi final, type in
raspivid -t 999999 -o – | nc thirty.thirty.xxx.xxx 5001
supersede that xxx with your PC IP address
Washed
Now y'all should see the video stream showing upwards on your PC, Savor!
PS: You tin also use the same principle to permit Raspberry Pi receive its own video stream. All you need to exercise is to have ii terminal opened, i to type in commands in Step 4, and another to type in commands in Step v with the IP address of the Raspberry Pi instead of PC. Only since the Pi is much weaker than the PC, this will accept up all the retention and wearisome everything down. I mean… very very dull…
Give it a try and let me know if you take any questions~
Source: https://nerdfuns.wordpress.com/2014/01/03/raspberry-pi-camera-module-how-to-live-stream-to-your-pc/
Posted by: crewsmistne.blogspot.com
0 Response to "How To Have Public Stream From Raspberry Pi Camera"
Post a Comment