CSI camera RPI

  • Hello.

    LibreELEC 11

    CSI camera connected to RPI. How to add to MotionEye that works in Docker.

    Camera not showing up in libreelec system?

    addon Raspberry PI Tools installed

    uname -a

    Linux LibreELEC 6.1.19 #1 SMP Sat Mar 18 20:56:24 UTC 2023 armv7l GNU/Linux

    vcgencmd get_camera`

    supported=1 detected=1, libcamera interfaces=0

    v4l2-ctl --list-devices

    bcm2835-codec-decode (platform:bcm2835-codec):

    /dev/video10

    /dev/video11

    /dev/video12

    /dev/video18

    /dev/video31

    /dev/media2

    bcm2835-isp (platform:bcm2835-isp):

    /dev/video13

    /dev/video14

    /dev/video15

    /dev/video16

    /dev/video20

    /dev/video21

    /dev/video22

    /dev/video23

    /dev/media0

    /dev/media1

    Cannot open device /dev/video0, exiting.

    nano /flash/config.txt

    # SPDX-License-Identifier: GPL-2.0-or-later

    # Copyright (C) 2009-2014 Stephan Raue ([email protected])

    # Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)

    ################################################################################

    # Bootloader configuration

    # config.txt version v1 (do not remove or change this line!)

    ################################################################################

    # For more options and information see

    # http://rpf.io/configtxt

    ################################################################################

    # Default GPU memory split, 76MB are needed for H264 decoder

    gpu_mem=76

    # Enable I2C OLED

    dtparam=i2c1=on

    dtparam=i2c_arm=on

    enable_uart=1

    # Don't send initial active source message.

    # Avoids bringing CEC (enabled TV) out of standby and channel switch when

    # rebooting.

    hdmi_ignore_cec_init=1

    ################################################################################

    # Include distribution specific config file if it exists.

    ################################################################################

    [all]

    include distroconfig.txt

    # uncomment to enable infrared remote recevier connected to GPIO 18

    #dtoverlay=gpio-ir,gpio_pin=18

    # uncomment to enable analog audio output

    #dtparam=audio=on

    #audio_pwm_mode=1

    initramfs edid.cpio

    docker ccrisan/motioneye:master-armhf
    Code
    docker run --name="motioneye" \
        -p 8765:8765 -p 8081:8081 -p 81:81\
        --hostname="motioneye" \
        -v /var/run/localtime:/etc/localtime:ro \
        -v /storage/.config/motioneye:/etc/motioneye \
        -v /var/media/hdd2/motioneye:/var/lib/motioneye \
        -e TZ=Europe/Minsk \
        --restart="always" \
        --detach=true \
        ccrisan/motioneye:master-armhf
  • Code
    docker pull openhorizon/mjpg-streamer-pi3:latest
    Code
    docker run --restart=always -it -d --privileged -p 8082:8080 openhorizon/mjpg-streamer-pi3 ./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -x 640 -y 480 -fps 10 -ex night"