You are not logged in.
On pure arch.
Sorry if this a QGN, TGN, TLN, etc
Qt V4L2 test utility finds my webcam no prob, and reports the following:
Device
/dev/video0 (wrapped)
Card
USB Camera (093a:2620)
Driver
gspca_pac7302
Bus
usb-0000:00:1d.1-1
However, motion reports:
[1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled
[1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] v4l2_device_capability: - READWRITE
[1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING
[1:ml1] [NTC] [VID] v4l2_input_select: Name = "gspca_pac7302"- CAMERA
[1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: Configuration palette index 17 (YU12) for 640x480 doesn't work.
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: Supported palettes:
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (0) PJPG (GSPCA PJPG)
[1:ml1] [NTC] [VID] v4l2_pixfmt_set: Testing palette PJPG (640x480)
[1:ml1] [NTC] [VID] v4l2_pixfmt_set: Using palette PJPG (640x480)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: Selected palette PJPG
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [ERR] [ALL] jpgutl_error_exit: Quantization table 0x00 was not defined
[1:ml1] [CRT] [VID] vid_mjpegtoyuv420p: Corrupt image ... continue
How to fix?
Thx
Offline
i resolved this by rolling my own motion detector, using v4l2 test bench, scrot, and graphicsmagick.
instead of motion, i run v4l2 capture, take a screenshot every few seconds, and compare to the previous screenshot.
i can share the script here if anyone wants, but the forum rules say not to post how-to's.
Technically, i guess i can't mark this thread "Solved", since my fix is a workaround.
thx
Last edited by atomikegg (2019-12-08 02:08:40)
Offline