Newbie question - What is the best way to use 16M Autofocus to stream video to a browser or Synology Surveillance Station

I’m sure this is a really basic question BUT I have not found a simple how-to guide that tells me the best way to use my new Arducam 16m Autofocus camera as a surveillance camera. Maybe someone could point me at the official Arducam suggestion.

I want to stream live video to a browser and my Synology Surveillance Station. I have successfully installed Picamera2 and can save video to my RPi 4 B but I think I need something like MotionEye to sit on top of Picamera2 to be able to stream the video from the RPi to either a browser (eg http://192.168.0.5:8888) or my Synology Surveillance Station.

I am stuck at the Picamera2 stage because it feels like I need to do some reasonably complicated RPi commands to start the stream. I tried

libcamera-vid -t 0 --inline --listen -o tcp://0.0.0.0:8888

but when I got to http://192.168.0.5:8888/ I get

[1:03:20.488545984] [1089]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3729-5f595cca
[1:03:20.538047054] [1093]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'imx519'
[1:03:20.538153862] [1093]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[1:03:20.583920869] [1093]  WARN RPI raspberrypi.cpp:1274 Mismatch between Unicam and CamHelper for embedded data usage!
[1:03:20.584639283] [1093] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[1:03:20.584988704] [1093]  INFO RPI raspberrypi.cpp:1398 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media3 and ISP device /dev/media0
[1:03:20.585933863] [1089]  INFO Camera camera.cpp:1029 configuring streams: (0) 640x480-YUV420
[1:03:20.586506009] [1093]  INFO RPI raspberrypi.cpp:763 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 1280x720-SRGGB10_1X10 - Selected unicam format: 1280x720-pRAA

and the RPI returns to the command prompt and nothing is shown in the browser.

What is the best/simplest “stack” to do this with? What how-to guide should I use?

Thanks in advance.

Charles

So, I think I know what I need to do. I think I need to install libcamera, start a stream on a certain port, then connect to that stream with VLC and the Synology.

I followed the arducam libcamera install here IMX519 Autofocus Camera and Raspberry Pi libcamera Guide - Arducam

I have a 16M Autofocus attached to a 300mm cable attached to a RPI4 Rev B. I have attached a photo.

Could someone have a look and see if there is anything obviously wrong that is causing the stream to abort.

My Streaming Command and the errors I get:

libcamera-vid -t 0 --inline --listen -o tcp://0.0.0.0:8888
Preview window unavailable
[0:02:45.824925402] [777]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3729-5f595cca
[0:02:45.842969960] [779]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'imx519'
[0:02:45.843012750] [779]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:02:45.860958860] [779]  WARN RPI raspberrypi.cpp:1274 Mismatch between Unicam and CamHelper for embedded data usage!
[0:02:45.861553140] [779] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:02:45.861886885] [779]  INFO RPI raspberrypi.cpp:1398 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media1 and ISP device /dev/media0
[0:02:45.862519770] [777]  INFO Camera camera.cpp:1029 configuring streams: (0) 640x480-YUV420
[0:02:45.862984847] [779]  INFO RPI raspberrypi.cpp:763 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 1280x720-SRGGB10_1X10 - Selected unicam format: 1280x720-pRAA
terminate called after throwing an instance of 'std::runtime_error'
  what():  failed to send data on socket
Aborted

uname -a
cat /etc/os-release
cat /proc/meminfo

Linux Picamera2RPi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
MemTotal:        3931048 kB
MemFree:         3760428 kB
MemAvailable:    3741192 kB
Buffers:           14072 kB
Cached:            80632 kB
SwapCached:            0 kB
Active:            54748 kB
Inactive:          55660 kB
Active(anon):        544 kB
Inactive(anon):    16008 kB
Active(file):      54204 kB
Inactive(file):    39652 kB
Unevictable:          16 kB
Mlocked:              16 kB
HighTotal:       3264512 kB
HighFree:        3153884 kB
LowTotal:         666536 kB
LowFree:          606544 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:         15744 kB
Mapped:            28276 kB
Shmem:               840 kB
KReclaimable:      12092 kB
Slab:              28032 kB
SReclaimable:      12092 kB
SUnreclaim:        15940 kB
KernelStack:        1312 kB
PageTables:         1224 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2067920 kB
Committed_AS:     124076 kB
VmallocTotal:     245760 kB
VmallocUsed:        5828 kB
VmallocChunk:          0 kB
Percpu:              448 kB
CmaTotal:         327680 kB
CmaFree:          317088 kB

