ScrewCamera: Difference between revisions
From charlesreid1
(→Errors) |
(→Errors) |
||
| Line 47: | Line 47: | ||
<pre> | <pre> | ||
$ # | $ # no images at all: | ||
$ ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -p 8080 -w ./www" | $ ./mjpg_streamer -i "./input_uvc.so -n" -o "./output_http.so -p 8080 -w ./www" | ||
$ | $ | ||
</pre> | </pre> | ||
Revision as of 10:02, 19 August 2017
Mini CCTV camera that is embedded in a screw.
Prerequisite software
$ apt-get -y install guvcview
Next install some prerequisite software for mjpg-streamer:
$ apt-get -y install cmake libjpeg62-turbo-dev $ git clone https://github.com/jacksonliam/mjpg-streamer.git $ cd mjpg-streamer/ $ cd mjpg-streamer-experimental $ make $ make install
Flags
Input Flags
When specifying the input .so, use the following flags:
The -d flag is used to specify the device - for example, /dev/video0.
The -n flag is useful for suppressing error messages about pan/tilt controls, which most cameras don't have anyway.
The -y flag is used to specify YUYV format, in case the camera does not support mjpeg format.
The -r flag specifies the resolution, or whatever.
The -f flag specifies the frame rate.
Errors
Tried this command, but no images showed up at all through the web interface:
$ ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -p 8080 -w ./www"
Tried a few more commands:
$ # no images at all: $ ./mjpg_streamer -i "./input_uvc.so -n" -o "./output_http.so -p 8080 -w ./www" $