Skip to content

aaron112/mjpg-streamer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

mjpg-streamer

MJPEG Streamer with raspicam input plugin (based on raspistill mmal source code)

Simply compile with 'make clean all' from within the mjpeg streamer experimental folder.

You'll need to have cmake and a dev version of libjpeg installed. I used libjpeg62-dev.

Discussion / Questions / Help

Probably best in this thread http://www.raspberrypi.org/phpBB3/viewtopic.php?f=43&t=45178

Instructions

You can run from the mjpeg streamer experimental folder with:

export LD_LIBRARY_PATH=.
./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so"

You can specify options, like in raspivid:

export LD_LIBRARY_PATH=.
./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -x 1280 -y 720 -fps 15 -ex night"

It does support upto 1080p 30fps, but the bandwidth produced would be more than the usb bus (and therefore ethernet port / wifi dongle) can provide. 720p 15fps is a good compromise.

Here's some Help:

 ---------------------------------------------------------------
 Help for input plugin..: raspicam input plugin
 ---------------------------------------------------------------
 The following parameters can be passed to this plugin:

 [-fps | --framerate]...: set video framerate, default 1 frame/sec
 [-x | --width ]........: width of frame capture, default 640
 [-y | --height]........: height of frame capture, default 480
 [-quality].............: set JPEG quality 0-100, default 85
 [-usestills]...........: uses stills mode instead of video mode
 [-preview].............: enable full screen preview
 
 -sh : Set image sharpness (-100 to 100)
 -co : Set image contrast (-100 to 100)
 -br : Set image brightness (0 to 100)
 -sa : Set image saturation (-100 to 100)
 -ISO : Set capture ISO
 -vs : Turn on video stablisation
 -ev : Set EV compensation
 -ex : Set exposure mode (see raspistill notes)
 -awb : Set AWB mode (see raspistill notes)
 -ifx : Set image effect (see raspistill notes)
 -cfx : Set colour effect (U:V)
 -mm : Set metering mode (see raspistill notes)
 -rot : Set image rotation (0-359)
 -hf : Set horizontal flip
 -vf : Set vertical flip
 ---------------------------------------------------------------

Some of the camera options like ISO may not work due to it not working in the mmal-libs.

Video mode is the default as it allows much smoother video (higher framerates). Stills mode allows you to use the full-frame of the sensor, but has a max framerate of around 8fps, probably less.

In order to have preview output shown on the raspi screen add the -preview option.

This should run indefinately. ctrl-c closes mjpeg streamer and raspicam gracefully.

Fork of http://sourceforge.net/projects/mjpg-streamer/ and based on https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/raspicam/RaspiStill.c modified mmal header and source files from https://github.com/raspberrypi/userland/tree/master/interface/mmal

Releases

No releases published

Packages

No packages published

Languages

  • C 51.3%
  • C++ 44.8%
  • HTML 2.0%
  • Makefile 0.7%
  • JavaScript 0.5%
  • CSS 0.3%
  • Other 0.4%