cat /boot/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

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
dtoverlay=imx519

dmesg

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.32-v7l+ ([email protected]) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1538 SMP Thu Mar 31 19:39:41 BST 2022
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.4
[    0.000000] random: fast init done
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 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]   HighMem  [mem 0x0000000030000000-0x00000000fbffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[    0.000000] percpu: Embedded 16 pages/cpu s35788 r8192 d21556 u65536
[    0.000000] pcpu-alloc: s35788 r8192 d21556 u65536 alloc=16*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1011008
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=E4:5F:01:23:9B:C8 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=afd608c0-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] software IO TLB: mapped [mem 0x0000000014890000-0x0000000018890000] (64MB)
[    0.000000] Memory: 3601320K/4050944K available (10240K kernel code, 1390K rwdata, 3292K rodata, 2048K init, 590K bss, 121944K reserved, 327680K cma-reserved, 3264512K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 35355 entries in 104 pages
[    0.000000] ftrace: allocated 104 pages with 3 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] GIC: Using split EOI/Deactivate mode
[    0.000000] irq_brcmstb_l2: registered L2 intc (/soc/[email protected], parent irq: 25)
[    0.000000] random: get_random_bytes called from start_kernel+0x574/0x758 with crng_init=1
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000022] Switching to timer-based delay loop, resolution 18ns
[    0.000315] Console: colour dummy device 80x30
[    0.001035] printk: console [tty1] enabled
[    0.001112] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001165] pid_max: default: 32768 minimum: 301
[    0.001321] LSM: Security Framework initializing
[    0.001492] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001540] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.003101] cgroup: Disabling memory control group subsystem
[    0.003360] CPU: Testing write buffer coherency: ok
[    0.003431] CPU0: Spectre BHB: using loop workaround
[    0.003889] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005129] Setting up static identity map for 0x200000 - 0x20003c
[    0.005366] rcu: Hierarchical SRCU implementation.
[    0.006320] smp: Bringing up secondary CPUs ...
[    0.007525] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007542] CPU1: Spectre BHB: using loop workaround
[    0.008878] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.008895] CPU2: Spectre BHB: using loop workaround
[    0.010267] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.010285] CPU3: Spectre BHB: using loop workaround
[    0.010472] smp: Brought up 1 node, 4 CPUs
[    0.010508] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.010541] CPU: All CPU(s) started in HYP mode.
[    0.010568] CPU: Virtualization extensions available.
[    0.011349] devtmpfs: initialized
[    0.026711] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.026963] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.027020] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.036718] pinctrl core: initialized pinctrl subsystem
[    0.037984] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.042503] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.043314] audit: initializing netlink subsys (disabled)
[    0.043582] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.044198] thermal_sys: Registered thermal governor 'step_wise'
[    0.044875] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.044933] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.045352] Serial: AMBA PL011 UART driver
[    0.059996] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.100048] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-03-24T13:19:26, variant start
[    0.110065] raspberrypi-firmware soc:firmware: Firmware hash is e5a963efa66a1974127860b42e913d2374139ff5
[    0.169787] Kprobes globally optimized
[    0.175365] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.179991] vgaarb: loaded
[    0.180785] SCSI subsystem initialized
[    0.181041] usbcore: registered new interface driver usbfs
[    0.181149] usbcore: registered new interface driver hub
[    0.181238] usbcore: registered new device driver usb
[    0.181669] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.182161] pps_core: LinuxPPS API ver. 1 registered
[    0.182192] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.182255] PTP clock support registered
[    0.183852] clocksource: Switched to clocksource arch_sys_counter
[    0.264540] VFS: Disk quotas dquot_6.6.0
[    0.264669] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.264867] FS-Cache: Loaded
[    0.265064] CacheFiles: Loaded
[    0.274371] NET: Registered PF_INET protocol family
[    0.274643] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.276257] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.276315] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.276402] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.276495] TCP: Hash tables configured (established 8192 bind 8192)
[    0.276672] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.276732] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.277006] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.278042] RPC: Registered named UNIX socket transport module.
[    0.278078] RPC: Registered udp transport module.
[    0.278106] RPC: Registered tcp transport module.
[    0.278133] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.278169] PCI: CLS 0 bytes, default 64
[    1.135183] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    1.137878] Initialise system trusted keyrings
[    1.138167] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[    1.147280] zbud: loaded
[    1.149274] FS-Cache: Netfs 'nfs' registered for caching
[    1.150180] NFS: Registering the id_resolver key type
[    1.150243] Key type id_resolver registered
[    1.150271] Key type id_legacy registered
[    1.150424] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.150458] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.151586] Key type asymmetric registered
[    1.151618] Asymmetric key parser 'x509' registered
[    1.151863] bounce: pool size: 64 pages
[    1.151939] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.152176] io scheduler mq-deadline registered
[    1.152208] io scheduler kyber registered
[    1.161243] brcm-pcie fd500000.pcie: host bridge /scb/[email protected] ranges:
[    1.161308] brcm-pcie fd500000.pcie:   No bus range found for /scb/[email protected], using [bus 00-ff]
[    1.161423] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.161542] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    1.225959] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.226388] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.226424] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.226461] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.226573] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.226835] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.230643] PCI: bus0: Fast back to back transfers disabled
[    1.230996] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.231140] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.231593] pci 0000:01:00.0: PME# supported from D0 D3hot
[    1.235423] PCI: bus1: Fast back to back transfers disabled
[    1.235500] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.235543] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.235648] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.235687] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.236115] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.236366] pcieport 0000:00:00.0: PME: Signaling with IRQ 79
[    1.249680] iproc-rng200 fe104000.rng: hwrng registered
[    1.250099] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.251684] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.264613] brd: module loaded
[    1.274969] loop: module loaded
[    1.275778] Loading iSCSI transport class v2.0-870.
[    1.281012] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.374021] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.375257] usbcore: registered new interface driver r8152
[    1.375345] usbcore: registered new interface driver lan78xx
[    1.375461] usbcore: registered new interface driver smsc95xx
[    1.423190] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.423245] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.428950] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x00003c0000000890
[    1.430315] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.430362] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.430401] usb usb1: Product: xHCI Host Controller
[    1.430432] usb usb1: Manufacturer: Linux 5.15.32-v7l+ xhci-hcd
[    1.430463] usb usb1: SerialNumber: 0000:01:00.0
[    1.431208] hub 1-0:1.0: USB hub found
[    1.431323] hub 1-0:1.0: 1 port detected
[    1.432014] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.432058] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.432115] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.432597] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    1.432641] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.432679] usb usb2: Product: xHCI Host Controller
[    1.432710] usb usb2: Manufacturer: Linux 5.15.32-v7l+ xhci-hcd
[    1.432741] usb usb2: SerialNumber: 0000:01:00.0
[    1.433466] hub 2-0:1.0: USB hub found
[    1.433554] hub 2-0:1.0: 4 ports detected
[    1.435444] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.435841] dwc_otg: FIQ enabled
[    1.435856] dwc_otg: NAK holdoff enabled
[    1.435869] dwc_otg: FIQ split-transaction FSM enabled
[    1.435886] Module dwc_common_port init
[    1.436350] usbcore: registered new interface driver uas
[    1.436496] usbcore: registered new interface driver usb-storage
[    1.436722] mousedev: PS/2 mouse device common for all mice
[    1.442296] sdhci: Secure Digital Host Controller Interface driver
[    1.442334] sdhci: Copyright(c) Pierre Ossman
[    1.443115] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.447038] ledtrig-cpu: registered to indicate activity on CPUs
[    1.447402] hid: raw HID events driver (C) Jiri Kosina
[    1.447617] usbcore: registered new interface driver usbhid
[    1.447649] usbhid: USB HID core driver
[    1.455454] Initializing XFRM netlink socket
[    1.455519] NET: Registered PF_PACKET protocol family
[    1.455649] Key type dns_resolver registered
[    1.456018] Registering SWP/SWPB emulation handler
[    1.456856] registered taskstats version 1
[    1.456900] Loading compiled-in X.509 certificates
[    1.457799] Key type ._fscrypt registered
[    1.457831] Key type .fscrypt registered
[    1.457859] Key type fscrypt-provisioning registered
[    1.470343] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.470704] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.470871] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2
[    1.480262] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.480767] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.482064] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.482102] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.512448] of_cfs_init
[    1.512711] of_cfs_init: OK
[    1.547746] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.548080] Waiting for root device PARTUUID=afd608c0-02...
[    1.612545] mmc1: new high speed SDIO card at address 0001
[    1.663959] mmc0: new ultra high speed DDR50 SDHC card at address 0001
[    1.664888] mmcblk0: mmc0:0001 SD32G 29.1 GiB
[    1.668353]  mmcblk0: p1 p2
[    1.668927] mmcblk0: mmc0:0001 SD32G 29.1 GiB
[    1.704516] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    1.704628] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.710236] devtmpfs: mounted
[    1.713904] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.721931] Freeing unused kernel image (initmem) memory: 2048K
[    1.744189] Run /sbin/init as init process
[    1.744220]   with arguments:
[    1.744233]     /sbin/init
[    1.744246]   with environment:
[    1.744259]     HOME=/
[    1.744271]     TERM=linux
[    1.896531] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.896593] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.896630] usb 1-1: Product: USB2.0 Hub
[    1.898793] hub 1-1:1.0: USB hub found
[    1.899162] hub 1-1:1.0: 4 ports detected
[    2.112208] systemd[1]: System time before build time, advancing clock.
[    2.236318] NET: Registered PF_INET6 protocol family
[    2.238026] Segment Routing with IPv6
[    2.238107] In-situ OAM (IOAM) with IPv6
[    2.306358] systemd[1]: systemd 247.3-7+rpi1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    2.307275] systemd[1]: Detected architecture arm.
[    2.320712] systemd[1]: Set hostname to <Picamera2RPi>.
[    3.189527] systemd[1]: Queued start job for default target Multi-User System.
[    3.191014] random: systemd: uninitialized urandom read (16 bytes read)
[    3.195339] systemd[1]: Created slice system-getty.slice.
[    3.196141] random: systemd: uninitialized urandom read (16 bytes read)
[    3.197244] systemd[1]: Created slice system-modprobe.slice.
[    3.197684] random: systemd: uninitialized urandom read (16 bytes read)
[    3.198695] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.199935] systemd[1]: Created slice User and Session Slice.
[    3.200767] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    3.201534] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.202947] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.203612] systemd[1]: Reached target Local Encrypted Volumes.
[    3.204449] systemd[1]: Reached target Paths.
[    3.205003] systemd[1]: Reached target Slices.
[    3.205494] systemd[1]: Reached target Swap.
[    3.206967] systemd[1]: Listening on Syslog Socket.
[    3.208050] systemd[1]: Listening on fsck to fsckd communication Socket.
[    3.208808] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.210266] systemd[1]: Listening on Journal Audit Socket.
[    3.211361] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.212690] systemd[1]: Listening on Journal Socket.
[    3.218930] systemd[1]: Listening on udev Control Socket.
[    3.220136] systemd[1]: Listening on udev Kernel Socket.
[    3.221337] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    3.226873] systemd[1]: Mounting POSIX Message Queue File System...
[    3.233335] systemd[1]: Mounting RPC Pipe File System...
[    3.240434] systemd[1]: Mounting Kernel Debug File System...
[    3.248259] systemd[1]: Mounting Kernel Trace File System...
[    3.249312] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    3.260909] systemd[1]: Starting Restore / save the current clock...
[    3.271556] systemd[1]: Starting Set the console keyboard layout...
[    3.279719] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    3.287850] systemd[1]: Starting Load Kernel Module configfs...
[    3.295762] systemd[1]: Starting Load Kernel Module drm...
[    3.304387] systemd[1]: Starting Load Kernel Module fuse...
[    3.308720] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    3.316612] systemd[1]: Starting File System Check on Root Device...
[    3.329614] systemd[1]: Starting Journal Service...
[    3.340033] systemd[1]: Starting Load Kernel Modules...
[    3.347911] systemd[1]: Starting Coldplug All udev Devices...
[    3.361553] systemd[1]: Mounted POSIX Message Queue File System.
[    3.362787] systemd[1]: Mounted RPC Pipe File System.
[    3.376097] fuse: init (API version 7.34)
[    3.377753] systemd[1]: Mounted Kernel Debug File System.
[    3.394300] systemd[1]: Mounted Kernel Trace File System.
[    3.397774] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    3.407327] systemd[1]: [email protected]: Succeeded.
[    3.436042] systemd[1]: Finished Load Kernel Module configfs.
[    3.440925] systemd[1]: Finished Restore / save the current clock.
[    3.447659] systemd[1]: [email protected]: Succeeded.
[    3.449328] systemd[1]: Finished Load Kernel Module fuse.
[    3.452275] systemd[1]: [email protected]: Succeeded.
[    3.453809] systemd[1]: Finished Load Kernel Module drm.
[    3.457251] systemd[1]: Finished Load Kernel Modules.
[    3.469773] systemd[1]: Mounting FUSE Control File System...
[    3.481823] systemd[1]: Mounting Kernel Configuration File System...
[    3.501164] systemd[1]: Started File System Check Daemon to report status.
[    3.517292] systemd[1]: Starting Apply Kernel Variables...
[    3.527650] systemd[1]: Mounted FUSE Control File System.
[    3.528736] systemd[1]: Mounted Kernel Configuration File System.
[    3.585667] systemd[1]: Finished Apply Kernel Variables.
[    3.642242] systemd[1]: Finished File System Check on Root Device.
[    3.648802] systemd[1]: Starting Remount Root and Kernel File Systems...
[    3.708224] systemd[1]: Started Journal Service.
[    3.834519] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none.
[    3.904662] systemd-journald[136]: Received client request to flush runtime journal.
[    3.915143] systemd-journald[136]: File /var/log/journal/ea4098166ed94a599a325835691f5c38/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    4.854943] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.905018] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.939818] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.953427] mc: Linux media interface: v0.10
[    4.957733] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    5.017097] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    5.019704] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    5.019732] [vc_sm_connected_init]: start
[    5.032693] [vc_sm_connected_init]: installed successfully
[    5.050970] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.065656] videodev: Linux video capture interface: v2.00
[    5.163503] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    5.166997] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    5.190039] bcm2835_audio bcm2835_audio: card created with 8 channels
[    5.269506] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.286943] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.289385] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.326377] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    5.327394] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    5.359785] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    5.364735] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    5.369719] i2c i2c-22: Added multiplexed i2c bus 0
[    5.370934] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    5.374460] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    5.388787] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    5.388882] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.388961] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.389037] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.389108] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.390896] i2c 10-001a: Fixing up cyclic dependency with fe801000.csi
[    5.391746] i2c i2c-22: Added multiplexed i2c bus 10
[    5.453583] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    5.472820] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    5.472893] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    5.480386] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    5.484884] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    5.484932] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    5.485961] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    5.506284] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    5.506345] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.506372] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.506396] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.506419] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.506717] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    5.506832] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    5.507225] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    5.522837] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    5.522893] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    5.588199] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    5.603811] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    5.611031] Registered IR keymap rc-cec
[    5.656483] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    5.656598] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    5.684151] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    5.684862] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input0
[    6.122304] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.135668] Registered IR keymap rc-cec
[    6.159898] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.306424] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input1
[    6.378159] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.423503] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.440768] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.707239] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.721000] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.731326] Registered IR keymap rc-cec
[    6.738824] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.739986] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[    6.746818] usbcore: registered new interface driver brcmfmac
[    6.784587] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.893887] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input2
[    7.000479] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.000629] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.006353] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    7.156047] random: crng init done
[    7.156065] random: 7 urandom warning(s) missed due to ratelimiting
[    7.177571] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    7.195788] Registered IR keymap rc-cec
[    7.195985] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    7.196241] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input3
[    7.420972] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    7.432147] Registered IR keymap rc-cec
[    7.432374] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    7.432625] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input4
[    7.449910] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    7.472299] Registered IR keymap rc-cec
[    7.472514] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    7.472775] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input5
[    7.593299] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    7.594163] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    7.594668] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.595096] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.595514] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.595853] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.596318] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.699927] ak7375: loading out-of-tree module taints kernel.
[    7.713795] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    7.714485] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[    7.837378] imx519 10-001a: Device found is imx519
[    7.843219] imx519 10-001a: Consider updating driver imx519 to match on endpoints
[    7.956130] uart-pl011 fe201000.serial: no DMA platform data
[    8.221913] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    8.525680] 8021q: 802.1Q VLAN Support v1.8
[    8.848003] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    9.125410] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    9.125915] bcmgenet fd580000.ethernet eth0: Link is Down
[   14.291990] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   14.654075] Bluetooth: Core ver 2.22
[   14.654166] NET: Registered PF_BLUETOOTH protocol family
[   14.654176] Bluetooth: HCI device and connection manager initialized
[   14.654197] Bluetooth: HCI socket layer initialized
[   14.654210] Bluetooth: L2CAP socket layer initialized
[   14.654232] Bluetooth: SCO socket layer initialized
[   14.662038] Bluetooth: HCI UART driver ver 2.3
[   14.662056] Bluetooth: HCI UART protocol H4 registered
[   14.662130] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.662375] Bluetooth: HCI UART protocol Broadcom registered
[   14.968849] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.968861] Bluetooth: BNEP filters: protocol multicast
[   14.968872] Bluetooth: BNEP socket layer initialized
[   14.980628] NET: Registered PF_ALG protocol family
[   14.996884] cryptd: max_cpu_qlen set to 1000
[   31.833931] cam-dummy-reg: disabling

