PINE64
MJPG-streamer for UVC devices - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+---- Forum: POT modules (https://forum.pine64.org/forumdisplay.php?fid=8)
+---- Thread: MJPG-streamer for UVC devices (/showthread.php?tid=1067)



MJPG-streamer for UVC devices - msarna - 05-16-2016

Hi.
I've needed to set it up so why not to write about it. 

Tested on Debian Linux Jessie with Mate GUI Image [20160508] by lenny.raposo with Longsleep kernel

0. ssh debian@pine64pro
1. sudo su -
2. apt-get install libjpeg8-dev imagemagick libv4l-dev cmake
3. git clone https://github.com/jacksonliam/mjpg-streamer
4. cd mjpg-streamer/mjpg-streamer-experimental
5. make
6. ./mjpg_streamer ./mjpg_streamer -o "output_http.so -w ./www" -i "input_uvc.so"

This needs to be run by root (for testing purpose). In other cases You can get: ERROR opening V4L interface: Permission denied.
To fix this You need to add  any other user You use (debian is there) to video group. You can do this like this: sudo usermod -a -G video  <username>
To make it work please logout and login.