Code Monkey home page Code Monkey logo

picam-setup's Introduction

How to use this app

This app shows mjpeg (also known as webcam) streams. Type the URL of your mjepg-stream in the URL-box and choose connect. A lot of streams can be found here: http://www.mjpeg.net.

These examples worked the last time I checked:

URL: http://82.147.33.166/mjpg/video.mjpg?camera=1 URL: http://87.213.108.6/mjpg/video.mjpg?camera=1

Enter these URL's in the URL-box of the Webcam Pi app and leave the uername and password blank.

Setup your OWN MJPEG stream

To install a webcam streamer on Windows, download webcamXP at http://www.webcamxp.com/home.aspx and install. The standard URL of your WebcamXP stream is http://IPADDRESS/cam_[CHANNEL].cgi.

To setup your own MJPEG stream from a Raspberry (small computer) or LINUX computer, follow the following steps.

PiCam-Setup

A simple install script for initializing your Raspberry Pi with mpeg-streamer to stream your webcam on a Raspberry PI. To run the script make sure your repository is up-to-date and Git and dialog is installed.

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y git

After this you can download the script

cd
git clone git://github.com/Ploeper/PiCam-Setup.git

Execute the script

cd PiCam-Setup
sudo chmod +x picam_setup.sh
sudo ./picam_setup.sh

After the installation you can run the picam_run.sh script to launch the webcam with some default example options.

sudo chmod +x picam_run.sh
sudo ./picam_run.sh

To launch the webcam streamer with the parameters for your webcam, edit the picam_run.sh script. To launch the webcam on boot with your parameters, edit the picam_service.sh script and launch the boot option in the setup script.

Access your webcam

Get the IP adress of your Raspberry

ifconfig

The eth0 interface should display your IP-adress. Type 'your-ip:8081' in your address bar and you should see the webserver of mpjg-streamer.

Internet access/Webcam Pi

To access the webcam through Webcam Pi, you must forward your router. There are a lot of tutorials on this topic (http://www.wikihow.com/Set-up-Port-Forwarding-on-a-Router). The default port is 8081 and you should forward this to the Raspberry Pi device.

Security

To secure your webcam, add the following parameter to your launch-script

mpeg-streamer ... -c username:password

Don't forget to rerun picam_setup.sh if you edited the picam_service.sh file.

Windows Phone App access

In the URL field of the app type 'http://ip:port/?action=stream. Leave the username and password field blank if you have no security settings.

Stop

To stop the webcam streamer run

killall mpjg_streamer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.