Hi, @howdey57

This seems to be a socket problem. I didn’t get this error when I tested it.

You can use python to create an http server that pushes the image to the front-end page.

Thanks for your response however I am not technical enough to know what you are suggesting . I know it is a socket error because that is what the error says.

Do you have any practical suggestions about what I might do next? There are warnings, errors and info that might point at fixes to try.

I’ve reinstalled everything and not don’t get the same issue. The NEW issue is that I can’t connect to the RPi from VLC. When I try to start the stream, I get this.

What can I do to fix this?

libcamera-vid -t 0 --inline -- listen -o tcp://0.0.0.0:8887
Preview window unavailable
[0:03:10.906121336] [1328]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3896-6019b245
[0:03:10.928163556] [1330]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'imx519'
[0:03:10.928210074] [1330]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:03:10.955639559] [1330]  WARN RPI raspberrypi.cpp:1280 Mismatch between Unicam and CamHelper for embedded data usage!
[0:03:10.956645423] [1330] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:03:10.956816978] [1330]  INFO RPI raspberrypi.cpp:1404 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media0 and ISP device /dev/media3
[0:03:10.957538029] [1328]  INFO Camera camera.cpp:1035 configuring streams: (0) 640x480-YUV420
[0:03:10.958000637] [1330]  INFO RPI raspberrypi.cpp:765 Sensor: /base/soc/i2c0mux/[email protected]/[email protected] - Selected sensor format: 1280x720-SRGGB10_1X10 - Selected unicam format: 1280x720-pRAA

cat /boot/config.txt

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1
dtoverlay=vc4-kms-v3d,cma-256

[all]
dtoverlay=imx519

@howdey57

I will try, please wait