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.

Live view broken due to camera name similarities

See original GitHub issue

Describe the bug Since 0.8 I’m using two cameras with similar names: “garten” and “vorgarten”. In 0.9 beta as well as RC1 live view of ‘vorgarten’ is broken, the picture seems to mix with ‘garten’. All other cameras (including garten) play out well. The same camera plays out well in Birdsview, recordings, events etc… - So it seems to be a display issue, not so much a capture from camera issue.

Sample Picture

Version of frigate 0.9.0-4efc584

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

# Optional: Logging configuration
##########
logger:
##########
  default: info
  logs:
    frigate.mqtt: error

##########
mqtt:
##########
  host: mqtt.mydomain.de
  topic_prefix: frigate
  client_id: frigate
  user: admin
  password: password

##########
detectors:
##########
  coral:
    type: edgetpu
    device: usb

##########
objects:
##########
  track:
    - person
    - cat
  filters:
    cat:
      threshold: 0.5
    person:
      min_score: 0.5
      threshold: 0.75


##########
birdseye:
##########
  enabled: True
  width: 1280
  height: 720
  quality: 8
  mode: continuous
  #mode: objects

##########
database:
##########
  path: /media/frigate/database/frigate.db

cameras:
  ############################  
  garten:
  ############################
    clips:
      enabled: True
    ffmpeg:
      inputs:
        - path: rtsp://frigate:password@192.168.176.57/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
            - detect
    detect:
      width: 3840
      height: 2160
      fps: 5
    record:
      enabled: true
      retain_days: 1
      events:
        enabled: true
        pre_capture: 5
        post_capture: 5
        objects:
          - person
        required_zones: []
        retain:
          default: 10
          objects:
            person: 15
    objects:
      track:
        - person
        - cat


    zones:
      relevant:
        coordinates: 2249,2160,3840,2160,3840,0,2554,0,2494,1563,2113,1554,1337,1651


  ############################
  vorgarten:
  ############################
    clips:
      enabled: True
    record:
      enabled: True
      retain_days: 1
      events:
        enabled: true
        pre_capture: 5
        post_capture: 5
        objects:
          - person
        required_zones: []
        retain:
          default: 10
          objects:
            person: 15

    objects:
      track:
        - person
        - cat
    ffmpeg:
      inputs:
        - path: rtmp://vorgarten.mydomain.de/bcs/channel0_main.bcs?channel=0&stream=0&user=frigate&password=password
          input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1
          roles:
            - record
            - rtmp
            - detect
    detect:
      width: 2560
      height: 1920
      fps: 5

Frigate container logs

#  podman logs -f home-assistant-frigate
[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.
[2021-08-28 09:27:52] frigate.app                    WARNING : Camera garten has rtmp enabled, but rtmp is not assigned to an input.
Starting migrations
[2021-08-28 09:27:52] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-08-28 09:27:52] peewee_migrate                 INFO    : There is nothing to migrate
[2021-08-28 09:27:52] frigate.app                    INFO    : Output process started: 214
[2021-08-28 09:27:52] frigate.app                    INFO    : Camera processor started for garten: 217
[2021-08-28 09:27:52] frigate.app                    INFO    : Camera processor started for keller: 221
[2021-08-28 09:27:52] ws4py                          INFO    : Using epoll
[2021-08-28 09:27:52] frigate.app                    INFO    : Camera processor started for eingang: 226
[2021-08-28 09:27:52] frigate.app                    INFO    : Camera processor started for vorgarten: 232
[2021-08-28 09:27:52] frigate.app                    INFO    : Capture process started for garten: 235
[2021-08-28 09:27:52] frigate.app                    INFO    : Capture process started for keller: 240
[2021-08-28 09:27:52] frigate.app                    INFO    : Capture process started for eingang: 244
[2021-08-28 09:27:52] frigate.app                    INFO    : Capture process started for vorgarten: 251
[2021-08-28 09:27:52] ws4py                          INFO    : Using epoll
[2021-08-28 09:27:52] detector.coral                 INFO    : Starting detection process: 213
[2021-08-28 09:27:52] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-08-28 09:27:55] frigate.edgetpu                INFO    : TPU found
[2021-08-28 09:30:53] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:58776]
[2021-08-28 09:30:56] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:52972]

Frigate stats

{"detection_fps":0.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":54.03,"pid":213}},"eingang":{"camera_fps":5.0,"capture_pid":244,"detection_fps":0.0,"pid":226,"process_fps":5.0,"skipped_fps":0.0},"garten":{"camera_fps":5.0,"capture_pid":235,"detection_fps":0.0,"pid":217,"process_fps":5.0,"skipped_fps":0.0},"keller":{"camera_fps":5.0,"capture_pid":240,"detection_fps":0.0,"pid":221,"process_fps":5.0,"skipped_fps":0.0},"service":{"storage":{"/dev/shm":{"free":2105.0,"mount_type":"tmpfs","total":2147.5,"used":42.5},"/media/frigate/clips":{"free":254325.6,"mount_type":"nfs","total":589632.2,"used":305283.5},"/media/frigate/recordings":{"free":254325.7,"mount_type":"nfs","total":589632.2,"used":305283.4},"/tmp/cache":{"free":12395.0,"mount_type":"tmpfs","total":12415.2,"used":20.2}},"uptime":222,"version":"0.9.0-4efc584"},"vorgarten":{"camera_fps":5.0,"capture_pid":251,"detection_fps":0.0,"pid":232,"process_fps":5.0,"skipped_fps":0.0}}

FFprobe from your camera

Screenshots Sample Picture

Computer Hardware

  • OS: Fedora 34 / Podman
  • Install method: docker-compose
  • Virtualization: N/A
  • Coral Version: USB
  • Network Setup: Wired

Camera Info:

  • Manufacturer: Reolink
  • Model: 5MP
  • Resolution: 5MP
  • FPS: 5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Aug 28, 2021

Found it. This will be fixed in the next RC

1reaction
blakeblackshearcommented, Aug 28, 2021

I will see if I can reproduce this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Live view not working. Everything else does - Ring App
Live view now just spins and says “connecting”. Will record what I've “watched” but doesn't show the live picture. Great for a security...
Read more >
How to Fix Your Webcam If it is Not Working in Windows 10?
So if the webcam was disabled in BIOS or UEFI, you should enable it by opening the corresponding settings. Go to view.
Read more >
6 Best Indoor Security Cameras (2022) - WIRED
We tested and rounded up our favorite security cameras. Cameras can offer peace of mind, but choose carefully when you're inviting one into ......
Read more >
Arenti Products Customer Troubleshooting
If it is an SD card recording, and the SD card has been lost/broken, the recording in the SD card cannot be viewed,...
Read more >
AlexxIT/WebRTC - GitHub
Home Assistant custom component for viewing IP cameras RTSP stream in real time using WebRTC and MSE technology - GitHub - AlexxIT/WebRTC: Home...
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