Motion-Project / motion

Motion, a software motion detector. Home page: https://motion-project.github.io/
GNU General Public License v2.0
3.67k stars 549 forks source link

motion fails: v4l2_mmap_set: Error starting stream. VIDIOC_STREAMON: Invalid argument #1773

Closed hpojak closed 5 months ago

hpojak commented 5 months ago

Did you read the guide?

Yes

What is the base version number of Motion being used?

4.6.x

What was the install method?

Installed via package tool

What is base architecture?

ARM-64bit

What is the distro being used?

Raspbian

Disto version number

bookworm_motion_4.6.0-1_arm64.deb

Camera type(s) being used?

PI cam via libcamerify

Describe the issue/problem and steps to reproduce

Tried to run motion on a Raspberry Pi 4B with 2GB RAM. Fetched bookworm_motion_4.6.0-1_arm64.deb and installed it via: $ sudo gdebi bookworm_motion_4.6.0-1_arm64.deb

Stopped the service: $ systemctl stop motion

Run motion in shell: $ libcamerify motion

Among other logs, the following comes: May 21 07:49:15 raspberrypi motion[3012]: [1:ml1] [ERR] [VID] v4l2_mmap_set: Error starting stream. VIDIOC_STREAMON: Invalid argument

/etc/motion/motion.conf is not changed.

Rebooting the Pi does not help.

sudo libcamerify motion does not make it better.

Raspbian 64 bits is: Linux raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux

(rpicam-jpeg -t 500 --output z.jpg can capture an image successfully.)

admin@raspberrypi:~ $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
    /dev/video10
    /dev/video11
    /dev/video12
    /dev/video18
    /dev/video31
    /dev/media4

bcm2835-isp (platform:bcm2835-isp):
    /dev/video13
    /dev/video14
    /dev/video15
    /dev/video16
    /dev/video20
    /dev/video21
    /dev/video22
    /dev/video23
    /dev/media1
    /dev/media3

unicam (platform:fe801000.csi):
    /dev/video0
    /dev/video1
    /dev/media2

rpivid (platform:rpivid):
    /dev/video19
    /dev/media0

admin@raspberrypi:~ $ rpicam-still --list-cameras
Available cameras
-----------------
0 : imx219 [3280x2464 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx219@10)
    Modes: 'SRGGB10_CSI2P' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
                             1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
                             1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
                             3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
           'SRGGB8' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
                      1640x1232 [83.70 fps - (0, 0)/3280x2464 crop]
                      1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
                      3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]

Motion log output at log_level 8

