Skip to content

GPU acceleration on raspberry pi4? #1069

@Coll147

Description

@Coll147

Hi, I've been researching for a while and can't find any documentation regarding using GPU acceleration with Viseron. Specifically, I was looking to use it on my Raspberry Pi 4 (4GB). I configured my cameras in Viseron with h264, but the image looks very slow, as if it's having trouble decoding the video; it's a 720p stream. So, I was looking for a way to confirm if GPU acceleration is working properly or how to configure it. Thanks.

I also share the Docker Compose that I am using (exported from CasaOS)

name: spectacular_erin
services:
  main_app:
    cpu_shares: 90
    command: []
    container_name: viseron
    deploy:
      resources:
        limits:
          memory: 3620M
    environment:
      - GST_VAAPI_ALL_DRIVERS=1
      - LIBVA_DRIVER_NAME=v4l2_request
    hostname: viseron
    image: roflcoopter/aarch64-viseron:latest
    labels:
      icon: https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-casaos/Apps/viseron/logo.png
    ports:
      - target: 8888
        published: "8888"
        protocol: tcp
    privileged: true
    restart: unless-stopped
    volumes:
      - type: bind
        source: /srv/dev-disk-by-uuid-826f8631-d490-461d-b74b-2d645b8e6b0d/recordings
        target: /segments
      - type: bind
        source: /DATA/AppData/viseron/snapshots
        target: /snapshots
      - type: bind
        source: /DATA/AppData/viseron/thumbnails
        target: /thumbnails
      - type: bind
        source: /DATA/AppData/viseron/config
        target: /config
      - type: bind
        source: /DATA/AppData/viseron/event_clips
        target: /event_clips
      - type: bind
        source: /etc/localtime
        target: /etc/localtime
      - type: bind
        source: /dev/video10
        target: /dev/video10
      - type: bind
        source: /dev/video11
        target: /dev/video11
      - type: bind
        source: /dev/video12
        target: /dev/video12
      - type: bind
        source: /dev/bus/usb
        target: /dev/bus/usb
      - type: bind
        source: /dev/vchiq
        target: "/dev/vchiq "
    devices: []
    cap_add: []
    network_mode: bridge
x-casaos:
  author: self
  category: self
  hostname: 192.168.1.11
  icon: https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-casaos/Apps/viseron/logo.png
  index: /
  is_uncontrolled: false
  port_map: "8888"
  scheme: http
  store_app_id: spectacular_erin
  title:
    custom: Viseron

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions