frigate: Unable to View Live Stream with RC-1
Describe the bug
When clicking on a camera the live stream just shows a white or black box that then flashes
Version of frigate
Output from /api/version
Config file Include your full config file wrapped in triple back ticks.
logger:
default: debug
mqtt:
host: 192.168.7.42
port: 1883
topic_prefix: frigate
stats_interval: 60
database:
path: /media/frigate/database/frigate.db
ffmpeg:
# Optional: global ffmpeg args (default: shown below)
global_args: -hide_banner -loglevel warning
# Optional: global hwaccel args (default: shown below)
# Optional: global input args (default: shown below)
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
# Optional: global output args
output_args:
# Optional: output args for detect streams (default: shown below)
detect: -f rawvideo -pix_fmt yuv420p
# Optional: output args for record streams (default: shown below)
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for rtmp streams (default: shown below)
rtmp: -c copy -f flv
record:
# Optional: Enable recording (default: shown below)
enabled: True
# Optional: Number of days to retain (default: shown below)
retain_days: 0
# Optional: Event recording settings
events:
# Optional: Enable event recording retention settings (default: shown below)
enabled: False
# Optional: Maximum length of time to retain video during long events. (default: shown below)
# NOTE: If an object is being tracked for longer than this amount of time, the cache
# will begin to expire and the resulting clip will be the last x seconds of the event unless retain_days under record is > 0.
max_seconds: 300
# Optional: Number of seconds before the event to include in the event (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the event (default: shown below)
post_capture: 5
# Optional: Retention settings for event
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
cameras:
Driveway:
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -rw_timeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
inputs:
- path: rtmp://192.168.5.7:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=user&password=Password
roles:
- record
- path: rtmp://192.168.5.7:1935/bcs/channel0_sub.bcs?channel=0&stream=0&user=user&password=Password
roles:
- detect
- rtmp
detect:
width: 640
height: 480
fps: 5
live:
height: 480
quality: 8
zones:
FrontDriveway:
coordinates: 413,243,368,309,415,323,432,480,0,480,0,346,0,298,61,266,203,226
Street:
coordinates: 108,186,72,167,90,141,184,116,410,112,525,112,561,133,640,176,640,255,533,248,413,241,295,231,203,214
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
required_zones: [FrontDriveway]
objects:
track:
- person
- cat
- dog
- car
- bicycle
- motorcycle
OutsideFrontDoor:
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -rw_timeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
inputs:
- path: rtmp://192.168.5.12:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=user&password=Password
roles:
- record
- path: rtmp://192.168.5.12:1935/bcs/channel0_sub.bcs?channel=0&stream=0&user=user&password=Password
roles:
- detect
- rtmp
detect:
width: 640
height: 480
fps: 5
live:
height: 480
quality: 8
zones:
FrontDoor:
coordinates: 72,195,158,303,192,353,147,480,0,480,0,346,0,298,0,268,0,187
FrontSideWalk:
coordinates: 269,301,190,321,158,291,147,277,227,229,292,202,362,193,458,185,521,210,640,266,640,422,425,331,348,310
SideDriveway:
coordinates: 640,203,640,312,68,183,69,111
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
objects:
track:
- person
- cat
- dog
FrontDoorbell:
ffmpeg:
inputs:
- path: rtsp://user:password@192.168.7.17:554/mpeg/media.amp
roles:
- record
- detect
- rtmp
detect:
width: 1280
height: 720
fps: 5
live:
height: 480
quality: 8
motion:
mask:
- 251,396,1041,387,1031,279,259,276
zones:
FrontDoor:
coordinates: 561,563,606,511,537,498,492,486,463,478,486,458,564,445,620,437,685,432,766,422,918,382,1042,370,1044,503,1036,556,1075,720,485,720
SideDriveway:
coordinates: 608,509,436,542,379,548,0,582,0,453
filters:
person:
threshold: 0.7
car:
threshold: 0.7
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
objects:
track:
- person
LivingRoom1:
ffmpeg:
inputs:
- path: rtsp://admin:Password@192.168.71.109:554/11
roles:
- record
- path: rtsp://admin:Password@192.168.71.109:554/12
roles:
- detect
- rtmp
detect:
width: 640
height: 352
fps: 5
live:
height: 480
quality: 8
zones:
LivingRoom:
coordinates: 165,352,640,352,640,71,364,0,287,31,144,90
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
objects:
track:
- person
Office1:
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -rw_timeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
inputs:
- path: rtmp://192.168.5.6:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=user&password=Password
roles:
- record
- path: rtmp://192.168.5.6:1935/bcs/channel0_sub.bcs?channel=0&stream=0&user=user&password=Password
roles:
- detect
- rtmp
detect:
width: 640
height: 480
fps: 5
live:
height: 480
quality: 8
zones:
Office:
coordinates: 640,0,640,362,640,480,0,480,0,0
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
objects:
track:
- person
- dog
BackFence1:
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -rw_timeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
inputs:
- path: rtmp://192.168.5.10:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=user&password=Password
roles:
- record
- path: rtmp://192.168.5.10:1935/bcs/channel0_sub.bcs?channel=0&stream=0&user=user&password=Password
roles:
- detect
- rtmp
detect:
width: 640
height: 480
fps: 5
live:
height: 480
quality: 8
zones:
BackSideWalk:
coordinates: 417,85,410,177,348,328,268,480,55,480,61,397,193,323,252,219,371,106
motion:
mask:
- 0,83,127,57,263,34,384,92,0,389
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
objects:
track:
- person
- cat
- dog
- car
- bicycle
- motorcycle
DiningRoom:
ffmpeg:
inputs:
- path: rtsp://user:Password@192.168.5.5:88/Streaming/Channels/1
roles:
- record
- path: rtsp://user:Password@192.168.5.5:88/Streaming/Channels/2
roles:
- detect
- rtmp
detect:
width: 640
height: 480
fps: 5
live:
height: 480
quality: 8
motion:
mask:
- 427,0,428,36,334,37,344,83,151,109,136,0
zones:
DiningRoomZone:
coordinates: 578,236,640,480,369,480,216,480,0,480,0,128,109,76,226,145,483,143,483,231
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
objects:
track:
- person
- dog
ToyRoom1:
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -rw_timeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
inputs:
- path: rtmp://192.168.5.8:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=user&password=Password
roles:
- record
- path: rtmp://192.168.5.8:1935/bcs/channel0_sub.bcs?channel=0&stream=0&user=user&password=Password
roles:
- detect
- rtmp
detect:
width: 640
height: 480
fps: 5
live:
height: 480
quality: 8
zones:
ToyRoom:
coordinates: 640,142,640,480,416,480,216,480,55,480,0,480,0,319,0,246,385,139
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
objects:
track:
- person
- cat
- dog
BackYard1:
ffmpeg:
inputs:
- path: rtsp://admin:Password@192.168.5.2:88/videoMain
roles:
- record
- path: rtsp://admin:Password@192.168.5.2:88/videoSub
roles:
- detect
- rtmp
detect:
width: 640
height: 360
fps: 5
live:
height: 480
quality: 8
zones:
ChickenCoop:
coordinates: 240,197,101,185,79,110,232,110
BackYard:
coordinates: 0,360,321,360,286,217,0,211
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
track:
- person
- dog
- cat
ChickenCoop1:
ffmpeg:
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
inputs:
- path: rtsp://admin:Password@192.168.5.9:554/11
roles:
- record
- path: rtsp://admin:Password@192.168.5.9:554/12
roles:
- detect
- rtmp
detect:
width: 640
height: 352
fps: 5
live:
height: 480
quality: 8
zones:
ChickenCoop:
coordinates: 0,352,640,352,640,119,0,114
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: true
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
track:
- person
- dog
- cat
birdseye:
# Optional: Enable birdseye view (default: shown below)
enabled: True
# Optional: Width of the output resolution (default: shown below)
width: 1280
# Optional: Height of the output resolution (default: shown below)
height: 720
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
quality: 8
# Optional: Mode of the view. Available options are: objects, motion, and continuous
# objects - cameras are included if they have had a tracked object within the last 30 seconds
# motion - cameras are included if motion was detected in the last 30 seconds
# continuous - all cameras are included always
mode: objects
detectors:
coral:
type: edgetpu
device: usb
Frigate container logs
[2021-08-27 18:12:32] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:40880]
[2021-08-27 18:12:32] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:40880]```
**Frigate stats**
```json
{
BackFence1: {
camera_fps: 5,
capture_pid: 255,
detection_fps: 0,
pid: 235,
process_fps: 5,
skipped_fps: 0
},
BackYard1: {
camera_fps: 5,
capture_pid: 278,
detection_fps: 0,
pid: 240,
process_fps: 5,
skipped_fps: 0
},
ChickenCoop1: {
camera_fps: 5.1,
capture_pid: 290,
detection_fps: 0.8,
pid: 242,
process_fps: 0.4,
skipped_fps: 0
},
DiningRoom: {
camera_fps: 5.1,
capture_pid: 262,
detection_fps: 0,
pid: 236,
process_fps: 5.1,
skipped_fps: 0
},
Driveway: {
camera_fps: 5,
capture_pid: 243,
detection_fps: 0,
pid: 227,
process_fps: 5,
skipped_fps: 0
},
FrontDoorbell: {
camera_fps: 5,
capture_pid: 246,
detection_fps: 0.8,
pid: 231,
process_fps: 0.6,
skipped_fps: 0
},
LivingRoom1: {
camera_fps: 0,
capture_pid: 247,
detection_fps: 0,
pid: 232,
process_fps: 0,
skipped_fps: 0
},
Office1: {
camera_fps: 5.1,
capture_pid: 252,
detection_fps: 0.8,
pid: 234,
process_fps: 0.4,
skipped_fps: 0
},
OutsideFrontDoor: {
camera_fps: 5,
capture_pid: 245,
detection_fps: 0.8,
pid: 229,
process_fps: 0.3,
skipped_fps: 0
},
ToyRoom1: {
camera_fps: 5,
capture_pid: 267,
detection_fps: 0,
pid: 238,
process_fps: 5,
skipped_fps: 0
},
detection_fps: 3.2,
detectors: {
coral: {
detection_start: 1630110900.654782,
inference_speed: 333.65,
pid: 218
}
},
service: {
storage: {
/dev/shm: {
free: 50.7,
mount_type: "tmpfs",
total: 67.1,
used: 16.4
},
/media/frigate/clips: {
free: 510966.6,
mount_type: "nfs",
total: 536870.9,
used: 25904.3
},
/media/frigate/recordings: {
free: 510966.6,
mount_type: "nfs",
total: 536870.9,
used: 25904.3
},
/tmp/cache: {
free: 968.2,
mount_type: "tmpfs",
total: 1000,
used: 31.8
}
},
uptime: 325,
version: "0.9.0-4efc584"
}
}
Screenshots
Computer Hardware
- OS: Ubuntu
- Install method: Docker Compose
- Virtualization: Proxmox
- Coral Version: USB
- Network Setup: Wired
Camera Info: Not camera specific happens with all of my cameras
Additional context Just updated to the RC-1 to test it out and check it out and I like living on the edge
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 51 (33 by maintainers)
That did the trick, thank you!
Complete config file for Cloudflare’s Tunnel Service package,
cloudflared
, for the next googler:Im glad you asked because I gave up since I figured it was impossible. Looks like its finally resolved. https://github.com/cloudflare/cloudflared/issues/526