Send Motion-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. libcamerify RPi5: v4l2_fps_set: Error setting fps and other
issues (Z4)
----------------------------------------------------------------------
Message: 1
Date: Sat, 6 Jul 2024 20:24:24 -0500
From: Z4 <[email protected]>
To: Motion discussion list <[email protected]>
Subject: [Motion-user] libcamerify RPi5: v4l2_fps_set: Error setting
fps and other issues
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
I still can't seem to get motion working on my raspberry Pi5. Tried 3
different cameras, pretty much same results:
1) green screen that appears to be a subset of the full image
2) [ERR] [VID] [Jul 06 19:44:07] v4l2_fps_set: Error setting fps.
Return code -1
Though motion comes up and runs, it appears its not happy with the
palette or some other setting(s). Here's the [shortened] log:
motion_init: Camera 41 started: motion detection Enabled
vid_start: Opening V4L2 device
util_parms_add: Parsed: >palette< >17<
util_parms_add: Parsed: >input< >-1<
util_parms_add: Parsed: >norm< >0<
util_parms_add: Parsed: >frequency< >0<
v4l2_device_open: Using videodevice /dev/video0 and input -1
v4l2_device_capability: ------------------------
v4l2_device_capability: cap.driver: "libcamera"
v4l2_device_capability: cap.card: "/base/axi/pcie@120000/rp1/i2c@8"
v4l2_device_capability: cap.bus_info: "libcamera:0"
v4l2_device_capability: cap.capabilities=0x84200001
v4l2_device_capability: ------------------------
v4l2_device_capability: - VIDEO_CAPTURE
v4l2_device_capability: - STREAMING
v4l2_input_select: Name = "/base/axi/pcie@120000/rp1/i2c@8", type
0x00000002, status 00000000
v4l2_input_select: Name = "/base/axi/pcie@120000/rp1/i2c@8"- CAMERA
v4l2_norm_select: Device does not support specifying PAL/NTSC norm
v4l2_pixfmt_try: Testing palette YU12 (640x480)
v4l2_pixfmt_stride: Checking image size 640x480 with stride 3200
v4l2_pixfmt_set: Using palette YU12 (640x480)
v4l2_fps_set: Trying to set fps to 15
v4l2_fps_set: Error setting fps. Return code -1
v4l2_fps_set: Device set fps to 15
v4l2_ctrls_list: No Controls found for device
v4l2_mmap_request: mmap information: frames=4
v4l2_mmap_query: 0 length=2304000 Address (f54bc000) offset 0
v4l2_mmap_query: 1 length=2304000 Address (f5288000) offset 2304000
v4l2_mmap_query: 2 length=2304000 Address (f5054000) offset 4608000
v4l2_mmap_query: 3 length=2304000 Address (f4e20000) offset 6912000
image_ring_resize: Resizing pre_capture buffer to 1 items
image_ring_resize: Resizing pre_capture buffer to 201 items
webu_parseurl: Sent url: /
webu_parseurl: Decoded url: /
webu_answer_strm: Connection from: 192.168.1.3
I am running motion with the following command:
libcamerify /usr/bin/motion -c /etc/motion/motion.conf -l
/var/log/motion.log -k 9 -d 9
which results in output:
[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file
/etc/motion/motion.conf
[0:motion] [NTC] [ALL] read_camera_dir: Processing config file
conf.d/camera41.conf
[0:motion] [NTC] [ALL] config_camera: Processing camera config file
conf.d/camera41.conf
[0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion.log)
[4:45:38.512415044] [4425] INFO Camera camera_manager.cpp:284 libcamera
v0.2.0
[4:45:38.539611961] [4426] INFO RPI pisp.cpp:695 libpisp version v1.0.5
999da5acb4f4 14-06-2024 (07:31:26)
[4:45:38.578252020] [4426] INFO RPI pisp.cpp:1154 Registered camera
/base/axi/pcie@120000/rp1/i2c@88000/imx219@10 to CFE device /dev/media2
and ISP device /dev/media0 using PiSP variant BCM2712_C0
[4:45:38.578401890] [4426] INFO RPI pisp.cpp:695 libpisp version v1.0.5
999da5acb4f4 14-06-2024 (07:31:26)
[4:45:38.595441437] [4426] INFO RPI pisp.cpp:1154 Registered camera
/base/axi/pcie@120000/rp1/i2c@80000/imx477@1a to CFE device /dev/media3
and ISP device /dev/media1 using PiSP variant BCM2712_C0
[4:45:38.600303271] [4425] WARN V4L2 v4l2_pixelformat.cpp:344
Unsupported V4L2 pixel format RPBP
[4:45:38.600883268] [4425] WARN V4L2 v4l2_pixelformat.cpp:344
Unsupported V4L2 pixel format RPBP
[4:45:38.601220304] [4425] WARN V4L2 v4l2_pixelformat.cpp:344
Unsupported V4L2 pixel format RPBP
[4:45:38.601491636] [4425] INFO Camera camera.cpp:1183 configuring
streams: (0) 640x480-YUV420
[4:45:38.601675173] [4426] INFO RPI pisp.cpp:1450 Sensor:
/base/axi/pcie@120000/rp1/i2c@88000/imx219@10 - Selected sensor format:
640x480-SBGGR10_1X10 - Selected CFE format: 640x480-PC1B
[4:45:38.602662873] [4425] INFO Camera camera.cpp:1183 configuring
streams: (0) 640x480-YUV420
[4:45:38.602824983] [4426] INFO RPI pisp.cpp:1450 Sensor:
/base/axi/pcie@120000/rp1/i2c@88000/imx219@10 - Selected sensor format:
640x480-SBGGR10_1X10 - Selected CFE format: 640x480-PC1B
The "v4l2_ctrls_list: No Controls found for device" is somewhat suspect,
and here are some cherry-picked messages from the log also (whole thing
is over 220 lines, didn't want to pollute...):
motion_ntc: v4l2 : available
motion_ntc: bktr : not available
motion_ntc: webp : available
motion_ntc: mmal : not available
motion_ntc: ffmpeg : available
motion_ntc: mysql : not available
motion_ntc: MariaDB: not available
motion_ntc: sqlite3: not available
motion_ntc: pgsql : not available
motion_ntc: nls : available
ffmpeg_global_init: ffmpeg libavcodec version 60.31.102 libavformat
version 60.16.100
Has anyone gotten motion to work somewhat properly on a Raspberry Pi5 yet?
And the v4l2-ctl stuff...:
# v4l2-ctl --list-formats-ext /dev/video0
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'YUYV' (YUYV 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[1]: 'UYVY' (UYVY 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[2]: 'YVYU' (YVYU 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[3]: 'VYUY' (VYUY 4:2:2)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[4]: 'RGBP' (16-bit RGB 5-6-5)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[5]: 'RGBR' (16-bit RGB 5-6-5 BE)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[6]: 'RGBO' (16-bit A/XRGB 1-5-5-5)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[7]: 'RGBQ' (16-bit A/XRGB 1-5-5-5 BE)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[8]: 'RGB3' (24-bit RGB 8-8-8)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[9]: 'BGR3' (24-bit BGR 8-8-8)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[10]: 'RGB4' (32-bit A/XRGB 8-8-8-8)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[11]: 'BA81' (8-bit Bayer BGBG/GRGR)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[12]: 'GBRG' (8-bit Bayer GBGB/RGRG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[13]: 'GRBG' (8-bit Bayer GRGR/BGBG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[14]: 'RGGB' (8-bit Bayer RGRG/GBGB)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[15]: 'pBAA' (10-bit Bayer BGBG/GRGR Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[16]: 'pGAA' (10-bit Bayer GBGB/RGRG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[17]: 'pgAA' (10-bit Bayer GRGR/BGBG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[18]: 'pRAA' (10-bit Bayer RGRG/GBGB Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[19]: 'pBCC' (12-bit Bayer BGBG/GRGR Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[20]: 'pGCC' (12-bit Bayer GBGB/RGRG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[21]: 'pgCC' (12-bit Bayer GRGR/BGBG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[22]: 'pRCC' (12-bit Bayer RGRG/GBGB Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[23]: 'pBEE' (14-bit Bayer BGBG/GRGR Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[24]: 'pGEE' (14-bit Bayer GBGB/RGRG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[25]: 'pgEE' (14-bit Bayer GRGR/BGBG Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[26]: 'pREE' (14-bit Bayer RGRG/GBGB Packed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[27]: 'BYR2' (16-bit Bayer BGBG/GRGR)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[28]: 'GB16' (16-bit Bayer GBGB/RGRG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[29]: 'GR16' (16-bit Bayer GRGR/BGBG)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[30]: 'RG16' (16-bit Bayer RGRG/GBGB)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[31]: 'PC1R' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[32]: 'PC1B' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[33]: 'PC1g' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[34]: 'PC1G' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[35]: 'GREY' (8-bit Greyscale)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[36]: 'Y10P' (10-bit Greyscale (MIPI Packed))
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[37]: 'Y12P' (12-bit Greyscale (MIPI Packed))
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[38]: 'Y14P' (14-bit Greyscale (MIPI Packed))
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[39]: 'Y16 ' (16-bit Greyscale)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
[40]: 'PC1M' (PiSP Bayer Compressed Format, compressed)
Size: Stepwise 16x16 - 16384x16384 with step 2/1
Thanks...
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 215, Issue 7
*******************************************