blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
17.99k stars 1.64k forks source link

[Camera Support]: #7578

Closed FS1961 closed 1 year ago

FS1961 commented 1 year ago

Describe the problem you are having

Hard to describe but pixelization of the bottom 1/4 to 1/3 of the screen only on this camera. This occurs via LAN and WiFi. The camera UI does not do this so.

Screenshot 2023-08-25 at 6 24 24 PM

Version

0.12.1-367D724

Frigate config file

Garden: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://frigate:pwrd@192.168.178.xx:554/h264Preview_01_main 
          roles:
            - detect
            - record
    detect:
      width: 2560 # <---- update for your camera's resolution
      height: 1440 # <---- update for your camera's resolution
      fps: 10

Relevant log output

2023-08-25 18:35:41.142762316  [INFO] Starting Frigate...
2023-08-25 18:35:42.189685882  [2023-08-25 18:35:42] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-25 18:35:42.239794903  [2023-08-25 18:35:42] peewee_migrate                 INFO    : Starting migrations
2023-08-25 18:35:42.244532720  [2023-08-25 18:35:42] peewee_migrate                 INFO    : There is nothing to migrate
2023-08-25 18:35:42.264904873  [2023-08-25 18:35:42] detector.coral                 INFO    : Starting detection process: 290
2023-08-25 18:35:44.909092103  [2023-08-25 18:35:42] frigate.app                    INFO    : Output process started: 292
2023-08-25 18:35:44.909097442  [2023-08-25 18:35:42] frigate.comms.dispatcher       INFO    : Turning off recordings for Dining
2023-08-25 18:35:44.909104508  [2023-08-25 18:35:42] frigate.app                    INFO    : Camera processor started for Dining: 299
2023-08-25 18:35:44.909106575  [2023-08-25 18:35:42] frigate.app                    INFO    : Camera processor started for Garage: 300
2023-08-25 18:35:44.909122476  [2023-08-25 18:35:42] frigate.app                    INFO    : Camera processor started for Front-door: 302
2023-08-25 18:35:44.909124745  [2023-08-25 18:35:42] frigate.app                    INFO    : Camera processor started for Drive-way: 303
2023-08-25 18:35:44.909126536  [2023-08-25 18:35:42] frigate.app                    INFO    : Camera processor started for Garten-House: 304
2023-08-25 18:35:44.909143752  [2023-08-25 18:35:42] frigate.comms.dispatcher       INFO    : Turning off recordings for Front-door
2023-08-25 18:35:44.909145575  [2023-08-25 18:35:42] frigate.app                    INFO    : Camera processor started for Patio: 306
2023-08-25 18:35:44.909146962  [2023-08-25 18:35:42] frigate.comms.dispatcher       INFO    : Turning off recordings for Garage
2023-08-25 18:35:44.909155422  [2023-08-25 18:35:42] frigate.comms.dispatcher       INFO    : Turning on snapshots for Drive-way
2023-08-25 18:35:44.909156976  [2023-08-25 18:35:42] frigate.app                    INFO    : Camera processor started for Garden: 307
2023-08-25 18:35:44.909158548  [2023-08-25 18:35:42] frigate.app                    INFO    : Capture process started for Dining: 309
2023-08-25 18:35:44.909159911  [2023-08-25 18:35:42] frigate.comms.dispatcher       INFO    : Turning off recordings for Patio
2023-08-25 18:35:44.909169124  [2023-08-25 18:35:42] frigate.app                    INFO    : Capture process started for Garage: 313
2023-08-25 18:35:44.909170713  [2023-08-25 18:35:42] frigate.app                    INFO    : Capture process started for Front-door: 316
2023-08-25 18:35:44.909172306  [2023-08-25 18:35:42] frigate.app                    INFO    : Capture process started for Drive-way: 319
2023-08-25 18:35:44.909173706  [2023-08-25 18:35:42] frigate.app                    INFO    : Capture process started for Garten-House: 327
2023-08-25 18:35:44.909175728  [2023-08-25 18:35:42] frigate.app                    INFO    : Capture process started for Patio: 329
2023-08-25 18:35:44.909177158  [2023-08-25 18:35:42] frigate.app                    INFO    : Capture process started for Garden: 334
2023-08-25 18:35:44.912543949  [2023-08-25 18:35:42] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-08-25 18:35:44.912703470  [2023-08-25 18:35:44] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-08-25 18:37:22.348634699  [2023-08-25 18:37:22] frigate.video                  ERROR   : Garden: Unable to read frames from ffmpeg process.
2023-08-25 18:37:22.348643472  [2023-08-25 18:37:22] frigate.video                  ERROR   : Garden: ffmpeg process is not running. exiting capture thread...
2023-08-25 18:37:22.414397956  [2023-08-25 18:37:22] watchdog.Garden                ERROR   : Ffmpeg process crashed unexpectedly for Garden.
2023-08-25 18:37:22.414683239  [2023-08-25 18:37:22] watchdog.Garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-25 18:37:22.415384534  [2023-08-25 18:37:22] ffmpeg.Garden.detect           ERROR   : [segment @ 0x557bfa679a40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-08-25 18:37:22.415390795  [2023-08-25 18:37:22] ffmpeg.Garden.detect           ERROR   : [h264 @ 0x557bfa7e7040] Increasing reorder buffer to 1
2023-08-25 18:37:22.533395860  [2023-08-25 18:37:22] frigate.video                  ERROR   : Garden: Unable to read frames from ffmpeg process.
2023-08-25 18:37:22.533518484  [2023-08-25 18:37:22] frigate.video                  ERROR   : Garden: ffmpeg process is not running. exiting capture thread...
2023-08-25 18:37:32.428475521  [2023-08-25 18:37:32] watchdog.Garden                ERROR   : Ffmpeg process crashed unexpectedly for Garden.
2023-08-25 18:37:32.428922096  [2023-08-25 18:37:32] watchdog.Garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-25 18:37:32.429241185  [2023-08-25 18:37:32] ffmpeg.Garden.detect           ERROR   : [tcp @ 0x5560e7f1e680] Connection to tcp://192.168.178.52:554?timeout=5000000 failed: Connection refused
2023-08-25 18:37:32.429613740  [2023-08-25 18:37:32] ffmpeg.Garden.detect           ERROR   : rtsp://*:*@192.168.178.52:554/h264Preview_01_main: Connection refused
2023-08-25 18:37:32.548523535  [2023-08-25 18:37:32] frigate.video                  ERROR   : Garden: Unable to read frames from ffmpeg process.
2023-08-25 18:37:32.549477076  [2023-08-25 18:37:32] frigate.video                  ERROR   : Garden: ffmpeg process is not running. exiting capture thread...
2023-08-25 18:37:42.473684890  [2023-08-25 18:37:42] watchdog.Garden                ERROR   : Ffmpeg process crashed unexpectedly for Garden.
2023-08-25 18:37:42.473702867  [2023-08-25 18:37:42] watchdog.Garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-25 18:37:42.473709946  [2023-08-25 18:37:42] ffmpeg.Garden.detect           ERROR   : [tcp @ 0x55d856423680] Connection to tcp://192.168.178.52:554?timeout=5000000 failed: Connection refused
2023-08-25 18:37:42.473716056  [2023-08-25 18:37:42] ffmpeg.Garden.detect           ERROR   : rtsp://*:*@192.168.178.52:554/h264Preview_01_main: Connection refused
2023-08-25 18:37:47.524538995  [2023-08-25 18:37:47] frigate.video                  ERROR   : Garden: Unable to read frames from ffmpeg process.
2023-08-25 18:37:47.525065721  [2023-08-25 18:37:47] frigate.video                  ERROR   : Garden: ffmpeg process is not running. exiting capture thread...
2023-08-25 18:37:52.515587243  [2023-08-25 18:37:52] watchdog.Garden                ERROR   : Ffmpeg process crashed unexpectedly for Garden.
2023-08-25 18:37:52.515754729  [2023-08-25 18:37:52] watchdog.Garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-25 18:37:52.515936359  [2023-08-25 18:37:52] ffmpeg.Garden.detect           ERROR   : [tcp @ 0x56151d581680] Connection to tcp://192.168.178.52:554?timeout=5000000 failed: Connection timed out
2023-08-25 18:37:52.516045887  [2023-08-25 18:37:52] ffmpeg.Garden.detect           ERROR   : rtsp://*:*@192.168.178.52:554/h264Preview_01_main: Connection timed out
2023-08-25 18:37:57.548040385  [2023-08-25 18:37:57] frigate.video                  ERROR   : Garden: Unable to read frames from ffmpeg process.
2023-08-25 18:37:57.548634150  [2023-08-25 18:37:57] frigate.video                  ERROR   : Garden: ffmpeg process is not running. exiting capture thread...
2023-08-25 18:38:02.538530397  [2023-08-25 18:38:02] watchdog.Garden                ERROR   : Ffmpeg process crashed unexpectedly for Garden.
2023-08-25 18:38:02.539149273  [2023-08-25 18:38:02] watchdog.Garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-25 18:38:02.540318524  [2023-08-25 18:38:02] ffmpeg.Garden.detect           ERROR   : [tcp @ 0x56473b469680] Connection to tcp://192.168.178.52:554?timeout=5000000 failed: Connection timed out
2023-08-25 18:38:02.540330013  [2023-08-25 18:38:02] ffmpeg.Garden.detect           ERROR   : rtsp://*:*@192.168.178.52:554/h264Preview_01_main: Connection timed out
2023-08-25 18:38:05.620923965  [2023-08-25 18:38:05] frigate.video                  ERROR   : Garden: Unable to read frames from ffmpeg process.
2023-08-25 18:38:05.621035310  [2023-08-25 18:38:05] frigate.video                  ERROR   : Garden: ffmpeg process is not running. exiting capture thread...
2023-08-25 18:38:12.562011305  [2023-08-25 18:38:12] watchdog.Garden                ERROR   : Ffmpeg process crashed unexpectedly for Garden.
2023-08-25 18:38:12.562027462  [2023-08-25 18:38:12] watchdog.Garden                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-25 18:38:12.562033915  [2023-08-25 18:38:12] ffmpeg.Garden.detect           ERROR   : [tcp @ 0x55dfbf3cd680] Connection to tcp://192.168.178.52:554?timeout=5000000 failed: No route to host
2023-08-25 18:38:12.562039024  [2023-08-25 18:38:12] ffmpeg.Garden.detect           ERROR   : rtsp://*:*@192.168.178.52:554/h264Preview_01_main: No route to host

FFprobe output from your camera

[{"return_code":0,"stderr":"","stdout":{"programs":[],"streams":[{"avg_frame_rate":"0/0","codec_long_name":"H.264/AVC/MPEG-4AVC/MPEG-4part10","height":1440,"width":2560},{"avg_frame_rate":"0/0","codec_long_name":"AAC(AdvancedAudioCoding)"}]}}]

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wireless

Camera make and model

Reolink E1 Outdoor

Any other information that may be helpful

I've tried different frame rates, resolutions, FPS, etc. nothing seems to change.

Also tried: detect: width: 2304 # <---- update for your camera's resolution height: 1296 # <---- update for your camera's resolution fps: 6

This is the lowest resolution the camera will do in "clarity mode"

NickM-27 commented 1 year ago

This is a common problem with reolink cameras, especially over rtsp. See the recommended reolink config https://docs.frigate.video/configuration/camera_specific#reolink-cameras

FS1961 commented 1 year ago

I read this guide and made the changes to "fluency" and "inter frame rate." I will monitor and advise if that fixes the problem.

NickM-27 commented 1 year ago

To be clear the guide is referring to using http-flv instead of rtsp

FS1961 commented 1 year ago

Hi Nicolas,I made those two changes and picture pixelization has cleared up.  Garden: # <------ Name the camera ffmpeg: inputs:

This is how the config looks for this camera now. On Aug 27, 2023, at 1:55 PM, Nicolas Mowen @.***> wrote: To be clear the guide is referring to using http-flv instead of rtsp

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

NickM-27 commented 1 year ago

Glad to hear it, closing this issue then, feel free to create a new issue if something else comes up