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.

[HW Accel Support]: Green screen only when using HW Acceleration

See original GitHub issue

Describe the problem you are having

Fully functioning Frigate until I try and use Hardware Acceleration on the raspberry pi 4. At this point I then get green screen on any camera that I try to use the HW Accel. Protection mode is disabled on Frigate (Full Access). I believe I have enabled GPU memory on the Pi to 512 in config.txt but this was the first time I had SSH into the root so not sure how to check it has dedicated this memory properly.

Version

0.11.1-2EADA21

Frigate config file

mqtt:
  host: core-mosquitto
  user: [User]
  password: [Pass]

detectors:
  coral:
    type: edgetpu
    device: usb

cameras:
  Kitchen_Cam:
    ffmpeg:
      inputs:
        - path: rtsp://[User]:[Pass]@192.168.0.55/live0
          roles:
            - detect
            - record
            - rtmp
      hwaccel_args: 
        - -c:v 
        - h264_v4l2m2m
  Entertainment_Room_Cam:
    ffmpeg:
      inputs:
        - path: rtsp://[User]:[Pass]@192.168.0.56/live0
          roles:
            - detect
            - record
            - rtmp
      hwaccel_args:
        - -c:v
        - h264_v4l2m2m
  Lounge_Cam:
    ffmpeg:
      inputs:
        - path: rtsp://[User]:[Pass]@192.168.0.77/live0
          roles:
            - detect
            - record
            - rtmp
      hwaccel_args: -c:v h264_v4l2m2m

objects:
  track:
    - person
    - dog
    #- cell phone

record:
  enabled: true

snapshots:
  enabled: true

rtmp:
  enabled: false

docker-compose file or Docker CLI command

N/A?

Relevant log output

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-10-18 15:38:29] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
[2022-10-18 15:38:29] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2022-10-18 15:38:29] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2022-10-18 15:38:29] peewee_migrate                 INFO    : There is nothing to migrate
[2022-10-18 15:38:29] detector.coral                 INFO    : Starting detection process: 216
[2022-10-18 15:38:29] frigate.app                    INFO    : Output process started: 217
[2022-10-18 15:38:29] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2022-10-18 15:38:29] frigate.app                    INFO    : Camera processor started for Kitchen_Cam: 220
[2022-10-18 15:38:29] ws4py                          INFO    : Using epoll
[2022-10-18 15:38:29] frigate.app                    INFO    : Camera processor started for Entertainment_Room_Cam: 224
[2022-10-18 15:38:29] frigate.app                    INFO    : Camera processor started for Lounge_Cam: 226
[2022-10-18 15:38:29] frigate.app                    INFO    : Capture process started for Kitchen_Cam: 227
[2022-10-18 15:38:29] frigate.app                    INFO    : Capture process started for Entertainment_Room_Cam: 230
[2022-10-18 15:38:29] frigate.app                    INFO    : Capture process started for Lounge_Cam: 231
[2022-10-18 15:38:32] frigate.edgetpu                INFO    : TPU found
[2022-10-18 15:38:32] ws4py                          INFO    : Using epoll
[2022-10-18 15:38:49] watchdog.Lounge_Cam            INFO    : No frames received from Lounge_Cam in 20 seconds. Exiting ffmpeg...
[2022-10-18 15:38:49] watchdog.Lounge_Cam            INFO    : Waiting for ffmpeg to exit gracefully...
[2022-10-18 15:38:49] watchdog.Entertainment_Room_Cam INFO    : No frames received from Entertainment_Room_Cam in 20 seconds. Exiting ffmpeg...
[2022-10-18 15:38:49] watchdog.Entertainment_Room_Cam INFO    : Waiting for ffmpeg to exit gracefully...
[2022-10-18 15:38:49] watchdog.Kitchen_Cam           INFO    : No frames received from Kitchen_Cam in 20 seconds. Exiting ffmpeg...
[2022-10-18 15:38:49] watchdog.Kitchen_Cam           INFO    : Waiting for ffmpeg to exit gracefully...
[2022-10-18 15:39:19] watchdog.Lounge_Cam            INFO    : FFmpeg didnt exit. Force killing...
[2022-10-18 15:39:19] watchdog.Entertainment_Room_Cam INFO    : FFmpeg didnt exit. Force killing...
[2022-10-18 15:39:19] frigate.video                  ERROR   : Lounge_Cam: Unable to read frames from ffmpeg process.
[2022-10-18 15:39:19] frigate.video                  ERROR   : Lounge_Cam: Unable to read frames from ffmpeg process.
[2022-10-18 15:39:19] frigate.video                  ERROR   : Lounge_Cam: ffmpeg process is not running. exiting capture thread...
[2022-10-18 15:39:19] frigate.video                  ERROR   : Entertainment_Room_Cam: Unable to read frames from ffmpeg process.
[2022-10-18 15:39:19] frigate.video                  ERROR   : Entertainment_Room_Cam: ffmpeg process is not running. exiting capture thread...
[2022-10-18 15:39:19] watchdog.Kitchen_Cam           INFO    : FFmpeg didnt exit. Force killing...
[2022-10-18 15:39:19] frigate.video                  ERROR   : Kitchen_Cam: Unable to read frames from ffmpeg process.
[2022-10-18 15:39:19] frigate.video                  ERROR   : Kitchen_Cam: ffmpeg process is not running. exiting capture thread...
[2022-10-18 15:39:22] frigate.record                 WARNING : Discarding a corrupt recording segment: Lounge_Cam-20221018153830.mp4
[2022-10-18 15:39:22] frigate.record                 WARNING : Discarding a corrupt recording segment: Lounge_Cam-20221018153830.mp4
[2022-10-18 15:39:23] frigate.record                 WARNING : Discarding a corrupt recording segment: Lounge_Cam-20221018153830.mp4

FFprobe output from your camera

Unsure??

Operating system

HassOS

Install method

HassOS Addon

Network connection

Mixed

Camera make and model

Eufy Indoor Cam Pan&Tilt

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

0reactions
NickM-27commented, Oct 23, 2022

closing this as duplicate

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hardware accelerated flashplayer video green screen | 349.12
When hardware acceleration in Adobe Flash Player is turned off, Flash video's are rendered normally, regardless of (monitor) configuration. The ...
Read more >
How to Fix Green Screen Problem When Playing Videos
Toggle off Use hardware acceleration when available. Restart Google Chrome. Open the website to view your videos. The green video issue ...
Read more >
Video shows green screen. How to fix this? | Firefox Support ...
Uncheck Use hardware acceleration when available. Close Firefox completely and then restart Firefox to see if the problem persists.
Read more >
How to Fix Green Screen Problem when Playing Videos?
Toggle off Use hardware acceleration when available. Restart Google Chrome. Open the website to view your videos. The green video issue should ...
Read more >
hardware acceleration is broken since 22.7.1 : r/Amd - Reddit
using AVC as (ok I had this with HEVC also) "video encoding type" for Instant Replay seems to cause green-screen catastrophic system crash....
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