question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: How to make sure that the hardware acceleration is turned on successfully?

See original GitHub issue

Describe the problem you are having

I would like to ask how to make sure that the hardware acceleration is turned on successfully? I didn’t find any information about hardware acceleration in the logs

100%-120% CPU usage when using main stream 30%-50% CPU usage when using sub stream

Whether I use the main stream or the sub stream, the CPU usage does not change after adding hardware acceleration parameters

Version

0.10.1

Frigate config file

mqtt:
  host: 192.168.1.135
  port: 1883
  user: mqtt
  password: mqtt
  client_id: frigate

detectors:
  coral_pci:
    type: edgetpu
    device: pci

objects:
  filters:
    person:
      min_score: 0.7

ffmpeg:
  hwaccel_args:
    - -hwaccel
    - qsv
    - -qsv_device
    - /dev/dri/renderD128

cameras:
  camera_1:
    record:
      enabled: true
      events:
        required_zones:
          - door
    snapshots:
      required_zones:
        - door
    zones:
      door:
        coordinates: 1246,715,1545,733,1827,691,2115,726,2168,588,2378,0,2560,0,2560,1440,1183,1440
        objects:
          - person
      ruhu:
        coordinates: 1753,0,1665,562,2038,544,2183,0
        objects:
          - person
    ffmpeg:
      inputs:
        - path: rtsp://admin:xxxx@192.168.1.164/h264/ch1/sub/av_stream
          roles:
            - detect
            - rtmp
    rtmp:
      enabled: False

Relevant log output

[2022-03-24 15:08:29] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
Starting migrations
[2022-03-24 15:08:29] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2022-03-24 15:08:29] peewee_migrate                 INFO    : There is nothing to migrate
[2022-03-24 15:08:29] frigate.app                    INFO    : Output process started: 219
[2022-03-24 15:08:29] ws4py                          INFO    : Using epoll
[2022-03-24 15:08:29] frigate.app                    INFO    : Camera processor started for camera_1: 229
[2022-03-24 15:08:29] frigate.app                    INFO    : Capture process started for camera_1: 230
[2022-03-24 15:08:29] ws4py                          INFO    : Using epoll
[2022-03-24 15:08:29] detector.coral_pci             INFO    : Starting detection process: 218
[2022-03-24 15:08:29] frigate.edgetpu                INFO    : Attempting to load TPU as pci
[2022-03-24 15:08:29] frigate.edgetpu                INFO    : TPU found

FFprobe output from your camera

root@48daf90e9e47:/opt/frigate# ffprobe rtsp://admin:xxxx@192.168.1.164/h264/ch1/sub/av_stream
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmfx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, rtsp, from 'rtsp://admin:xxxx@192.168.1.164/h264/ch1/sub/av_stream':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264, yuvj420p(pc, progressive), 640x480 [SAR 1:1 DAR 4:3], 25.08 tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: aac, 16000 Hz, mono, fltp

Frigate stats

No response

Operating system

Proxmox

Install method

Docker Compose

Coral version

M.2

Network connection

Wired

Camera make and model

hikvision

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NickM-27commented, Mar 28, 2022

@github410117 Sure, also @blakeblackshear likely has more knowledge to help in this regard and may have some advice past my troubleshooting.

0reactions
stale[bot]commented, Apr 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable Hardware-Accelerated GPU Scheduling on ...
To turn on hardware scheduling on Windows 11, use these steps: Open Settings on Windows 11. ... Under the “Related settings” section, click...
Read more >
GPU hardware acceleration - Browsers - Microsoft Learn
Enable or disable hardware acceleration · Select Start, and then select Internet Explorer. · Select the Tools icon in the upper-right corner, and ......
Read more >
Hardware acceleration | Android Developers
Hardware acceleration is enabled by default if your Target API level is >=14, but can also be explicitly enabled. If your application uses...
Read more >
How do I enable hardware acceleration on my browser?
Click on the "Safari" then "Settings" >. Click "Advanced" on the top right of the Settings window and ensure "Use hardware acceleration" is...
Read more >
Confirm correctly working of hardware acceleration in Chrome ...
YouTube uses VP9 format on Chrome and hardware accelerated decoding for VP9 is not supported on older chips. If your GPU ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found