Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

motioneye not updating v4l2 camera size & fps. #2941

Closed
adminy opened this issue Mar 10, 2024 · 2 comments
Closed

motioneye not updating v4l2 camera size & fps. #2941

adminy opened this issue Mar 10, 2024 · 2 comments

Comments

@adminy
Copy link

adminy commented Mar 10, 2024

I tried rpicam-vid, everything works, can record in any camera supported resolution. Does not work in motioneye ui though ... same camera selected!

[WRN] [ALL] motion_init: Could not fetch initial image from camera
[WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[WRN] [ALL] mlp_retry: Retrying until successful connection with camera
[ERR] [VID] v4l2_fps_set: Error setting fps. Return code -1
motion[1160]: [1:ml1:Camera1] [ERR] [VID] v4l2_mmap_set: Error starting stream. VIDIOC_STREAMON: Invalid argument
[ERR] [VID] vid_start: V4L2 device failed to open
kernel: unicam fe801000.csi: Wrong width or height 640x480 (remote pad set to 9152x6944)
kernel: unicam fe801000.csi: Failed to start media pipeline: -22

Looks like motioneye is sending only the desired camera size but its not actually doing a v4l2-ctl -v parameter setting command.

@adminy adminy changed the title V4L2 device errors ambiguous and not showing motioneye not updating v4l2 camera size. Mar 11, 2024
@adminy adminy changed the title motioneye not updating v4l2 camera size. motioneye not updating v4l2 camera size & fps. Mar 11, 2024
@zagrim
Copy link
Collaborator

zagrim commented Mar 22, 2024

Is this Pi camera 3? That requires libcamera support which is still somewhat open question for MotionEye. Motion requires using libcamerify in order to deal with those cameras, but integrating that to ME is still in progress. There have been some proposed workarounds, but some people have had issues with any of them. However, if you are feeling adventurous, see #2425 and the linked issues.

@adminy
Copy link
Author

adminy commented Mar 24, 2024

I just got a defective camera it seems.

@adminy adminy closed this as completed Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants