blakeblackshear / frigate

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

Camera feed showing green #1650

Closed Gnaj closed 3 years ago

Gnaj commented 3 years ago

Describe the bug getting thes errors only in one camera

ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures ffmpeg process is not running. exiting capture thread...

Version of frigate Current version: 1.13

Config file Include your full config file wrapped in triple back ticks.

mqtt:
  host: 192.168.100.142
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: mqtt-user
  password: 
  stats_interval: 60

cameras:
#  front_door:
#    ffmpeg:
#      inputs:
#        - path: rtsp://{FRIGATE_PASSWORD}@192.168.100.149:554/stream1
#          roles:
#            - detect
#            - rtmp
#    width: 1920
#    height: 1080
#    fps: 5

  Reja:
    ffmpeg:
      global_args: -hide_banner -loglevel warning -loglevel error
      inputs:
        - path: rtsp://{FRIGATE_PASSWORD}@192.168.100.36:554/live/ch00_0
          roles:
            - detect
            - rtmp
    width: 1920
    height: 1080
    fps: 5

objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
    - person
  # Optional: filters to reduce false positives for specific object types
  filters:
    person:
      # Optional: minimum width*height of the bounding box for the detected object (default: 0)
      min_area: 5000
      # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
      max_area: 100000
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.5
      # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
      threshold: 0.7

detectors:
  cpu1:
    type: cpu
  cpu2:
    type: cpu

logger:
  default: debug

Frigate container logs

 * Starting nginx nginx
   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
peewee_migrate                 INFO    : Starting migrations
peewee                         DEBUG   : ('CREATE TABLE IF NOT EXISTS "migratehistory" ("id" INTEGER NOT NULL PRIMARY KEY, "name" VARCHAR(255) NOT NULL, "migrated_at" DATETIME NOT NULL)', [])
peewee                         DEBUG   : ('SELECT "t1"."id", "t1"."name", "t1"."migrated_at" FROM "migratehistory" AS "t1" ORDER BY "t1"."id"', [])
There is nothing to migrate
peewee_migrate                 INFO    : There is nothing to migrate
frigate.mqtt                   INFO    : MQTT connected
detector.cpu1                  INFO    : Starting detection process: 45
detector.cpu2                  INFO    : Starting detection process: 47
frigate.app                    INFO    : Camera processor started for Reja: 50
frigate.app                    INFO    : Capture process started for Reja: 51
frigate.video                  INFO    : Reja: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Reja: ffmpeg process is not running. exiting capture thread...
ffmpeg.Reja.detect             ERROR   : rtsp://{FRIGATE_PASSWORD}@192.168.100.36:554/live/ch00_0: Invalid data found when processing input

Frigate stats : Cant find this

Output from frigate's /api/stats endpoint

FFprobe from your camera : Dont know where to input that

Run the following command and paste output below

ffprobe <stream_url>

Screenshots Screenshot_9

Computer Hardware

Camera Info:

Additional context

This camera does not work, the commented camera does. the other camera is a tp link tapo c200

blakeblackshear commented 3 years ago

It is saying invalid data for that path. Can you try a password without special characters?

Gnaj commented 3 years ago

Well the password does not have any specialcharacters it is just alpha numeric characters, the {FRIGATE_PASSWORD} i put it before posting i'm actually using the same password as the working camera

edit: i added the codec info from vlc i dont know if it helps Working camera workingcamera

Non Working camera nonworkking

sinamics commented 3 years ago

@Gnaj , just for information, you have exposed your username and password in the initial post. You might want to remove it.

Gnaj commented 3 years ago

@Gnaj , just for information, you have exposed your username and password in the initial post. You might want to remove it.

hehe! good thing it is my default testing data haha i apreciate it thank you !

stale[bot] commented 3 years ago

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.