Motion-Project / motion

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

Streaming error with Arducam Hawkeye 64 Mpx #1687

Closed LordDarkneo closed 1 year ago

LordDarkneo commented 1 year ago

Did you read the guide?

Yes

What is the base version number of Motion being used?

4.5.x

What was the install method?

Built from source code

What is base architecture?

ARM-64bit

What is the distro being used?

Raspbian

Disto version number

bullseye

Camera type(s) being used?

Other

Describe the issue/problem and steps to reproduce

Hello there!

I wanted to give a try to the motion server with my newly arducam Hawkeye installed... But seems like it is not working and I do not really know why (in fact I dont really know if I can fix it or ask for an enhancement to be honest :D )

Everything was installed like a charm, but when trying to stream I am having a blank sceen with the message " Unable to open video device".

I guess this issu is link to the use of the libcamera package for the hawkeye (and not the libcamerify) but can it be changed in the motion.conf to use libcamera instead?

Thanks a lot for your help on this.

Just FYI, the motion service is well started but I have the errors below:

juil. 05 21:28:40 raspberrypi motion[3411]: [1:ml1] [ERR] [VID] v4l2_fps_set: Erreur lors de la définition de fps Code de ret> juil. 05 21:28:40 raspberrypi motion[3411]: [1:ml1] [ERR] [VID] v4l2_mmap_set: Erreur de démarrage du flux. VIDIOC STREAMON: > juil. 05 21:28:40 raspberrypi motion[3411]: [1:ml1] [ERR] [VID] vid_start: Impossible d'ouvrir le périphérique V4L2

Motion log output at log_level 8

Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_pixfmt_stride: Vérification de la taille de l'image 640x480 avec la foulée 1280
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [NTC] [VID] v4l2_pixfmt_set: Utilisation de la palette Y 1 2   ( 640x 480)
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [NTC] [VID] v4l2_pixfmt_select: Palette sélectionnée Y12
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [INF] [VID] v4l2_fps_set: Essayer de définir fps sur 15
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [ERR] [VID] v4l2_fps_set: Erreur lors de la définition de fps Code de retour -1
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [INF] [VID] v4l2_fps_set: Périphérique réglé en fps sur 15
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [INF] [VID] v4l2_ctrls_list: Aucun contrôle trouvé pour le périphérique
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_mmap_request: informations mmap: frames = 4
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_mmap_query: 0 longueur=614400 décalage d'adresse (6902c000) 0
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_mmap_query: 1 longueur=614400 décalage d'adresse (68f96000) 614400
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_mmap_query: 2 longueur=614400 décalage d'adresse (68f00000) 1228800
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_mmap_query: 3 longueur=614400 décalage d'adresse (68e6a000) 1843200
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [ERR] [VID] v4l2_mmap_set: Erreur de démarrage du flux. VIDIOC STREAMON: Argument invalide
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_device_close: close
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [DBG] [VID] v4l2_device_cleanup: vid_source
Jul  5 21:34:50 raspberrypi motion: [1:ml1] [ERR] [VID] vid_start: Impossible d'ouvrir le périphérique V4L2