admin@raspberrypi:~ $ libcamerify motion -d 8
ERROR: ld.so: object '/usr/lib/aarch64-linux-gnu/libcamera/v4l2-compat.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0:motion] [NTC] [ALL] motion_startup: Logging to syslog
[0:motion] [NTC] [ALL] motion_startup: Motion 4.6.0 Started
[0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL)
[0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (DBG)
[0:motion] [INF] [ALL] conf_output_parms: Writing configuration parameters from all files (1):
[0:motion] [INF] [ALL] Thread 0 - Config file: /etc/motion/motion.conf
[0:motion] [INF] [ALL] daemon                    off
[0:motion] [INF] [ALL] setup_mode                off
[0:motion] [INF] [ALL] pid_file                  
[0:motion] [INF] [ALL] log_file                  
[0:motion] [INF] [ALL] log_level                 8
[0:motion] [INF] [ALL] log_type                  ALL
[0:motion] [INF] [ALL] quiet                     on
[0:motion] [INF] [ALL] native_language           on
[0:motion] [INF] [ALL] watchdog_tmo              30
[0:motion] [INF] [ALL] watchdog_kill             10
[0:motion] [INF] [ALL] camera_name               
[0:motion] [INF] [ALL] camera_id                 0
[0:motion] [INF] [ALL] target_dir                
[0:motion] [INF] [ALL] video_device              /dev/video0
[0:motion] [INF] [ALL] video_params              
[0:motion] [INF] [ALL] auto_brightness           0
[0:motion] [INF] [ALL] tuner_device              
[0:motion] [INF] [ALL] roundrobin_frames         1
[0:motion] [INF] [ALL] roundrobin_skip           1
[0:motion] [INF] [ALL] roundrobin_switchfilter   off
[0:motion] [INF] [ALL] netcam_url                
[0:motion] [INF] [ALL] netcam_params             
[0:motion] [INF] [ALL] netcam_high_url           
[0:motion] [INF] [ALL] netcam_high_params        
[0:motion] [INF] [ALL] netcam_userpass           
[0:motion] [INF] [ALL] mmalcam_name              
[0:motion] [INF] [ALL] mmalcam_params            
[0:motion] [INF] [ALL] width                     640
[0:motion] [INF] [ALL] height                    480
[0:motion] [INF] [ALL] framerate                 15
[0:motion] [INF] [ALL] minimum_frame_time        0
[0:motion] [INF] [ALL] rotate                    0
[0:motion] [INF] [ALL] flip_axis                 none
[0:motion] [INF] [ALL] locate_motion_mode        off
[0:motion] [INF] [ALL] locate_motion_style       box
[0:motion] [INF] [ALL] text_left                 CAMERA1
[0:motion] [INF] [ALL] text_right                %Y-%m-%d\n%T-%q
[0:motion] [INF] [ALL] text_changes              off
[0:motion] [INF] [ALL] text_scale                1
[0:motion] [INF] [ALL] text_event                %Y%m%d%H%M%S
[0:motion] [INF] [ALL] emulate_motion            off
[0:motion] [INF] [ALL] pause                     off
[0:motion] [INF] [ALL] threshold                 1500
[0:motion] [INF] [ALL] threshold_maximum         0
[0:motion] [INF] [ALL] threshold_tune            off
[0:motion] [INF] [ALL] noise_level               32
[0:motion] [INF] [ALL] noise_tune                on
[0:motion] [INF] [ALL] despeckle_filter          EedDl
[0:motion] [INF] [ALL] area_detect               
[0:motion] [INF] [ALL] mask_file                 
[0:motion] [INF] [ALL] mask_privacy              
[0:motion] [INF] [ALL] smart_mask_speed          0
[0:motion] [INF] [ALL] lightswitch_percent       0
[0:motion] [INF] [ALL] lightswitch_frames        5
[0:motion] [INF] [ALL] minimum_motion_frames     1
[0:motion] [INF] [ALL] event_gap                 60
[0:motion] [INF] [ALL] pre_capture               3
[0:motion] [INF] [ALL] post_capture              0
[0:motion] [INF] [ALL] on_event_start            
[0:motion] [INF] [ALL] on_event_end              
[0:motion] [INF] [ALL] on_picture_save           
[0:motion] [INF] [ALL] on_area_detected          
[0:motion] [INF] [ALL] on_motion_detected        
[0:motion] [INF] [ALL] on_movie_start            
[0:motion] [INF] [ALL] on_movie_end              
[0:motion] [INF] [ALL] on_camera_lost            
[0:motion] [INF] [ALL] on_camera_found           
[0:motion] [INF] [ALL] picture_output            off
[0:motion] [INF] [ALL] picture_output_motion     off
[0:motion] [INF] [ALL] picture_type              jpeg
[0:motion] [INF] [ALL] picture_quality           75
[0:motion] [INF] [ALL] picture_exif              
[0:motion] [INF] [ALL] picture_filename          %Y%m%d%H%M%S-%q
[0:motion] [INF] [ALL] snapshot_interval         0
[0:motion] [INF] [ALL] snapshot_filename         %v-%Y%m%d%H%M%S-snapshot
[0:motion] [INF] [ALL] movie_output              on
[0:motion] [INF] [ALL] movie_output_motion       off
[0:motion] [INF] [ALL] movie_max_time            60
[0:motion] [INF] [ALL] movie_bps                 400000
[0:motion] [INF] [ALL] movie_quality             45
[0:motion] [INF] [ALL] movie_codec               mkv
[0:motion] [INF] [ALL] movie_duplicate_frames    off
[0:motion] [INF] [ALL] movie_passthrough         off
[0:motion] [INF] [ALL] movie_filename            %t-%v-%Y%m%d%H%M%S
[0:motion] [INF] [ALL] movie_extpipe_use         off
[0:motion] [INF] [ALL] movie_extpipe             
[0:motion] [INF] [ALL] timelapse_interval        0
[0:motion] [INF] [ALL] timelapse_mode            daily
[0:motion] [INF] [ALL] timelapse_fps             30
[0:motion] [INF] [ALL] timelapse_codec           mpg
[0:motion] [INF] [ALL] timelapse_filename        %Y%m%d-timelapse
[0:motion] [INF] [ALL] video_pipe                
[0:motion] [INF] [ALL] video_pipe_motion         
[0:motion] [INF] [ALL] webcontrol_port           8080
[0:motion] [INF] [ALL] webcontrol_ipv6           off
[0:motion] [INF] [ALL] webcontrol_localhost      on
[0:motion] [INF] [ALL] webcontrol_parms          0
[0:motion] [INF] [ALL] webcontrol_interface      0
[0:motion] [INF] [ALL] webcontrol_auth_method    0
[0:motion] [INF] [ALL] webcontrol_authentication 
[0:motion] [INF] [ALL] webcontrol_tls            off
[0:motion] [INF] [ALL] webcontrol_cert           
[0:motion] [INF] [ALL] webcontrol_key            
[0:motion] [INF] [ALL] webcontrol_header_params  
[0:motion] [INF] [ALL] webcontrol_lock_minutes   5
[0:motion] [INF] [ALL] webcontrol_lock_attempts  5
[0:motion] [INF] [ALL] webcontrol_lock_max_ips   25
[0:motion] [INF] [ALL] stream_port               8081
[0:motion] [INF] [ALL] stream_localhost          on
[0:motion] [INF] [ALL] stream_auth_method        0
[0:motion] [INF] [ALL] stream_authentication     
[0:motion] [INF] [ALL] stream_tls                off
[0:motion] [INF] [ALL] stream_header_params      
[0:motion] [INF] [ALL] stream_preview_scale      25
[0:motion] [INF] [ALL] stream_preview_newline    off
[0:motion] [INF] [ALL] stream_preview_method     0
[0:motion] [INF] [ALL] stream_quality            50
[0:motion] [INF] [ALL] stream_grey               off
[0:motion] [INF] [ALL] stream_motion             off
[0:motion] [INF] [ALL] stream_maxrate            1
[0:motion] [INF] [ALL] stream_limit              0
[0:motion] [INF] [ALL] database_type             
[0:motion] [INF] [ALL] database_dbname           
[0:motion] [INF] [ALL] database_host             localhost
[0:motion] [INF] [ALL] database_port             0
[0:motion] [INF] [ALL] database_user             
[0:motion] [INF] [ALL] database_password         
[0:motion] [INF] [ALL] database_busy_timeout     0
[0:motion] [INF] [ALL] sql_log_picture           off
[0:motion] [INF] [ALL] sql_log_snapshot          off
[0:motion] [INF] [ALL] sql_log_movie             off
[0:motion] [INF] [ALL] sql_log_timelapse         off
[0:motion] [INF] [ALL] sql_query_start           
[0:motion] [INF] [ALL] sql_query_stop            
[0:motion] [INF] [ALL] sql_query                 
[0:motion] [INF] [ALL] track_type                0
[0:motion] [INF] [ALL] track_auto                off
[0:motion] [INF] [ALL] track_port                
[0:motion] [INF] [ALL] track_motorx              0
[0:motion] [INF] [ALL] track_motorx_reverse      off
[0:motion] [INF] [ALL] track_motory              0
[0:motion] [INF] [ALL] track_motory_reverse      off
[0:motion] [INF] [ALL] track_maxx                0
[0:motion] [INF] [ALL] track_minx                0
[0:motion] [INF] [ALL] track_maxy                0
[0:motion] [INF] [ALL] track_miny                0
[0:motion] [INF] [ALL] track_homex               128
[0:motion] [INF] [ALL] track_homey               128
[0:motion] [INF] [ALL] track_iomojo_id           0
[0:motion] [INF] [ALL] track_step_angle_x        10
[0:motion] [INF] [ALL] track_step_angle_y        10
[0:motion] [INF] [ALL] track_move_wait           10
[0:motion] [INF] [ALL] track_speed               255
[0:motion] [INF] [ALL] track_stepsize            40
[0:motion] [INF] [ALL] track_generic_move        
[0:motion] [INF] [ALL] camera                    
[0:motion] [INF] [ALL] camera_dir                
[0:motion] [DBG] [ALL] motion_ntc: v4l2   : available
[0:motion] [DBG] [ALL] motion_ntc: bktr   : not available
[0:motion] [DBG] [ALL] motion_ntc: webp   : available
[0:motion] [DBG] [ALL] motion_ntc: mmal   : not available
[0:motion] [DBG] [ALL] motion_ntc: ffmpeg : available
[0:motion] [DBG] [DBL] motion_ntc: mysql  : not available
[0:motion] [DBG] [DBL] motion_ntc: MariaDB: available
[0:motion] [DBG] [DBL] motion_ntc: sqlite3: available
[0:motion] [DBG] [DBL] motion_ntc: pgsql  : available
[0:motion] [DBG] [DBL] motion_ntc: nls    : available
[0:motion] [NTC] [STR] webu_start_strm: Starting all camera streams on port 8081
[0:motion] [DBG] [STR] webu_mhd_features_basic: Basic authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_digest: Digest authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_ipv6: IPV6: available
[0:motion] [DBG] [STR] webu_mhd_features_tls: SSL/TLS: available
[0:motion] [NTC] [STR] webu_strm_ntc: Started camera 0 stream on port 8081
[0:motion] [NTC] [STR] webu_start_ctrl: Starting webcontrol on port 8080
[0:motion] [DBG] [STR] webu_mhd_features_basic: Basic authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_digest: Digest authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_ipv6: IPV6: available
[0:motion] [DBG] [STR] webu_mhd_features_tls: SSL/TLS: available
[0:motion] [NTC] [STR] webu_start_ctrl: Started webcontrol on port 8080
[0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version 59.37.100 libavformat version 59.27.100
[0:motion] [DBG] [DBL] dbse_global_init: Initializing database
[0:motion] [NTC] [ALL] translate_init: Language: English
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0
[0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 1953
[1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled
[1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >palette< >17<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >input< >-1<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >norm< >0<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >frequency< >0<
[1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1] [DBG] [VID] v4l2_device_capability: ------------------------
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.driver: "unicam"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.card: "unicam"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.bus_info: "platform:fe801000.csi"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.capabilities=0xA5A00001
[1:ml1] [DBG] [VID] v4l2_device_capability: ------------------------
[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] [DBG] [VID] v4l2_input_select: Name = "unicam-image", type 0x00000002, status 00000000
[1:ml1] [NTC] [VID] v4l2_input_select: Name = "unicam-image"- CAMERA
[1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] v4l2_pixfmt_try: Unable to use YU12 (640x480)
[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) YUYV (YUYV 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 0 - YUYV 4:2:2 (compressed : 0) (0x56595559)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (1) UYVY (UYVY 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 1 - UYVY 4:2:2 (compressed : 0) (0x59565955)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (2) YVYU (YVYU 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 2 - YVYU 4:2:2 (compressed : 0) (0x55595659)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (3) VYUY (VYUY 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 3 - VYUY 4:2:2 (compressed : 0) (0x59555956)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (4) RGBP (16-bit RGB 5-6-5)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 4 - 16-bit RGB 5-6-5 (compressed : 0) (0x50424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (5) RGBR (16-bit RGB 5-6-5 BE)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 5 - 16-bit RGB 5-6-5 BE (compressed : 0) (0x52424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (6) RGBO (16-bit A/XRGB 1-5-5-5)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 6 - 16-bit A/XRGB 1-5-5-5 (compressed : 0) (0x4f424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (7) RGBQ (16-bit A/XRGB 1-5-5-5 BE)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 7 - 16-bit A/XRGB 1-5-5-5 BE (compressed : 0) (0x51424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (8) RGB3 (24-bit RGB 8-8-8)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 8 - 24-bit RGB 8-8-8 (compressed : 0) (0x33424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (9) BGR3 (24-bit BGR 8-8-8)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 9 - 24-bit BGR 8-8-8 (compressed : 0) (0x33524742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (10) RGB4 (32-bit A/XRGB 8-8-8-8)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 10 - 32-bit A/XRGB 8-8-8-8 (compressed : 0) (0x34424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (11) BA81 (8-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 11 - 8-bit Bayer BGBG/GRGR (compressed : 0) (0x31384142)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (12) GBRG (8-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 12 - 8-bit Bayer GBGB/RGRG (compressed : 0) (0x47524247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (13) GRBG (8-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 13 - 8-bit Bayer GRGR/BGBG (compressed : 0) (0x47425247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (14) RGGB (8-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 14 - 8-bit Bayer RGRG/GBGB (compressed : 0) (0x42474752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (15) pBAA (10-bit Bayer BGBG/GRGR Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 15 - 10-bit Bayer BGBG/GRGR Packed (compressed : 0) (0x41414270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (16) BG10 (10-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 16 - 10-bit Bayer BGBG/GRGR (compressed : 0) (0x30314742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (17) pGAA (10-bit Bayer GBGB/RGRG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 17 - 10-bit Bayer GBGB/RGRG Packed (compressed : 0) (0x41414770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (18) GB10 (10-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 18 - 10-bit Bayer GBGB/RGRG (compressed : 0) (0x30314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (19) pgAA (10-bit Bayer GRGR/BGBG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 19 - 10-bit Bayer GRGR/BGBG Packed (compressed : 0) (0x41416770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (20) BA10 (10-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 20 - 10-bit Bayer GRGR/BGBG (compressed : 0) (0x30314142)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (21) pRAA (10-bit Bayer RGRG/GBGB Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 21 - 10-bit Bayer RGRG/GBGB Packed (compressed : 0) (0x41415270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (22) RG10 (10-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 22 - 10-bit Bayer RGRG/GBGB (compressed : 0) (0x30314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (23) pBCC (12-bit Bayer BGBG/GRGR Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 23 - 12-bit Bayer BGBG/GRGR Packed (compressed : 0) (0x43434270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (24) BG12 (12-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 24 - 12-bit Bayer BGBG/GRGR (compressed : 0) (0x32314742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (25) pGCC (12-bit Bayer GBGB/RGRG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 25 - 12-bit Bayer GBGB/RGRG Packed (compressed : 0) (0x43434770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (26) GB12 (12-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 26 - 12-bit Bayer GBGB/RGRG (compressed : 0) (0x32314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (27) pgCC (12-bit Bayer GRGR/BGBG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 27 - 12-bit Bayer GRGR/BGBG Packed (compressed : 0) (0x43436770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (28) BA12 (12-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 28 - 12-bit Bayer GRGR/BGBG (compressed : 0) (0x32314142)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (29) pRCC (12-bit Bayer RGRG/GBGB Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 29 - 12-bit Bayer RGRG/GBGB Packed (compressed : 0) (0x43435270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (30) RG12 (12-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 30 - 12-bit Bayer RGRG/GBGB (compressed : 0) (0x32314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (31) pBEE (14-bit Bayer BGBG/GRGR Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 31 - 14-bit Bayer BGBG/GRGR Packed (compressed : 0) (0x45454270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (32) BG14 (14-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 32 - 14-bit Bayer BGBG/GRGR (compressed : 0) (0x34314742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (33) pGEE (14-bit Bayer GBGB/RGRG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 33 - 14-bit Bayer GBGB/RGRG Packed (compressed : 0) (0x45454770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (34) GB14 (14-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 34 - 14-bit Bayer GBGB/RGRG (compressed : 0) (0x34314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (35) pgEE (14-bit Bayer GRGR/BGBG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 35 - 14-bit Bayer GRGR/BGBG Packed (compressed : 0) (0x45456770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (36) GR14 (14-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 36 - 14-bit Bayer GRGR/BGBG (compressed : 0) (0x34315247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (37) pREE (14-bit Bayer RGRG/GBGB Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 37 - 14-bit Bayer RGRG/GBGB Packed (compressed : 0) (0x45455270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (38) RG14 (14-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 38 - 14-bit Bayer RGRG/GBGB (compressed : 0) (0x34314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (39) BYR2 (16-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 39 - 16-bit Bayer BGBG/GRGR (compressed : 0) (0x32525942)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (40) GB16 (16-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 40 - 16-bit Bayer GBGB/RGRG (compressed : 0) (0x36314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (41) GR16 (16-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 41 - 16-bit Bayer GRGR/BGBG (compressed : 0) (0x36315247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (42) RG16 (16-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 42 - 16-bit Bayer RGRG/GBGB (compressed : 0) (0x36314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (43) GREY (8-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 43 - 8-bit Greyscale (compressed : 0) (0x59455247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (44) Y10P (10-bit Greyscale (MIPI Packed))
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 44 - 10-bit Greyscale (MIPI Packed) (compressed : 0) (0x50303159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (45) Y10  (10-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 45 - 10-bit Greyscale (compressed : 0) (0x20303159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (46) Y12P (12-bit Greyscale (MIPI Packed))
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 46 - 12-bit Greyscale (MIPI Packed) (compressed : 0) (0x50323159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (47) Y12  (12-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 47 - 12-bit Greyscale (compressed : 0) (0x20323159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (48) Y14P (14-bit Greyscale (MIPI Packed))
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 48 - 14-bit Greyscale (MIPI Packed) (compressed : 0) (0x50343159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (49) Y14  (14-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 49 - 14-bit Greyscale (compressed : 0) (0x20343159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (50) Y16  (16-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 50 - 16-bit Greyscale (compressed : 0) (0x20363159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_try: Testing palette Y12  (640x480)
[1:ml1] [DBG] [VID] v4l2_pixfmt_stride: Checking image size 640x480 with stride 1280
[1:ml1] [NTC] [VID] v4l2_pixfmt_set: Using palette Y12  (640x480)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: Selected palette Y12 
[1:ml1] [INF] [VID] v4l2_fps_set: Trying to set fps to 15
[1:ml1] [ERR] [VID] v4l2_fps_set: Error setting fps. Return code -1
[1:ml1] [INF] [VID] v4l2_fps_set: Device set fps to 15
[1:ml1] [INF] [VID] v4l2_ctrls_list: No Controls found for device
[1:ml1] [DBG] [VID] v4l2_mmap_request: mmap information: frames=4
[1:ml1] [DBG] [VID] v4l2_mmap_query: 0 length=614400 Address (ac7f1000) offset 0
[1:ml1] [DBG] [VID] v4l2_mmap_query: 1 length=614400 Address (ac75b000) offset 614400
[1:ml1] [DBG] [VID] v4l2_mmap_query: 2 length=614400 Address (ac6c5000) offset 1228800
[1:ml1] [DBG] [VID] v4l2_mmap_query: 3 length=614400 Address (ac62f000) offset 1843200
[1:ml1] [ERR] [VID] v4l2_mmap_set: Error starting stream. VIDIOC_STREAMON: Invalid argument
[1:ml1] [DBG] [VID] v4l2_device_close: close
[1:ml1] [DBG] [VID] v4l2_device_cleanup: vid_source
[1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open
[1:ml1] [WRN] [ALL] motion_init: Could not fetch initial image from camera 
[1:ml1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 4 items
[1:ml1] [WRN] [ALL] mlp_retry: Retrying until successful connection with camera
[1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >palette< >17<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >input< >-1<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >norm< >0<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >frequency< >0<
[1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1] [DBG] [VID] v4l2_device_capability: ------------------------
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.driver: "unicam"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.card: "unicam"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.bus_info: "platform:fe801000.csi"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.capabilities=0xA5A00001
[1:ml1] [DBG] [VID] v4l2_device_capability: ------------------------
[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] [DBG] [VID] v4l2_input_select: Name = "unicam-image", type 0x00000002, status 00000000
[1:ml1] [NTC] [VID] v4l2_input_select: Name = "unicam-image"- CAMERA
[1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] v4l2_pixfmt_try: Unable to use YU12 (640x480)
[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) YUYV (YUYV 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 0 - YUYV 4:2:2 (compressed : 0) (0x56595559)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (1) UYVY (UYVY 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 1 - UYVY 4:2:2 (compressed : 0) (0x59565955)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (2) YVYU (YVYU 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 2 - YVYU 4:2:2 (compressed : 0) (0x55595659)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (3) VYUY (VYUY 4:2:2)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 3 - VYUY 4:2:2 (compressed : 0) (0x59555956)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (4) RGBP (16-bit RGB 5-6-5)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 4 - 16-bit RGB 5-6-5 (compressed : 0) (0x50424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (5) RGBR (16-bit RGB 5-6-5 BE)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 5 - 16-bit RGB 5-6-5 BE (compressed : 0) (0x52424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (6) RGBO (16-bit A/XRGB 1-5-5-5)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 6 - 16-bit A/XRGB 1-5-5-5 (compressed : 0) (0x4f424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (7) RGBQ (16-bit A/XRGB 1-5-5-5 BE)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 7 - 16-bit A/XRGB 1-5-5-5 BE (compressed : 0) (0x51424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (8) RGB3 (24-bit RGB 8-8-8)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 8 - 24-bit RGB 8-8-8 (compressed : 0) (0x33424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (9) BGR3 (24-bit BGR 8-8-8)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 9 - 24-bit BGR 8-8-8 (compressed : 0) (0x33524742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (10) RGB4 (32-bit A/XRGB 8-8-8-8)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 10 - 32-bit A/XRGB 8-8-8-8 (compressed : 0) (0x34424752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (11) BA81 (8-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 11 - 8-bit Bayer BGBG/GRGR (compressed : 0) (0x31384142)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (12) GBRG (8-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 12 - 8-bit Bayer GBGB/RGRG (compressed : 0) (0x47524247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (13) GRBG (8-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 13 - 8-bit Bayer GRGR/BGBG (compressed : 0) (0x47425247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (14) RGGB (8-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 14 - 8-bit Bayer RGRG/GBGB (compressed : 0) (0x42474752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (15) pBAA (10-bit Bayer BGBG/GRGR Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 15 - 10-bit Bayer BGBG/GRGR Packed (compressed : 0) (0x41414270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (16) BG10 (10-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 16 - 10-bit Bayer BGBG/GRGR (compressed : 0) (0x30314742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (17) pGAA (10-bit Bayer GBGB/RGRG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 17 - 10-bit Bayer GBGB/RGRG Packed (compressed : 0) (0x41414770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (18) GB10 (10-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 18 - 10-bit Bayer GBGB/RGRG (compressed : 0) (0x30314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (19) pgAA (10-bit Bayer GRGR/BGBG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 19 - 10-bit Bayer GRGR/BGBG Packed (compressed : 0) (0x41416770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (20) BA10 (10-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 20 - 10-bit Bayer GRGR/BGBG (compressed : 0) (0x30314142)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (21) pRAA (10-bit Bayer RGRG/GBGB Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 21 - 10-bit Bayer RGRG/GBGB Packed (compressed : 0) (0x41415270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (22) RG10 (10-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 22 - 10-bit Bayer RGRG/GBGB (compressed : 0) (0x30314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (23) pBCC (12-bit Bayer BGBG/GRGR Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 23 - 12-bit Bayer BGBG/GRGR Packed (compressed : 0) (0x43434270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (24) BG12 (12-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 24 - 12-bit Bayer BGBG/GRGR (compressed : 0) (0x32314742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (25) pGCC (12-bit Bayer GBGB/RGRG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 25 - 12-bit Bayer GBGB/RGRG Packed (compressed : 0) (0x43434770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (26) GB12 (12-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 26 - 12-bit Bayer GBGB/RGRG (compressed : 0) (0x32314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (27) pgCC (12-bit Bayer GRGR/BGBG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 27 - 12-bit Bayer GRGR/BGBG Packed (compressed : 0) (0x43436770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (28) BA12 (12-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 28 - 12-bit Bayer GRGR/BGBG (compressed : 0) (0x32314142)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (29) pRCC (12-bit Bayer RGRG/GBGB Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 29 - 12-bit Bayer RGRG/GBGB Packed (compressed : 0) (0x43435270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (30) RG12 (12-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 30 - 12-bit Bayer RGRG/GBGB (compressed : 0) (0x32314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (31) pBEE (14-bit Bayer BGBG/GRGR Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 31 - 14-bit Bayer BGBG/GRGR Packed (compressed : 0) (0x45454270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (32) BG14 (14-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 32 - 14-bit Bayer BGBG/GRGR (compressed : 0) (0x34314742)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (33) pGEE (14-bit Bayer GBGB/RGRG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 33 - 14-bit Bayer GBGB/RGRG Packed (compressed : 0) (0x45454770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (34) GB14 (14-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 34 - 14-bit Bayer GBGB/RGRG (compressed : 0) (0x34314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (35) pgEE (14-bit Bayer GRGR/BGBG Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 35 - 14-bit Bayer GRGR/BGBG Packed (compressed : 0) (0x45456770)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (36) GR14 (14-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 36 - 14-bit Bayer GRGR/BGBG (compressed : 0) (0x34315247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (37) pREE (14-bit Bayer RGRG/GBGB Packed)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 37 - 14-bit Bayer RGRG/GBGB Packed (compressed : 0) (0x45455270)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (38) RG14 (14-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 38 - 14-bit Bayer RGRG/GBGB (compressed : 0) (0x34314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (39) BYR2 (16-bit Bayer BGBG/GRGR)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 39 - 16-bit Bayer BGBG/GRGR (compressed : 0) (0x32525942)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (40) GB16 (16-bit Bayer GBGB/RGRG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 40 - 16-bit Bayer GBGB/RGRG (compressed : 0) (0x36314247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (41) GR16 (16-bit Bayer GRGR/BGBG)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 41 - 16-bit Bayer GRGR/BGBG (compressed : 0) (0x36315247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (42) RG16 (16-bit Bayer RGRG/GBGB)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 42 - 16-bit Bayer RGRG/GBGB (compressed : 0) (0x36314752)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (43) GREY (8-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 43 - 8-bit Greyscale (compressed : 0) (0x59455247)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (44) Y10P (10-bit Greyscale (MIPI Packed))
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 44 - 10-bit Greyscale (MIPI Packed) (compressed : 0) (0x50303159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (45) Y10  (10-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 45 - 10-bit Greyscale (compressed : 0) (0x20303159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (46) Y12P (12-bit Greyscale (MIPI Packed))
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 46 - 12-bit Greyscale (MIPI Packed) (compressed : 0) (0x50323159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (47) Y12  (12-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 47 - 12-bit Greyscale (compressed : 0) (0x20323159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (48) Y14P (14-bit Greyscale (MIPI Packed))
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 48 - 14-bit Greyscale (MIPI Packed) (compressed : 0) (0x50343159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (49) Y14  (14-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 49 - 14-bit Greyscale (compressed : 0) (0x20343159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: (50) Y16  (16-bit Greyscale)
[1:ml1] [DBG] [VID] v4l2_pixfmt_select: 50 - 16-bit Greyscale (compressed : 0) (0x20363159)
[1:ml1] [NTC] [VID] v4l2_pixfmt_try: Testing palette Y12  (640x480)
[1:ml1] [DBG] [VID] v4l2_pixfmt_stride: Checking image size 640x480 with stride 1280
[1:ml1] [NTC] [VID] v4l2_pixfmt_set: Using palette Y12  (640x480)
[1:ml1] [NTC] [VID] v4l2_pixfmt_select: Selected palette Y12 
[1:ml1] [INF] [VID] v4l2_fps_set: Trying to set fps to 15
[1:ml1] [ERR] [VID] v4l2_fps_set: Error setting fps. Return code -1
[1:ml1] [INF] [VID] v4l2_fps_set: Device set fps to 15
[1:ml1] [INF] [VID] v4l2_ctrls_list: No Controls found for device
[1:ml1] [DBG] [VID] v4l2_mmap_request: mmap information: frames=4
[1:ml1] [DBG] [VID] v4l2_mmap_query: 0 length=614400 Address (9fe17000) offset 0
[1:ml1] [DBG] [VID] v4l2_mmap_query: 1 length=614400 Address (9fd81000) offset 614400
[1:ml1] [DBG] [VID] v4l2_mmap_query: 2 length=614400 Address (9fceb000) offset 1228800
[1:ml1] [DBG] [VID] v4l2_mmap_query: 3 length=614400 Address (9fc55000) offset 1843200
[1:ml1] [ERR] [VID] v4l2_mmap_set: Error starting stream. VIDIOC_STREAMON: Invalid argument
[1:ml1] [DBG] [VID] v4l2_device_close: close
[1:ml1] [DBG] [VID] v4l2_device_cleanup: vid_source
[1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open
hpojak commented 5 months ago

I'm going to try to install libcamera-v4l2 to see if that helps.

hpojak commented 5 months ago

I did try to install libcamera-v4l2 to see if that would help. The logs became different, but motion is not detected. ( I also tried to install Raspbian 32 bits and Motion 4.5.1, which could detect motion successfully, and save a video file. The ERROR log lines "ERROR IPAModule" were present both in 32 bits and 64 bits O/S. )

Output from motion in Raspbian 64 bits:

admin@raspberrypi:~ $ libcamerify motion -d 8
[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0:motion] [NTC] [ALL] motion_startup: Logging to syslog
[0:motion] [NTC] [ALL] motion_startup: Motion 4.6.0 Started
[0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL)
[0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (DBG)
[0:motion] [INF] [ALL] conf_output_parms: Writing configuration parameters from all files (1):
[0:motion] [INF] [ALL] Thread 0 - Config file: /etc/motion/motion.conf
[0:motion] [INF] [ALL] daemon                    off
[0:motion] [INF] [ALL] setup_mode                off
[0:motion] [INF] [ALL] pid_file                  
[0:motion] [INF] [ALL] log_file                  
[0:motion] [INF] [ALL] log_level                 8
[0:motion] [INF] [ALL] log_type                  ALL
[0:motion] [INF] [ALL] quiet                     on
[0:motion] [INF] [ALL] native_language           on
[0:motion] [INF] [ALL] watchdog_tmo              30
[0:motion] [INF] [ALL] watchdog_kill             10
[0:motion] [INF] [ALL] camera_name               
[0:motion] [INF] [ALL] camera_id                 0
[0:motion] [INF] [ALL] target_dir                
[0:motion] [INF] [ALL] video_device              /dev/video0
[0:motion] [INF] [ALL] video_params              
[0:motion] [INF] [ALL] auto_brightness           0
[0:motion] [INF] [ALL] tuner_device              
[0:motion] [INF] [ALL] roundrobin_frames         1
[0:motion] [INF] [ALL] roundrobin_skip           1
[0:motion] [INF] [ALL] roundrobin_switchfilter   off
[0:motion] [INF] [ALL] netcam_url                
[0:motion] [INF] [ALL] netcam_params             
[0:motion] [INF] [ALL] netcam_high_url           
[0:motion] [INF] [ALL] netcam_high_params        
[0:motion] [INF] [ALL] netcam_userpass           
[0:motion] [INF] [ALL] mmalcam_name              
[0:motion] [INF] [ALL] mmalcam_params            
[0:motion] [INF] [ALL] width                     640
[0:motion] [INF] [ALL] height                    480
[0:motion] [INF] [ALL] framerate                 15
[0:motion] [INF] [ALL] minimum_frame_time        0
[0:motion] [INF] [ALL] rotate                    0
[0:motion] [INF] [ALL] flip_axis                 none
[0:motion] [INF] [ALL] locate_motion_mode        off
[0:motion] [INF] [ALL] locate_motion_style       box
[0:motion] [INF] [ALL] text_left                 CAMERA1
[0:motion] [INF] [ALL] text_right                %Y-%m-%d\n%T-%q
[0:motion] [INF] [ALL] text_changes              off
[0:motion] [INF] [ALL] text_scale                1
[0:motion] [INF] [ALL] text_event                %Y%m%d%H%M%S
[0:motion] [INF] [ALL] emulate_motion            off
[0:motion] [INF] [ALL] pause                     off
[0:motion] [INF] [ALL] threshold                 1500
[0:motion] [INF] [ALL] threshold_maximum         0
[0:motion] [INF] [ALL] threshold_tune            off
[0:motion] [INF] [ALL] noise_level               32
[0:motion] [INF] [ALL] noise_tune                on
[0:motion] [INF] [ALL] despeckle_filter          EedDl
[0:motion] [INF] [ALL] area_detect               
[0:motion] [INF] [ALL] mask_file                 
[0:motion] [INF] [ALL] mask_privacy              
[0:motion] [INF] [ALL] smart_mask_speed          0
[0:motion] [INF] [ALL] lightswitch_percent       0
[0:motion] [INF] [ALL] lightswitch_frames        5
[0:motion] [INF] [ALL] minimum_motion_frames     1
[0:motion] [INF] [ALL] event_gap                 60
[0:motion] [INF] [ALL] pre_capture               3
[0:motion] [INF] [ALL] post_capture              0
[0:motion] [INF] [ALL] on_event_start            
[0:motion] [INF] [ALL] on_event_end              
[0:motion] [INF] [ALL] on_picture_save           
[0:motion] [INF] [ALL] on_area_detected          
[0:motion] [INF] [ALL] on_motion_detected        
[0:motion] [INF] [ALL] on_movie_start            
[0:motion] [INF] [ALL] on_movie_end              
[0:motion] [INF] [ALL] on_camera_lost            
[0:motion] [INF] [ALL] on_camera_found           
[0:motion] [INF] [ALL] picture_output            off
[0:motion] [INF] [ALL] picture_output_motion     off
[0:motion] [INF] [ALL] picture_type              jpeg
[0:motion] [INF] [ALL] picture_quality           75
[0:motion] [INF] [ALL] picture_exif              
[0:motion] [INF] [ALL] picture_filename          %Y%m%d%H%M%S-%q
[0:motion] [INF] [ALL] snapshot_interval         0
[0:motion] [INF] [ALL] snapshot_filename         %v-%Y%m%d%H%M%S-snapshot
[0:motion] [INF] [ALL] movie_output              on
[0:motion] [INF] [ALL] movie_output_motion       off
[0:motion] [INF] [ALL] movie_max_time            60
[0:motion] [INF] [ALL] movie_bps                 400000
[0:motion] [INF] [ALL] movie_quality             45
[0:motion] [INF] [ALL] movie_codec               mkv
[0:motion] [INF] [ALL] movie_duplicate_frames    off
[0:motion] [INF] [ALL] movie_passthrough         off
[0:motion] [INF] [ALL] movie_filename            %t-%v-%Y%m%d%H%M%S
[0:motion] [INF] [ALL] movie_extpipe_use         off
[0:motion] [INF] [ALL] movie_extpipe             
[0:motion] [INF] [ALL] timelapse_interval        0
[0:motion] [INF] [ALL] timelapse_mode            daily
[0:motion] [INF] [ALL] timelapse_fps             30
[0:motion] [INF] [ALL] timelapse_codec           mpg
[0:motion] [INF] [ALL] timelapse_filename        %Y%m%d-timelapse
[0:motion] [INF] [ALL] video_pipe                
[0:motion] [INF] [ALL] video_pipe_motion         
[0:motion] [INF] [ALL] webcontrol_port           8080
[0:motion] [INF] [ALL] webcontrol_ipv6           off
[0:motion] [INF] [ALL] webcontrol_localhost      on
[0:motion] [INF] [ALL] webcontrol_parms          0
[0:motion] [INF] [ALL] webcontrol_interface      0
[0:motion] [INF] [ALL] webcontrol_auth_method    0
[0:motion] [INF] [ALL] webcontrol_authentication 
[0:motion] [INF] [ALL] webcontrol_tls            off
[0:motion] [INF] [ALL] webcontrol_cert           
[0:motion] [INF] [ALL] webcontrol_key            
[0:motion] [INF] [ALL] webcontrol_header_params  
[0:motion] [INF] [ALL] webcontrol_lock_minutes   5
[0:motion] [INF] [ALL] webcontrol_lock_attempts  5
[0:motion] [INF] [ALL] webcontrol_lock_max_ips   25
[0:motion] [INF] [ALL] stream_port               8081
[0:motion] [INF] [ALL] stream_localhost          on
[0:motion] [INF] [ALL] stream_auth_method        0
[0:motion] [INF] [ALL] stream_authentication     
[0:motion] [INF] [ALL] stream_tls                off
[0:motion] [INF] [ALL] stream_header_params      
[0:motion] [INF] [ALL] stream_preview_scale      25
[0:motion] [INF] [ALL] stream_preview_newline    off
[0:motion] [INF] [ALL] stream_preview_method     0
[0:motion] [INF] [ALL] stream_quality            50
[0:motion] [INF] [ALL] stream_grey               off
[0:motion] [INF] [ALL] stream_motion             off
[0:motion] [INF] [ALL] stream_maxrate            1
[0:motion] [INF] [ALL] stream_limit              0
[0:motion] [INF] [ALL] database_type             
[0:motion] [INF] [ALL] database_dbname           
[0:motion] [INF] [ALL] database_host             localhost
[0:motion] [INF] [ALL] database_port             0
[0:motion] [INF] [ALL] database_user             
[0:motion] [INF] [ALL] database_password         
[0:motion] [INF] [ALL] database_busy_timeout     0
[0:motion] [INF] [ALL] sql_log_picture           off
[0:motion] [INF] [ALL] sql_log_snapshot          off
[0:motion] [INF] [ALL] sql_log_movie             off
[0:motion] [INF] [ALL] sql_log_timelapse         off
[0:motion] [INF] [ALL] sql_query_start           
[0:motion] [INF] [ALL] sql_query_stop            
[0:motion] [INF] [ALL] sql_query                 
[0:motion] [INF] [ALL] track_type                0
[0:motion] [INF] [ALL] track_auto                off
[0:motion] [INF] [ALL] track_port                
[0:motion] [INF] [ALL] track_motorx              0
[0:motion] [INF] [ALL] track_motorx_reverse      off
[0:motion] [INF] [ALL] track_motory              0
[0:motion] [INF] [ALL] track_motory_reverse      off
[0:motion] [INF] [ALL] track_maxx                0
[0:motion] [INF] [ALL] track_minx                0
[0:motion] [INF] [ALL] track_maxy                0
[0:motion] [INF] [ALL] track_miny                0
[0:motion] [INF] [ALL] track_homex               128
[0:motion] [INF] [ALL] track_homey               128
[0:motion] [INF] [ALL] track_iomojo_id           0
[0:motion] [INF] [ALL] track_step_angle_x        10
[0:motion] [INF] [ALL] track_step_angle_y        10
[0:motion] [INF] [ALL] track_move_wait           10
[0:motion] [INF] [ALL] track_speed               255
[0:motion] [INF] [ALL] track_stepsize            40
[0:motion] [INF] [ALL] track_generic_move        
[0:motion] [INF] [ALL] camera                    
[0:motion] [INF] [ALL] camera_dir                
[0:motion] [DBG] [ALL] motion_ntc: v4l2   : available
[0:motion] [DBG] [ALL] motion_ntc: bktr   : not available
[0:motion] [DBG] [ALL] motion_ntc: webp   : available
[0:motion] [DBG] [ALL] motion_ntc: mmal   : not available
[0:motion] [DBG] [ALL] motion_ntc: ffmpeg : available
[0:motion] [DBG] [DBL] motion_ntc: mysql  : not available
[0:motion] [DBG] [DBL] motion_ntc: MariaDB: available
[0:motion] [DBG] [DBL] motion_ntc: sqlite3: available
[0:motion] [DBG] [DBL] motion_ntc: pgsql  : available
[0:motion] [DBG] [DBL] motion_ntc: nls    : available
[0:motion] [NTC] [STR] webu_start_strm: Starting all camera streams on port 8081
[0:motion] [DBG] [STR] webu_mhd_features_basic: Basic authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_digest: Digest authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_ipv6: IPV6: available
[0:motion] [DBG] [STR] webu_mhd_features_tls: SSL/TLS: available
[0:motion] [NTC] [STR] webu_strm_ntc: Started camera 0 stream on port 8081
[0:motion] [NTC] [STR] webu_start_ctrl: Starting webcontrol on port 8080
[0:motion] [DBG] [STR] webu_mhd_features_basic: Basic authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_digest: Digest authentication: available
[0:motion] [DBG] [STR] webu_mhd_features_ipv6: IPV6: available
[0:motion] [DBG] [STR] webu_mhd_features_tls: SSL/TLS: available
[0:motion] [NTC] [STR] webu_start_ctrl: Started webcontrol on port 8080
[0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version 59.37.100 libavformat version 59.27.100
[0:motion] [DBG] [DBL] dbse_global_init: Initializing database
[0:motion] [NTC] [ALL] translate_init: Language: English
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0
[0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 14438
[1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled
[1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >palette< >17<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >input< >-1<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >norm< >0<
[1:ml1] [DBG] [ALL] util_parms_add: Parsed: >frequency< >0<
[1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[0:27:42.396938962] [14443] ERROR IPAModule ipa_module.cpp:172 Symbol ipaModuleInfo not found
[0:27:42.397020869] [14443] ERROR IPAModule ipa_module.cpp:292 v4l2-compat.so: IPA module has no valid info
[0:27:42.397088979] [14443]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+120-eb00c13d
[0:27:42.436883252] [14444]  WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:27:42.438581984] [14444]  WARN RPI vc4.cpp:392 Mismatch between Unicam and CamHelper for embedded data usage!
[0:27:42.439190000] [14444]  INFO RPI vc4.cpp:446 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media4 and ISP device /dev/media0
[1:ml1] [DBG] [VID] v4l2_device_capability: ------------------------
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.driver: "libcamera"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.card: "/base/soc/i2c0mux/i2c@1/imx219@"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.bus_info: "libcamera:0"
[1:ml1] [DBG] [VID] v4l2_device_capability: cap.capabilities=0x84200001
[1:ml1] [DBG] [VID] v4l2_device_capability: ------------------------
[1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING
[1:ml1] [DBG] [VID] v4l2_input_select: Name = "/base/soc/i2c0mux/i2c@1/imx219@", type 0x00000002, status 00000000
[1:ml1] [NTC] [VID] v4l2_input_select: Name = "/base/soc/i2c0mux/i2c@1/imx219@"- CAMERA
[1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] v4l2_pixfmt_try: Testing palette YU12 (640x480)
[1:ml1] [DBG] [VID] v4l2_pixfmt_stride: Checking image size 640x480 with stride 640
[0:27:42.440740493] [14443]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-YUV420
[0:27:42.441167620] [14444]  INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 640x480-SBGGR10_1X10 - Selected unicam format: 640x480-pBAA
[1:ml1] [NTC] [VID] v4l2_pixfmt_set: Using palette YU12 (640x480)
[1:ml1] [INF] [VID] v4l2_fps_set: Trying to set fps to 15
[1:ml1] [ERR] [VID] v4l2_fps_set: Error setting fps. Return code -1
[1:ml1] [INF] [VID] v4l2_fps_set: Device set fps to 15
[1:ml1] [INF] [VID] v4l2_ctrls_list: No Controls found for device
[0:27:42.442576762] [14443]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-YUV420
[0:27:42.442928852] [14444]  INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 640x480-SBGGR10_1X10 - Selected unicam format: 640x480-pBAA
[1:ml1] [DBG] [VID] v4l2_mmap_request: mmap information: frames=4
[1:ml1] [DBG] [VID] v4l2_mmap_query: 0 length=460800 Address (7c15f000) offset 0
[1:ml1] [DBG] [VID] v4l2_mmap_query: 1 length=460800 Address (7c0ee000) offset 460800
[1:ml1] [DBG] [VID] v4l2_mmap_query: 2 length=460800 Address (7c07d000) offset 921600
[1:ml1] [DBG] [VID] v4l2_mmap_query: 3 length=460800 Address (7c00c000) offset 1382400
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 4 items
Mr-Dave commented 5 months ago

With the updated log, no issues/problems seem to exist.