• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoInstall mjpg-streamer on pcDuino
Previous Next

Install mjpg-streamer on pcDuino

Posted by: Alvin Jin , March 2, 2014

[vc_row][vc_column width=”1/1″][vc_column_text]图片1

“mjpg-streamer”, is used to capture images from the webcam camera,put them in the form of stream to the browser, such as Firehox, Cambozola, VLC player by network. mipg-streamer can use some webcams hardware compression feature to reduce the overhead of the CPU, providing a lightweight and low power consumption for embedded devices and some conventional servers.

1. Install mjpg-streamer required dependent libraries

$sudo apt-get install libv4l-dev

$sudo apt-get install libjpeg8-dev

$sudo apt-get install subversion

$sudo apt-get install imagemagick

 

2. Download and install mjpg-streamer

$svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer

Note: the website maybe changed by remapping, you need input this address to browser then you can see the website.https://svn.code.sf.net/p/mjpg-streamer/code/

$cd mjpg-streamer/mjpg-streamer

$make USE_LIBV4L2=true clean all

$sudo make DESTDIR=/usr install

 

3. Running the below command to open the server.

$mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0  -y -r 320x240 -f 10" -o "/usr/lib/output_http.so -p 8090 -w /var/www/mjpg_streamer"

 

4. Checking pcDuino IP address ($ ifconfig), open pcDuino browser or other browser which in the same Local area network, input the below address then will see the video(pcDuino IP address is 192.168.100.21),

192.168.100.21:8090/?action=stream

图片2[/vc_column_text][/vc_column][/vc_row]

Tags: pcDuino

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors