Closed sahck2003 closed 5 months ago
The Stream works. That was my Fault. But two Cameras on mode Multi are not working for me.
Hey @sahck2003,
Thanks for reporting this, but
So, I will not close this yet to keep track of, but I think it wont get better due hardware limitations.
Regards Kwad
Hey @KwadFan, I just wanted to report this because a feedback on the developer branch was desired. At least that's how I read it :) I also don't expect this bug to be fixed in this Branch. I just wanted to leave some feedback.
Regards sahck2003
Great, in that regard, your submit is welcome. Thanks.
@sahck2003 I need logs, /boot/config.txt
and dmesg
.
Hello , here are the logs.
config.txt
``` # For more options and information see # http://rpf.io/configtxt # Some settings may impact device functionality. See link above for details # uncomment if you get no picture on HDMI for a default "safe" mode #hdmi_safe=1 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 # uncomment to force a console size. By default it will be display's size minus # overscan. #framebuffer_width=1280 #framebuffer_height=720 # uncomment if hdmi display is not detected and composite is being output #hdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA) #hdmi_group=1 #hdmi_mode=1 # uncomment to force a HDMI mode rather than DVI. This can make audio work in # DMT (computer monitor) modes #hdmi_drive=2 # uncomment to increase signal to HDMI, if you have interference, blanking, or # no display #config_hdmi_boost=4 # uncomment for composite PAL #sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) dtparam=audio=on # Automatically load overlays for detected cameras camera_auto_detect=1 # Automatically load overlays for detected DSI displays display_auto_detect=1 # Enable DRM VC4 V3D driver dtoverlay=vc4-kms-v3d max_framebuffers=2 # Disable compensation for displays with overscan disable_overscan=1 [cm4] # Enable host mode on the 2711 built-in XHCI USB controller. # This line should be removed if the legacy DWC2 controller is required # (e.g. for USB device mode) or if USB support is not required. otg_mode=1 gpu_mem=256 [all] [pi4] # Run as fast as firmware / board allows arm_boost=1 [all] #################################################### #### MainsailOS specific configurations #### #################################################### #### DO NOT CHANGE SECTION BELOW !!! #### #### UNLESS YOU KNOW WHAT YOU ARE DOING !!! #### #################################################### ## For more options and information see ## https://www.raspberrypi.com/documentation/computers/config_txt.html ## Some settings may impact device functionality. See link above for details ## For additional information about device filters see ## https://www.raspberrypi.com/documentation/computers/config_txt.html#model-filters [pi0] ## This affects Pi Zero(W) and Pi Zero2 ## Due lag of RAM, limit GPU RAM gpu_mem=256 [pi2] gpu_mem=256 [pi3] ## Use 256 if 1Gb Ram Model! gpu_mem=256 [pi4] ## Do not use more than 256Mb on Pi Model 4, it uses its own Management. gpu_mem=256 [all] ## SPI Interface is enabled by default for Input Shaper ## This colides with Hyperpixel Display! ## Hyperpixel Screen uses the same Pin for Backlight. dtparam=spi=on ## Enable Hardware UART for Serial Communication ## This also disables Bluetooth! enable_uart=1 dtoverlay=disable-bt ## Disable libcamera (interferes with ustreamer, when using raspicams) camera_auto_detect=1 ## Enable VideoCore at boot, needed for Crowsnest (Raspicams and DSI devices). camera_auto_detect=1 ### EXPERIMENTAL - Enable 64bit Kernel ### The 64-bit kernel will only work on: ### Raspberry Pi 3, 3+, 4, 400, Zero 2 W and 2B rev 1.2 ### and Raspberry Pi Compute Modules 3, 3+ and 4. # arm_64bit=1 #################################################### [all] start_x=1 ```
dmesg
```
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.1.19-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1637 SMP Tue Mar 14 11:04:52 GMT 2023
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] random: crng init done
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x1ec00000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] percpu: Embedded 17 pages/cpu s36884 r8192 d24556 u69632
[ 0.000000] pcpu-alloc: s36884 r8192 d24556 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 194880
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=tty1 root=PARTUUID=46291a7d-02 rootfstype=ext4 fsck.repair=yes rootwait
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 498216K/786432K available (10240K kernel code, 1452K rwdata, 2900K rodata, 1024K init, 613K bss, 26072K reserved, 262144K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 34798 entries in 103 pages
[ 0.000000] ftrace: allocated 102 pages with 4 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000018] Switching to timer-based delay loop, resolution 52ns
[ 0.000391] Console: colour dummy device 80x30
[ 0.001014] printk: console [tty1] enabled
[ 0.001081] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.001127] pid_max: default: 32768 minimum: 301
[ 0.001286] LSM: Security Framework initializing
[ 0.001509] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.001553] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002728] cgroup: Disabling memory control group subsystem
[ 0.002983] CPU: Testing write buffer coherency: ok
[ 0.003425] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.004290] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.004328] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.004457] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.004617] Setting up static identity map for 0x100000 - 0x10003c
[ 0.004775] rcu: Hierarchical SRCU implementation.
[ 0.004800] rcu: Max phase no-delay instances is 1000.
[ 0.005523] smp: Bringing up secondary CPUs ...
[ 0.006453] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.007408] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.008287] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.008390] smp: Brought up 1 node, 4 CPUs
[ 0.008475] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.008502] CPU: All CPU(s) started in HYP mode.
[ 0.008521] CPU: Virtualization extensions available.
[ 0.009242] devtmpfs: initialized
[ 0.025206] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.025455] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.025511] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.035655] pinctrl core: initialized pinctrl subsystem
[ 0.036876] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.040020] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.045174] audit: initializing netlink subsys (disabled)
[ 0.045430] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[ 0.046049] thermal_sys: Registered thermal governor 'step_wise'
[ 0.046937] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.046991] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.047262] Serial: AMBA PL011 UART driver
[ 0.054502] platform 3f101000.cprman: Fixed dependency cycle(s) with /soc/dsi@7e700000
[ 0.055001] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.060212] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx708@1a
[ 0.080083] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:53:39, variant start_x
[ 0.090096] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[ 0.133129] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[ 0.138489] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[ 0.140233] SCSI subsystem initialized
[ 0.140490] usbcore: registered new interface driver usbfs
[ 0.140572] usbcore: registered new interface driver hub
[ 0.140641] usbcore: registered new device driver usb
[ 0.140891] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.141080] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 0.141371] pps_core: LinuxPPS API ver. 1 registered
[ 0.141396] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
Would you be using a CM4 with a Manta board?
No, Raspberry Pi 3 with an Octopus 1.1.
camera-streamer is merged for quite some time now and a lot of people are using multiple cameras with it. So I would close this and hope that you either join our Discord or our Github Discussions, if you still encounter this problem. The links can be found in the bot message below.
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 the Github Issue-Tracker only for development related topics, like feature requests, bug reports etc. To get help, please join our Discord-Server or ask in Github Discussions:
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.
What happened
Hello, I have two cameras on my system and use the developer version of Crowsnest. I use this because I have connected an RPI3 camera. The other is a Logitech C270
If I set both cams to multi, both cameras no longer work. If I only set the RPI3 Camera to Multi and the C270 to mjpg, the Stream from the C270 does not work. I Can see only the RPI3 Stream.
What did you expect to happen
Both streams should work
How to reproduce
Change the mode mpjg to multi for the C270
Additional information
[crowsnest] log_path: ~/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
[cam picam] mode: multi # mjpg/multi - Multi uses webrtc, mjpg and snapshots at the same time enable_rtsp: false # If multi is used, this enables also usage of an rtsp server rtsp_port: 8554 # Set different ports for each device! port: 8080 # HTTP/MJPG Stream/Snapshot Port device: /base/soc/i2c0mux/i2c@1/imx708@1a # See Log for available ... resolution: 4608×2592 # widthxheight format max_fps: 30 # 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.
[cam c270] mode: mjpg # mjpg/multi - Multi uses webrtc, mjpg and snapshots at the same time enable_rtsp: false # If multi is used, this enables also usage of an rtsp server rtsp_port: 8555 # Set different ports for each device! port: 8081 # HTTP/MJPG Stream/Snapshot Port device: /dev/video2 # See Log for available ... resolution: 1268x800 # widthxheight format max_fps: 30 # 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.