#Need Help for 16MP ArduCam - working for timelapse

60 messages Β· Page 1 of 1 (latest)

void dust
#

I install Raspberry PI OS Bulleye - with Kernel 5.15.61 v7
Installed Arducam drivers
Install Crownest / Mainsail / Klipper / Timelapse
All working expect the camera showing no signal

I can the can is detect which I do ls /dev/video* --- > detected as video0

I tried to take a snap using the commands on arducam side and i can see the image is captured on the SD card.

Need proper guide to get this working. Tired multiple things from past two weeks but this is not working.

Also if I cant get this working I want my mobile cam to take pictures during timelapse

My mobile cam is detect and i can see the feed in the webcam session. Mobile has droid cam installed.

When i start the timelapse no pictures is capture using http://ip:8080/photo.jpg

I gave permission on mobile to store data, manually I can take pics and they are being store but not via mailsail / timelapse.

Kindly help - I need to get some good quality timelapse using my mobile / 16mp arducam

lost elk
#

So, its hard to say, but you are out of luck. Arducams arent supported by crowsnest. To the issue with timelapse and an external source I cant say anything because I dont use timelapse, sorry.

#

Maybe @verbal berry could help here, but the team is quite busy, so please be patient.

verbal berry
#

Nope no idea normally you need the snapshot url for that.

rare barn
void dust
zinc crescent
#

could you provide your moonraker.log?

rare barn
void dust
#

sure, I will post it soon. I have formatted the SD card and reinstalling all things

void dust
#

this is just an example on what i am looking for

void dust
#

Hello Guys, I install arducam drivers and MJPG streamer , not using crowsnest. Below are the logs from Webcamd. please can you some help me here

Device : RPI 4 - 4GB

#

Starting up webcamDaemon...
Modified by ChokunPlayZ, use at your own risk

--- Configuration: ----------------------------
cfg_file: /home/pi/klipper_config/webcam.txt
camera: libcamera
usb options: -r 640x480 -f 10
raspi options: -fps 10
libcamera options: -f 30 -r 640x480
http options: -w ./www-mjpgstreamer --listen 0.0.0.0

Explicitly set USB device:

Found video 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
config file='/home/pi/klipper_config/webcam.txt':Starting MJPG-streamer with video device: libcamera
<13>Nov 25 17:17:36 pi: Starting Libcamera camera
Checking for VL805 (Raspberry Pi 4)...

  • It seems that you don't have VL805 (Raspberry Pi 4).
    There should be no problems with USB (a.k.a. select() timeout)
    Running ./mjpg_streamer -o output_http.so -w ./www-mjpgstreamer --listen 0.0.0.0 -i input_libcamera.so -f 30 -r 640x480
    MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
    ERROR: could not find input plugin
    Perhaps you want to adjust the search path with:

    export LD_LIBRARY_PATH=/path/to/plugin/folder

    dlopen: ./input_libcamera.so: undefined symbol: _ZN9libcamera8controls5draft9AfTriggerE
lost elk
void dust
#

ok let me try that as well

#

thanks for the input, will report back soon

void dust
#

@lost elk I just saw your comment / issue raised on Camera_streamer GIT. I have got it work on my klipper and its very smooth. I am just struggling with Camera focus for 16mp Arducam. any idea how to do manual focus on it ?

lost elk
void dust
#

yes right

lost elk
#

What I meant was are you using the ayucamstream branch of crowsnest. But obviously not so, I cant help with that, I recently started my self to discover it. But maybe @plain thorn could πŸ˜‰

void dust
#

ohh ok, thanks I have already raised an issue regarding it

#

Also thanks for highlighting that there is a crowsnest brach of ayucamstream. will look into it

lost elk
void dust
#

3

#

have just learning sometime ago πŸ˜„

lost elk
#

Well, good enough. Maybe you could do testing for me because I own no arducam πŸ˜‰

void dust
#

