mainsail-crew / crowsnest

Webcam Service for multiple Cams
GNU General Public License v3.0
302 stars 71 forks source link

Not seeing any output from the camera with IR night camera setup with N3PRO #172

Closed tejamainhoon14 closed 10 months ago

tejamainhoon14 commented 10 months ago

What happened

Here's my crowsnest.conf

[crowsnest]
log_path: /home/n3pro/printer_data/logs/crowsnest.log
log_level: verbose                      # Valid Options are quiet/verbose/debug
delete_log: false                       # Deletes log on every restart, if set to true
no_proxy: false

[cam N3PRO]
mode: camera-streamer                   # ustreamer - Provides mjpg and snapshots. (All devices)
                                        # camera-streamer - Provides webrtc, mjpg and snapshots. (rpi + Raspi OS based only)
enable_rtsp: false                      # If camera-streamer is used, this enables also usage of an rtsp server
rtsp_port: 8554                         # Set different ports for each device!
port: 8081                              # HTTP/MJPG Stream/Snapshot Port
#device: /dev/video0                     # See Log for available ...
device: /dev/v4l/by-path/platform-fe801000.csi-video-index0
resolution: 640x480                     # widthxheight format
max_fps: 15                             # If Hardware Supports this it will be forced, otherwise ignored/coerced.
#custom_flags:                          # You can run the Stream Services with custom flags.
#v4l2ctl:                               # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of.

I'm using this IR camera and here's a snapshot of image I took to test connections test

I'm using RPi 4 B to run Mainsail + Moonraker + Klipper. I'm using v4.0.4 version for crowsnest and here's my log from crowsnest

[09/03/23 20:40:57] crowsnest: Version: v4.0.4
[09/03/23 20:40:57] crowsnest: Prepare Startup ...
[09/03/23 20:40:57] crowsnest: INFO: Host information:
[09/03/23 20:40:57] crowsnest: Host Info: Distribution: Raspbian GNU/Linux 11 (bullseye)
[09/03/23 20:40:57] crowsnest: Host Info: Release: MainsailOS release 1.2.1 (bullseye)
[09/03/23 20:40:57] crowsnest: Host Info: Kernel: Linux 6.1.21-v8+ aarch64
[09/03/23 20:40:57] crowsnest: Host Info: Model:  Raspberry Pi 4 Model B Rev 1.1
[09/03/23 20:40:57] crowsnest: Host Info: Available CPU Cores: 4
[09/03/23 20:40:57] crowsnest: Host Info: Available Memory: 3705524 kB
[09/03/23 20:40:57] crowsnest: Host Info: Diskspace (avail. / total): 8.5G / 15G
[09/03/23 20:40:57] crowsnest: INFO: Checking Dependencies
[09/03/23 20:40:57] crowsnest: Dependency: 'crudini' found in /usr/bin/crudini.
[09/03/23 20:40:57] crowsnest: Dependency: 'find' found in /usr/bin/find.
[09/03/23 20:40:57] crowsnest: Dependency: 'xargs' found in /usr/bin/xargs.
[09/03/23 20:40:57] crowsnest: Dependency: 'ustreamer' found in bin/ustreamer/ustreamer.
[09/03/23 20:40:57] crowsnest: Dependency: 'camera-streamer' found in bin/camera-streamer/camera-streamer.
[09/03/23 20:40:57] crowsnest: Version Control: ustreamer is up to date. (v5.42)
[09/03/23 20:40:57] crowsnest: Version Control: camera-streamer is up to date. ((ef8f6a4))
[09/03/23 20:40:57] crowsnest: INFO: Print Configfile: '/home/n3pro/printer_data/config/crowsnest.conf'
[09/03/23 20:40:57] crowsnest:      [crowsnest]
[09/03/23 20:40:57] crowsnest:      log_path: /home/n3pro/printer_data/logs/crowsnest.log
[09/03/23 20:40:57] crowsnest:      log_level: verbose
[09/03/23 20:40:57] crowsnest:      delete_log: false
[09/03/23 20:40:57] crowsnest:      no_proxy: false
[09/03/23 20:40:57] crowsnest:      
[09/03/23 20:40:57] crowsnest:      [cam N3PRO]
[09/03/23 20:40:57] crowsnest:      mode: camera-streamer
[09/03/23 20:40:57] crowsnest:      
[09/03/23 20:40:57] crowsnest:      enable_rtsp: false
[09/03/23 20:40:57] crowsnest:      rtsp_port: 8554
[09/03/23 20:40:57] crowsnest:      port: 8081
[09/03/23 20:40:57] crowsnest:      device: /dev/v4l/by-path/platform-fe801000.csi-video-index0
[09/03/23 20:40:57] crowsnest:      resolution: 1280x720
[09/03/23 20:40:57] crowsnest:      max_fps: 15
[09/03/23 20:40:57] crowsnest: INFO: Detect available Devices
[09/03/23 20:40:57] crowsnest: INFO: Found 1 total available Device(s)
[09/03/23 20:40:57] crowsnest: Detected 'libcamera' device -> /base/soc/i2c0mux/i2c@1/ov5647@36
[09/03/23 20:40:57] crowsnest: Try to start configured Cams / Services...
[09/03/23 20:40:59] crowsnest: INFO: Configuration of Section [cam N3PRO] looks good. Continue ...
[09/03/23 20:41:00] crowsnest: Starting camera-streamer with Device /dev/v4l/by-path/platform-fe801000.csi-video-index0 ...
[09/03/23 20:41:01] crowsnest:  ... Done!

and here's my webcam setup on Interface settings on Mainsail GUI

image

I don't see any output from the camera. Can someone help me? I'm new to this

What did you expect to happen

Expected camera output to work

How to reproduce

Follow the above steps

Additional information

No response

mryel00 commented 10 months ago

You simply try to use the wrong device. All available devices are listed inside the log. Yours is a raspicam, so please take a look at our documentation for raspicams. If you need further help, please join our discord

github-actions[bot] commented 10 months ago

Ahoi!

It looks like this ticket is a request for help (or similar). Many helpful people will not see your message here and you are unlikely to get a useful response.

We use github to handle bugreports, feature requests and planning new releases.

Please use our Discord-Server for help: discord.gg/mainsail

This ticket will be automatically closed.

Fair wind and a following sea! ~ Your friendly MainsailGithubBot

PS: I'm just an automated script, not a real sailor.