Skip to content

geanxyz/raspberry-live-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Realtime Stream with RaspiCam

livestreaming with raspberry pi 3, raspicam module and mjpg-streamer

Installation

Update the raspberry pi

sudo apt-get update
sudo apt-get -y upgrade

reboot

Also update the firmware versions

sudo rpi-update

reboot

Enable camera module in raspi-config

sudo raspi-config

in menu Interface Options => enable camera after that, reboot again

Enable v4l2 module

sudo modprobe bcm2835-v4l2

add bcm2835-v4l2 to /etc/modules to enable it for auto-loading

verify the interface

ls -l /dev/video0

Install some dependencies

sudo apt-get install libjpeg8-dev imagemagick

Go to mjpg-directory and patch the version

cd mjpg-streamer
patch -p0 < ../input_uvc_patch

Compile it

make

and install it

sudo make install

Test

export LD_LIBRARY_PATH=~/mjpg-streamer
./mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 30" -o "output_http.so -w ./www"

or

/home/pi/raspberry-live-stream/mjpg-streamer/mjpg_streamer -i "/home/pi/raspberry-live-stream/mjpg-streamer/input_uvc.so -d /dev/video0 -r 1280x768 -f 30" -o "/home/pi/raspberry-live-stream/mjpg-streamer/output_http.so -w /home/pi/raspberry-live-stream/mjpg-streamer/www -p 8080" 

Browser

Try to access your new installation with: http://:8080/ or http://:8080/?action=stream

Sources

About

live streaming with RaspiCam and mjpg-streamer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published