Unsolved Raspberry pi camera module 3 capture error
-
zgur@raspberrypi:~$ fswebcam -r 640x480 --jpeg 100 -D 1
— Opening /dev/video0…
Trying source module v4l2…
/dev/video0 opened.
No input was specified, using the first.
Delaying 1 seconds.
Error starting stream.
VIDIOC_STREAMON: Invalid argument
Unable to use mmap. Using read instead.
— Capturing frame…
VIDIOC_DQBUF: Invalid argument
Segmentation fault -
do you enable
Legacy Camera
inraspi-config
? (Interface Options > Legacy Camera) -
I enabled before and couldn’t make it work wit raspistill command. After search on google, I realized that the legacy mode is finishing and libcamera commands are working instead of raspistill commands.
If you want me to try it, I can re-enable legacy mode to see if fswebcam works…
-
I know but there are so many weird things from one kernel to another…
by the way, is it a x64 or 32bit kernel?
uname -a
send the result, thx
-
ozgur@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux -
I suspect the x64 kernel is the problem,
can try 32bits kernel for testing ?
see there my /boot/config.txt modification to force 32bits Kernel -
Sorry for late reply, I reinstalled the magicmirror from scracth and applied the config: (added “arm_64bit=0” to /boot/config.txt
now: uname -a returns:
Linux magicmirror 6.1.21-v7l+ #1642 SMP Mon Apr 3 17:22:30 BST 2023 armv7l GNU/LinuxHowever failed again:
From startup logs:
[16.07.2023 20:37.29.224] [LOG] [SELFIES] Searching camera devices…
[16.07.2023 20:37.29.228] [LOG] [SELFIES] Detected devices: [
‘/dev/video0’, ‘/dev/video1’,
‘/dev/video10’, ‘/dev/video11’,
‘/dev/video12’, ‘/dev/video13’,
‘/dev/video14’, ‘/dev/video15’,
‘/dev/video16’, ‘/dev/video18’,
‘/dev/video19’, ‘/dev/video20’,
‘/dev/video21’, ‘/dev/video22’,
‘/dev/video23’, ‘/dev/video31’
]
[16.07.2023 20:37.29.230] [LOG] [SELFIES] Default camera ‘/dev/video0’ will be used.When shooting for selifie:
16.07.2023 22:18.10.604] [LOG] [SELFIES] Shoot payload: {
options: {
playShutter: true,
autoValidate: false,
showResult: true,
TBkey: null,
useTBKeyOnly: false
}
}
[16.07.2023 22:18.10.622] [LOG] fswebcam -r 1280x720 --jpeg 100 --no-banner /home/ozgur/MagicMirror/modules/EXT-Selfies/photos/230716_221810.jpeg
[16.07.2023 22:18.10.839] [ERROR] [SELFIES] Capture Error! Error: Command failed: fswebcam -r 1280x720 --jpeg 100 --no-banner /home/ozgur/MagicMirror/modules/EXT-Selfies/photos/230716_221810.jpeg
— Opening /dev/video0…
Trying source module v4l2…
/dev/video0 opened.
No input was specified, using the first.
Error starting stream.
VIDIOC_STREAMON: Invalid argument
Unable to use mmap. Using read instead.
— Capturing frame…
VIDIOC_DQBUF: Invalid argument
Segmentation fault (core dumped)at ChildProcess.exithandler (node:child_process:430:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Socket.<anonymous> (node:internal/child_process:449:11) at Socket.emit (node:events:513:28) at Pipe.<anonymous> (node:net:322:12) {
code: 139,
killed: false,
signal: null,
cmd: ‘fswebcam -r 1280x720 --jpeg 100 --no-banner /home/ozgur/MagicMirror/modules/EXT-Selfies/photos/230716_221810.jpeg’
} -
Hi, no other idea for this
I haven’t any pi camera module 3 for testing -
Thanx anyway… Have a nice day…
-
Bonjour
Exactement le même comportement avec un module 3.
Je branche un module 2, et hop ça marche .