After trying several hundred different combinations of device formats and capture palettes I've decided to try another approach.
After some searching, I found another member (chrisp) who was experiencing a similar issue. He was able to get it working by using mjpeg-streamer instead.
I'm getting errors when trying to run the mjpeg-streamer make file. I've tried searching for these errors and the only similar issue I have found is a OpenWRT thread (
). It appears they fixed the issue by getting the latest mjpeg-streamer SVN release, however this thread was from 2008.
Code: Select all
make -C plugins/input_uvc clean
make[1]: Entering directory `/usr/src/mjpg-streamer-r63/plugins/input_uvc'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/usr/src/mjpg-streamer-r63/plugins/input_uvc'
make -C plugins/input_testpicture clean
make[1]: Entering directory `/usr/src/mjpg-streamer-r63/plugins/input_testpicture'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/usr/src/mjpg-streamer-r63/plugins/input_testpicture'
make -C plugins/output_file clean
make[1]: Entering directory `/usr/src/mjpg-streamer-r63/plugins/output_file'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/usr/src/mjpg-streamer-r63/plugins/output_file'
make -C plugins/output_http clean
make[1]: Entering directory `/usr/src/mjpg-streamer-r63/plugins/output_http'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/usr/src/mjpg-streamer-r63/plugins/output_http'
make -C plugins/output_autofocus clean
make[1]: Entering directory `/usr/src/mjpg-streamer-r63/plugins/output_autofocus'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/usr/src/mjpg-streamer-r63/plugins/output_autofocus'
make -C plugins/input_gspcav1 clean
make[1]: Entering directory `/usr/src/mjpg-streamer-r63/plugins/input_gspcav1'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/usr/src/mjpg-streamer-r63/plugins/input_gspcav1'
rm -f *.a *.o mjpg_streamer core *~ *.so *.lo
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -c -o mjpg_streamer.o mjpg_streamer.c
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -c -o utils.o utils.c
utils.c: In function âdaemon_modeâ:
utils.c:69: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result
utils.c:75: warning: ignoring return value of âdupâ, declared with attribute warn_unused_result
utils.c:76: warning: ignoring return value of âdupâ, declared with attribute warn_unused_result
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -lpthread -ldl mjpg_streamer.o utils.o -o mjpg_streamer
chmod 755 mjpg_streamer
make -C plugins/input_uvc all
make[1]: Entering directory `/usr/src/mjpg-streamer-r63/plugins/input_uvc'
gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o v4l2uvc.lo v4l2uvc.c
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:38:1: warning: "V4L2_CID_BACKLIGHT_COMPENSATION" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:886:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:39:1: warning: "V4L2_CID_POWER_LINE_FREQUENCY" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:877:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:40:1: warning: "V4L2_CID_SHARPNESS" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:885:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:41:1: warning: "V4L2_CID_HUE_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:883:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:43:1: warning: "V4L2_CID_FOCUS_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1136:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:44:1: warning: "V4L2_CID_FOCUS_ABSOLUTE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1134:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:45:1: warning: "V4L2_CID_FOCUS_RELATIVE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1135:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:47:1: warning: "V4L2_CID_PAN_RELATIVE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1126:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:48:1: warning: "V4L2_CID_TILT_RELATIVE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1127:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:51:1: warning: "V4L2_CID_EXPOSURE_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1116:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:52:1: warning: "V4L2_CID_EXPOSURE_ABSOLUTE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1123:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:53:1: warning: "V4L2_CID_EXPOSURE_AUTO_PRIORITY" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:1124:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from v4l2uvc.c:27:
uvcvideo.h:56:1: warning: "V4L2_CID_WHITE_BALANCE_TEMPERATURE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from v4l2uvc.c:27:
/usr/include/linux/videodev2.h:884:1: warning: this is the location of the previous definition
gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
jpeg_utils.c:27:21: error: jpeglib.h: No such file or directory
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:38:1: warning: "V4L2_CID_BACKLIGHT_COMPENSATION" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:886:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:39:1: warning: "V4L2_CID_POWER_LINE_FREQUENCY" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:877:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:40:1: warning: "V4L2_CID_SHARPNESS" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:885:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:41:1: warning: "V4L2_CID_HUE_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:883:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:43:1: warning: "V4L2_CID_FOCUS_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1136:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:44:1: warning: "V4L2_CID_FOCUS_ABSOLUTE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1134:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:45:1: warning: "V4L2_CID_FOCUS_RELATIVE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1135:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:47:1: warning: "V4L2_CID_PAN_RELATIVE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1126:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:48:1: warning: "V4L2_CID_TILT_RELATIVE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1127:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:51:1: warning: "V4L2_CID_EXPOSURE_AUTO" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1116:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:52:1: warning: "V4L2_CID_EXPOSURE_ABSOLUTE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1123:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:53:1: warning: "V4L2_CID_EXPOSURE_AUTO_PRIORITY" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:1124:1: warning: this is the location of the previous definition
In file included from v4l2uvc.h:36,
from jpeg_utils.c:30:
uvcvideo.h:56:1: warning: "V4L2_CID_WHITE_BALANCE_TEMPERATURE" redefined
In file included from /usr/include/linux/videodev.h:17,
from v4l2uvc.h:34,
from jpeg_utils.c:30:
/usr/include/linux/videodev2.h:884:1: warning: this is the location of the previous definition
jpeg_utils.c:35: error: field âpubâ has incomplete type
jpeg_utils.c:37: error: expected specifier-qualifier-list before âJOCTETâ
jpeg_utils.c:53: warning: return type defaults to âintâ
jpeg_utils.c: In function âMETHODDEFâ:
jpeg_utils.c:53: error: expected declaration specifiers before âinit_destinationâ
jpeg_utils.c:70: error: expected declaration specifiers before âMETHODDEFâ
jpeg_utils.c:89: error: expected declaration specifiers before âMETHODDEFâ
jpeg_utils.c:105: error: expected declaration specifiers before âGLOBALâ
jpeg_utils.c:133: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
jpeg_utils.c:199: error: expected â{â at end of input
make[1]: *** [jpeg_utils.lo] Error 1
make[1]: Leaving directory `/usr/src/mjpg-streamer-r63/plugins/input_uvc'
make: *** [input_uvc.so] Error 2