Hi !
I'm trying to set up motion detection with motion, but I do not understand why its stuck in 800x600 video mode. Can anyone look at these logs and may be give me a hint on how to reach 1920x1080 (which the camera can do).
Here is from motion.log:
Quote:
[1:ml1] [NTC] [ALL] [Jan 15 12:49:57] motion_init: Camera 0 started: motion detection Enabled
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_device_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_device_capability: - STREAMING
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_input_select: Name = "Camera 1"- CAMERA
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: Configuration palette index 17 (YU12) for 1920x1080 doesn't work.
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: Supported palettes:
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: (0) MJPG (Motion-JPEG)
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: (1) YUYV (YUYV 4:2:2)
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_set: Testing palette YUYV (1920x1080)
[1:ml1] [WRN] [VID] [Jan 15 12:49:57] v4l2_pixfmt_set: Adjusting resolution from 1920x1080 to 800x600.
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_set: Using palette YUYV (800x600)
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: Selected palette YUYV
|
Here are all the supported formats for the camera:
Quote:
v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'MJPG' (Motion-JPEG, compressed)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
[1]: 'YUYV' (YUYV 4:2:2)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
|
I assume I need to change it to motion JPEG someshow?
I found something in motion's manual, but I was really confused how change the settings:
https://motion-project.github.io/mot...l#video_params
If video_params is the solution, where is this used? I tried passing it with sudo motion video_params palette=8, but that didn't work.
I tried adding it to the config file, but it didn't work either.
If anyone knows what the solution is or could point me in the right direction it would be much appreciated.