ofcourse i can do that

#

I have 2 Ardu cam, with Pi3b+ and 4 as well

#

I would inititally needs you help setting up thing and testing

lost elk
#

Well, change branch in crowsnest. Also disable moonraker update manager entry for now.

plain thorn
#

I can answer tomorrow just in case πŸ™‚

void dust
#

Sure let will try tomorrow. It already 2.30 am here, will do that tomorrow and update you guys.

void dust
#

@plain thorn can you provide some detail info on how to get focus working. I am getting errors while is try to set focus

plain thorn
void dust
#

I am getting error while I make install from ayucam branch
Steps I follows

  1. I cloned repo
  2. Git checkout feat/ayucamstream
  3. git pull origin feat/ayucamstream
    4)sudo make install

Error as below after that
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
Installing 'crowsnest' Dependencies ... [OK]
Linking crowsnest ... [OK]
Found existing 'crowsnest.conf' in /home/pi/printer_data/config
Checking log_path ...
Setup new log_path: /home/pi/printer_data/logs
Build dependend Stream Apps ...
Cloning ustreamer repository ...
Cloning into 'bin/ustreamer'...
remote: Enumerating objects: 8797, done.
remote: Counting objects: 100% (319/319), done.
remote: Compressing objects: 100% (187/187), done.
remote: Total 8797 (delta 160), reused 257 (delta 124), pack-reused 8478
Receiving objects: 100% (8797/8797), 5.40 MiB | 1.21 MiB/s, done.
Resolving deltas: 100% (5896/5896), done.
Cloning camera-streamer repository ...
fatal: The empty string is not a valid path
make: *** [Makefile:37: install] Error 128

void dust
#

I got that installed now

#

not sure how do i verify if its installed from correct branch

void dust
#

@plain thorn are you available now ?

void dust
#

Hello Guys, I am getting no signal on my webcam. below are the logs from crowsnest

Check the fourth last line highlighted on bold, I am not sure where I put these files

