Projects / Camera recorder on Orange Pi 5

Camera recorder on Orange Pi 5

Intermediate3 hGuided buildReviewed
ORANGESSD256ETHERN

Build it step by step

0 of 8 done
  1. ORANGE

    Install the OS on the Orange Pi

    From the vendor's image.

  2. ORANGESSD256

    Mount the NVMe

    At /mnt/nvme.

  3. ORANGE

    Install Docker

    Then docker compose.

  4. ORANGE

    Give each camera a fixed address

    In your router.

  5. ORANGE

    Write the compose file and config

    Your own camera password.

  6. ORANGE

    Start Frigate

    docker compose up -d.

  7. ORANGE

    Open the web page

    Check each camera.

  8. ORANGE

    Set masks and retention

    So clips are useful and the disk does not fill.

In short

How do you build a camera recorder on Orange Pi 5?

An Orange Pi 5 with an NVMe drive runs Frigate to record four IP cameras and mark motion, keeping clips on the SSD. You need Orange Pi 5, NVMe SSD 256 GB (M.2 2230/2242) and Ethernet cable Cat6 (3 m). It takes 8 steps and about 180 minutes.

Level
Intermediate
Time
About 180 min
Parts
3

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Orange Pi 5Ethernet cable to your router or PoE switchCameras and viewing PC on the same network
NVMe SSDOrange Pi 5 M.2 slot, check the key and lengthClip storage
PowerOrange Pi 5's supply as the board requires (5 V USB-C PD)Stable power
IP camerasSame network, fixed addresses, RTSP enabledVideo sources

Code

Frigate is free recording software that watches IP camera streams, keeps clips when something moves and lets you review events in a web page. On the Orange Pi 5, install a current Ubuntu or Debian image from the vendor, format and mount the NVMe drive (for example at /mnt/nvme), install Docker, and start Frigate with the compose file. Give each camera a fixed address on your router and enable RTSP in its settings; you will need each camera's own user name and password, which belong in the compose environment (or a secrets file), never in the config file you share. Use the camera's lower-resolution sub stream for detection at 5 frames per second, which keeps the load light, and record from the same stream or a higher one if you have disk space. Motion masks hide the clock overlay and moving trees so they do not trigger clips. Retention in days stops the drive filling. The Orange Pi's chip can also run hardware object detection with Frigate's Rockchip support, which is a good next step once basic recording works. Privacy and law: put visible signs, point cameras only at your own property, avoid neighbours' windows and public spaces, and follow local rules on recording. Keep the web page on your home network or behind a VPN, change default camera passwords, and keep the system updated.

# ===== File 1: docker-compose.yml =====
services:
  frigate:
    image: ghcr.io/blakeblackshear/frigate:stable
    container_name: frigate
    restart: unless-stopped
    shm_size: "256mb"
    ports:
      - "5000:5000"            # web page, keep it on your home network only
    volumes:
      - ./config:/config
      - /mnt/nvme/frigate:/media/frigate     # clips go on the SSD
    environment:
      FRIGATE_RTSP_USER: "camera_user"
      FRIGATE_RTSP_PASSWORD: "CHANGE_ME"     # use your own camera password

# ===== File 2: config/config.yml, one camera shown, copy the block for each camera =====
mqtt:
  enabled: false
detectors:
  cpu1:
    type: cpu
record:
  enabled: true
  retain:
    days: 3
    mode: motion
cameras:
  front_door:
    ffmpeg:
      inputs:
        - path: rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.1.50:554/stream2
          roles:
            - detect
            - record
    detect:
      width: 1280
      height: 720
      fps: 5
    motion:
      mask:
        - 0.0,0.0,0.3,0.0,0.3,0.1,0.0,0.1     # example: ignore the timestamp area

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Open http://orange-pi:5000Frigate interface loads
Add one cameraLive picture shows
Walk in front of the cameraMotion event and a saved clip
Wait a dayOld clips deleted at the retention limit
Check CPU loadNot saturated

If it does not work

No picture

Check the RTSP address and the user and password.

High CPU

Lower the detect size and frame rate, use the sub stream.

Clips missing

Check the NVMe is mounted and the folder path.

Many false events

Add masks and lower the number of detected types.

Web page unreachable

Check the port mapping and the firewall.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the camera recorder on Orange Pi 5?

Orange Pi 5, NVMe SSD 256 GB (M.2 2230/2242) and Ethernet cable Cat6 (3 m).

How long does the camera recorder on Orange Pi 5 take to build?

About 180 minutes for a intermediate maker, in 8 steps.

How do I know the camera recorder on Orange Pi 5 works?

Open http://orange-pi:5000: Frigate interface loads. Add one camera: Live picture shows. Walk in front of the camera: Motion event and a saved clip.

No picture: what should I check?

Check the RTSP address and the user and password.

High CPU: what should I check?

Lower the detect size and frame rate, use the sub stream.

Clips missing: what should I check?

Check the NVMe is mounted and the folder path.

Many false events: what should I check?

Add masks and lower the number of detected types.