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, Unable to read frames from ffmpeg process.

See original GitHub issue

Describe the problem you are having

Hi,

Feels like I’ve been trying everything, but hopefully I missed something.

Enabling hwaccel gives green screen. Video feed always works through VLC.

No matter if running addon as full access with no protection mode, or as normal version. Even tried increasing video memory even though system is RPi 4B 64 bit. Power is not reported to be an issue.

Version

0.10.1-83481AF

Frigate config file

mqtt:
  host: 192.168.1.4
  user: mqttuser
  password: x

cameras:
  cam1garage:
    ffmpeg:
      inputs:
        - path: rtsp://user:x@192.168.1.2:554/stream2
          roles: 
            - detect
            - rtmp
        - path: rtsp://user:x@192.168.1.2:554/stream1
          roles:
            - record
    objects:
      track:
        - person
        - dog  
  cam2:
    ffmpeg:
      hwaccel_args:
          - -c:v
          - h264_v4l2m2m
      inputs:
        - path: rtsp://user:x@192.168.1.8:554/cam/realmonitor?channel=1&subtype=0
          roles: 
            - detect
            - rtmp
        - path: rtsp://user:x@192.168.1.8:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - record
    objects:
      track:
        - person

  cam3:
    ffmpeg:
      inputs:
        - path: rtsp://user:x@192.168.1.10:554/cam/realmonitor?channel=1&subtype=0
          roles: 
            - detect
            - rtmp
        - path: rtsp://user:x@192.168.1.10:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - record
    objects:
      track:
        - person

detectors:
  coral:
    type: edgetpu
    device: usb

docker-compose file or Docker CLI command

Running as addon in native HassOS.

Relevant log output

Starting migrations
[2022-08-31 21:18:46] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2022-08-31 21:18:46] peewee_migrate                 INFO    : There is nothing to migrate
[2022-08-31 21:18:46] frigate.app                    INFO    : Output process started: 218
[2022-08-31 21:18:46] detector.coral                 INFO    : Starting detection process: 217
[2022-08-31 21:18:46] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2022-08-31 21:18:46] frigate.app                    INFO    : Camera processor started for cam1garage: 221
[2022-08-31 21:18:46] frigate.mqtt                   INFO    : Turning on recordings for cam1garage via mqtt
[2022-08-31 21:18:46] frigate.app                    INFO    : Camera processor started for cam2: 224
[2022-08-31 21:18:46] ws4py                          INFO    : Using epoll
[2022-08-31 21:18:46] frigate.mqtt                   INFO    : Turning on snapshots for cam1garage via mqtt
[2022-08-31 21:18:46] frigate.app                    INFO    : Camera processor started for cam3: 226
[2022-08-31 21:18:46] frigate.app                    INFO    : Capture process started for cam1garage: 227
[2022-08-31 21:18:46] frigate.mqtt                   INFO    : Turning on recordings for cam2 via mqtt
[2022-08-31 21:18:46] frigate.app                    INFO    : Capture process started for cam2: 229
[2022-08-31 21:18:46] frigate.app                    INFO    : Capture process started for cam3: 234
[2022-08-31 21:18:46] frigate.mqtt                   INFO    : Turning on snapshots for cam2 via mqtt
[2022-08-31 21:18:46] frigate.mqtt                   INFO    : Turning on recordings for cam3 via mqtt
[2022-08-31 21:18:46] frigate.mqtt                   INFO    : Turning on snapshots for cam3 via mqtt
[2022-08-31 21:18:46] ws4py                          INFO    : Using epoll
[2022-08-31 21:18:49] frigate.edgetpu                INFO    : TPU found
[2022-08-31 21:18:51] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46908]
[2022-08-31 21:18:53] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:48434]
[2022-08-31 21:18:55] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:48434]
[2022-08-31 21:19:01] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:48436]
[2022-08-31 21:19:02] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:48436]
[2022-08-31 21:19:06] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:19:06] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:19:07] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46908]
[2022-08-31 21:19:36] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:19:36] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:19:36] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:19:36] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:19:46] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:19:46] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:20:06] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:20:06] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:20:36] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:20:36] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:20:36] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:20:36] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:20:36] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:20:46] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:20:46] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:21:06] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:21:06] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:21:36] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:21:37] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:21:47] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:21:47] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:22:07] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:22:07] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:22:37] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:22:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:22:37] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:22:47] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:22:47] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:23:07] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:23:07] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:23:37] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:23:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:23:37] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:23:47] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:23:47] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:24:07] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:24:07] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:24:08] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46910]
[2022-08-31 21:24:37] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:24:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:24:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:24:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:24:37] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:24:47] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:24:47] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:25:07] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:25:07] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:25:37] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:25:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:25:37] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:25:47] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:25:47] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:25:56] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46910]
[2022-08-31 21:26:07] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:26:07] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...
[2022-08-31 21:26:37] watchdog.cam2                  INFO    : FFmpeg didnt exit. Force killing...
[2022-08-31 21:26:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:26:37] frigate.video                  ERROR   : cam2: Unable to read frames from ffmpeg process.
[2022-08-31 21:26:37] frigate.video                  ERROR   : cam2: ffmpeg process is not running. exiting capture thread...
[2022-08-31 21:26:47] watchdog.cam2                  ERROR   : Ffmpeg process crashed unexpectedly for cam2.
[2022-08-31 21:26:47] watchdog.cam2                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-08-31 21:27:07] watchdog.cam2                  INFO    : No frames received from cam2 in 20 seconds. Exiting ffmpeg...
[2022-08-31 21:27:07] watchdog.cam2                  INFO    : Waiting for ffmpeg to exit gracefully...

FFprobe output from your camera

How?

Operating system

HassOS

Install method

HassOS Addon

Network connection

Mixed

Camera make and model

Dahua IPC-HDW2831TMP, Dahua IPC-HFW2831SP, TAPO C200

Any other information that may be helpful

No response

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
NickM-27commented, Aug 31, 2022

You have detect on the main stream which is guaranteed to not work since the RPi decoder only supports 1080p

0reactions
NickM-27commented, Aug 31, 2022

Glad it is working, will close this issue. Feel free to create a new one if something else comes up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HW Accel Support]: Green screen after upgrading to 11.0 #3983
[HW Accel Support]: Green screen after upgrading to 11.0 #3983 ... Unable to read frames from FFmpeg process. Ffmpeg process crashed ...
Read more >
Frequently Asked Questions - Frigate Docs
A solid green image means that frigate has not received any frames from ffmpeg. Check the logs to see why ffmpeg is exiting...
Read more >
FFmpeg Filters Documentation
Set which channels to filter, by default all channels in audio stream are filtered. 8.14.1 Commands. This filter supports the all above options...
Read more >
Local realtime person detection for RTSP cameras
Please create a github issue if you want further support. ... ERROR : CAM_technicka: Unable to read frames from ffmpeg process.
Read more >
Frigate green screen with Reolink cameras over RTMP or HTTP
The problem seems to be related to the SUB stream. As soon as I switched to the EXT stream, and removed the extra...
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