[
[12/01/22 14:25:29] crowsnest: INFO: Print Configfile: '/home/pi/printer_data/config/crowsnest.conf'
[12/01/22 14:25:29] crowsnest: [crowsnest]
[12/01/22 14:25:29] crowsnest: log_path: ~/printer_data/logs/crowsnest.log
[12/01/22 14:25:29] crowsnest: log_level: verbose
[12/01/22 14:25:29] crowsnest: delete_log: false
[12/01/22 14:25:29] crowsnest:
[12/01/22 14:25:29] crowsnest: [cam 1]
[12/01/22 14:25:29] crowsnest: mode: mjpg
[12/01/22 14:25:29] crowsnest: port: 8080
[12/01/22 14:25:29] crowsnest: device: /dev/video0
[12/01/22 14:25:29] crowsnest: resolution: 640x480
[12/01/22 14:25:29] crowsnest: max_fps: 15
[12/01/22 14:25:29] crowsnest: INFO: Detect available Devices
[12/01/22 14:25:29] crowsnest: INFO: Found 1 total available Device(s)
[12/01/22 14:25:29] crowsnest: INFO: Found 1 available csi device(s)
[12/01/22 14:25:29] crowsnest: /dev/v4l/by-path/platform-3f801000.csi-video-index0 -> /dev/video0
[12/01/22 14:25:29] crowsnest: V4L2 Control:
[12/01/22 14:25:30] crowsnest: No parameters set for [cam 1]. Skipped.
[12/01/22 14:25:31] crowsnest: Try to start configured Cams / Services...
[12/01/22 14:25:32] crowsnest: INFO: Configuration of Section [cam 1] looks good. Continue...
[12/01/22 14:25:34] crowsnest: ... Done!
[12/01/22 14:25:34] crowsnest: Starting ustreamer with Device /dev/video0 ..

#

i am on this branch - feat/ayucamstream

lost elk
#

If you want try your luck with that branch use mode: multi to use camera-streamer instead of ustreamer, but be aware thats a totally experimental branch not officially supported.

void dust
#

@lost elk As discussed last week, we were about to test arducam on Pi3 and PI4 with you help.

I tried mode : multi but in the logs its say fallback to MJPG. below are the logs

[12/01/22 22:13:38] crowsnest: INFO: Print Configfile: '/home/pi/printer_data/config/crowsnest.conf'
[12/01/22 22:13:38] crowsnest: [crowsnest]
[12/01/22 22:13:38] crowsnest: log_path: ~/printer_data/logs/crowsnest.log
[12/01/22 22:13:38] crowsnest: log_level: verbose
[12/01/22 22:13:38] crowsnest: delete_log: false
[12/01/22 22:13:38] crowsnest:
[12/01/22 22:13:38] crowsnest: [cam 1]
[12/01/22 22:13:38] crowsnest: mode: Multi
[12/01/22 22:13:38] crowsnest: port: 8080
[12/01/22 22:13:38] crowsnest: device: /dev/video0
[12/01/22 22:13:38] crowsnest: resolution: 640x480
[12/01/22 22:13:38] crowsnest: max_fps: 30
[12/01/22 22:13:38] crowsnest: INFO: Detect available Devices
[12/01/22 22:13:38] crowsnest: INFO: Found 1 total available Device(s)
[12/01/22 22:13:38] crowsnest: INFO: Found 1 available csi device(s)
[12/01/22 22:13:38] crowsnest: /dev/v4l/by-path/platform-3f801000.csi-video-index0 -> /dev/video0
[12/01/22 22:13:38] crowsnest: V4L2 Control:
[12/01/22 22:13:39] crowsnest: No parameters set for [cam 1]. Skipped.
[12/01/22 22:13:40] crowsnest: Try to start configured Cams / Services...
[12/01/22 22:13:41] crowsnest: INFO: Configuration of Section [cam 1] looks good. Continue...
[12/01/22 22:13:41] crowsnest: WARN: Unknown Mode configured!
[12/01/22 22:13:41] crowsnest: WARN: Using 'mode: mjpg' as fallback!
[12/01/22 22:13:43] crowsnest: ... Done!
[12/01/22 22:13:43] crowsnest: Starting ustreamer with Device /dev/video0 ...

lost elk
void dust
lost elk
#

Not Multi .. multi

#

[12/01/22 22:13:38] crowsnest: mode: Multi

#

Should be mode: multi

lost elk
void dust
void dust
#

@lost elk seems like something is still broken

libdrm-omap1 libimagequant0 libkms++0 libturbojpeg0 libwebpdemux2 python3-kms++ python3-numpy python3-pidng python3-piexif python3-pil python3-prctl python3-simplejpeg python3-v4l2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
Installing 'crowsnest' Dependencies ... [OK]
Linking crowsnest ... [OK]
Found existing 'crowsnest.conf' in /home/pi/printer_data/config
Checking log_path ...
Setup new log_path: /home/pi/printer_data/logs
Build dependend Stream Apps ...
Cloning ustreamer repository ...
Cloning into 'bin/ustreamer'...
remote: Enumerating objects: 8894, done.
remote: Counting objects: 100% (416/416), done.
remote: Compressing objects: 100% (198/198), done.
remote: Total 8894 (delta 218), reused 380 (delta 206), pack-reused 8478
Receiving objects: 100% (8894/8894), 5.40 MiB | 1.75 MiB/s, done.
Resolving deltas: 100% (5954/5954), done.
Cloning camera-streamer repository ...
fatal: The empty string is not a valid path
make: *** [Makefile:37: install] Error 128

lost elk
void dust
lost elk
#

crowsnest/bin/camera-streamer

void dust
#

I got that working without crowsnest, manual focus. 30 fps with no load on my cpu /gpu. Looks very good.

void dust
#

now also works with crowsnest install.