frigate: [Camera Support]: Detect won't work with go2rtc 1.3.2 and Reolink camera

Describe the problem you are having

Detect cannot receive stream from go2rtc 1.3.2 with Reolink cameras. MSE and WebRTC in live view are working. JSMPEG doesn’t work. Streaming from go2rtc directly works as well. Reverting back to go2rtc 1.2.0 will fix the issue.

Version

0.12.0-DA3E197

Frigate config file

cameras:
  backyard:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/backyard_new
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/backyard_sub
          roles:
            - detect

go2rtc:
    backyard_new:
      - http://192.168.10.24/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
      - ffmpeg:backyard#audio=opus
    backyard_sub:
      - http://192.168.10.24/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}

Relevant log output

2023-04-17 09:10:18.997148419  [2023-04-17 09:10:18] watchdog.backyard              INFO    : No frames received from backyard in 20 seconds. Exiting ffmpeg...
2023-04-17 09:10:18.997920716  [2023-04-17 09:10:18] watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
2023-04-17 09:10:18.999051384  [2023-04-17 09:10:18] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-04-17 09:10:18.999770712  [2023-04-17 09:10:18] frigate.video                  ERROR   : backyard: ffmpeg process is not running. exiting capture thread...
2023-04-17 09:10:29.000970556  [2023-04-17 09:10:29] watchdog.backyard              ERROR   : Ffmpeg process crashed unexpectedly for backyard.
2023-04-17 09:10:29.001076562  [2023-04-17 09:10:29] watchdog.backyard              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-04-17 09:10:29.001177166  [2023-04-17 09:10:29] ffmpeg.backyard.detect         ERROR   : [rtsp @ 0x560085dc0e40] CSeq 5 expected, 0 received.
2023-04-17 09:10:29.001259734  [2023-04-17 09:10:29] ffmpeg.backyard.detect         ERROR   :     Last message repeated 2 times
2023-04-17 09:10:29.001361889  [2023-04-17 09:10:29] ffmpeg.backyard.detect         ERROR   : [rtsp @ 0x560085dc0e40] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2023-04-17 09:10:29.001458410  [2023-04-17 09:10:29] ffmpeg.backyard.detect         ERROR   : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2023-04-17 09:10:29.001677708  [2023-04-17 09:10:29] ffmpeg.backyard.detect         ERROR   : Output file #0 does not contain any stream

FFprobe output from your camera

""

Frigate stats

{
	"backyard": {
		"camera_fps": 0.0,
		"capture_pid": 315,
		"detection_enabled": 0,
		"detection_fps": 0.0,
		"ffmpeg_pid": 1444,
		"pid": 291,
		"process_fps": 0.0,
		"skipped_fps": 0.0
	},
	"cpu_usages": {
		"%Cpu(s):": {
			"cpu": "id,",
			"mem": "0.4"
		},
		"1": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"107": {
			"cpu": "1.7",
			"mem": "0.7"
		},
		"108": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"119": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"123": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"124": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"125": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"126": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"1424": {
			"cpu": "22.9",
			"mem": "0.1"
		},
		"1438": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"1444": {
			"cpu": "9.3",
			"mem": "0.1"
		},
		"1458": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"1459": {
			"cpu": "0.3",
			"mem": "0.0"
		},
		"15": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"19": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"24": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"25": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"26": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"27": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"28": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"281": {
			"cpu": "0.0",
			"mem": "0.2"
		},
		"287": {
			"cpu": "0.3",
			"mem": "0.0"
		},
		"288": {
			"cpu": "0.0",
			"mem": "0.3"
		},
		"289": {
			"cpu": "1.3",
			"mem": "0.3"
		},
		"29": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"291": {
			"cpu": "0.0",
			"mem": "0.3"
		},
		"292": {
			"cpu": "0.7",
			"mem": "0.3"
		},
		"30": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"308": {
			"cpu": "0.3",
			"mem": "0.3"
		},
		"309": {
			"cpu": "0.0",
			"mem": "0.1"
		},
		"31": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"310": {
			"cpu": "0.7",
			"mem": "0.3"
		},
		"311": {
			"cpu": "0.0",
			"mem": "0.1"
		},
		"312": {
			"cpu": "0.7",
			"mem": "0.3"
		},
		"313": {
			"cpu": "0.3",
			"mem": "0.3"
		},
		"314": {
			"cpu": "0.3",
			"mem": "0.3"
		},
		"315": {
			"cpu": "0.0",
			"mem": "0.3"
		},
		"316": {
			"cpu": "0.0",
			"mem": "0.1"
		},
		"318": {
			"cpu": "1.0",
			"mem": "0.3"
		},
		"32": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"322": {
			"cpu": "0.0",
			"mem": "0.1"
		},
		"324": {
			"cpu": "0.7",
			"mem": "0.3"
		},
		"325": {
			"cpu": "2.7",
			"mem": "0.2"
		},
		"326": {
			"cpu": "1.0",
			"mem": "0.3"
		},
		"327": {
			"cpu": "0.0",
			"mem": "0.1"
		},
		"332": {
			"cpu": "22.9",
			"mem": "0.1"
		},
		"333": {
			"cpu": "0.7",
			"mem": "0.3"
		},
		"334": {
			"cpu": "0.0",
			"mem": "0.1"
		},
		"338": {
			"cpu": "1.0",
			"mem": "0.3"
		},
		"339": {
			"cpu": "0.0",
			"mem": "0.1"
		},
		"343": {
			"cpu": "2.7",
			"mem": "0.2"
		},
		"344": {
			"cpu": "1.0",
			"mem": "0.3"
		},
		"345": {
			"cpu": "3.7",
			"mem": "0.1"
		},
		"347": {
			"cpu": "3.0",
			"mem": "0.2"
		},
		"350": {
			"cpu": "2.0",
			"mem": "0.2"
		},
		"358": {
			"cpu": "2.3",
			"mem": "0.2"
		},
		"362": {
			"cpu": "2.7",
			"mem": "0.2"
		},
		"363": {
			"cpu": "3.0",
			"mem": "0.1"
		},
		"367": {
			"cpu": "3.3",
			"mem": "0.1"
		},
		"370": {
			"cpu": "3.0",
			"mem": "0.1"
		},
		"376": {
			"cpu": "3.0",
			"mem": "0.1"
		},
		"377": {
			"cpu": "2.3",
			"mem": "0.1"
		},
		"40": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"42": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"79": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"80": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"84": {
			"cpu": "0.0",
			"mem": "0.0"
		},
		"90": {
			"cpu": "12.3",
			"mem": "0.1"
		},
		"MiB": {
			"cpu": "19308.6",
			"mem": "avail"
		},
		"PID": {
			"cpu": "%CPU",
			"mem": "%MEM"
		},
		"Tasks:": {
			"cpu": "stopped,",
			"mem": "0"
		},
		"top": {
			"cpu": "users,",
			"mem": "load"
		}
	},
	"detection_fps": 0.0,
	"detectors": {
		"coral": {
			"detection_start": 0.0,
			"inference_speed": 7.69,
			"pid": 288
		}
	},
	"doorbell": {
		"camera_fps": 5.0,
		"capture_pid": 318,
		"detection_enabled": 1,
		"detection_fps": 0.0,
		"ffmpeg_pid": 325,
		"pid": 292,
		"process_fps": 5.0,
		"skipped_fps": 0.0
	},
	"floodlight": {
		"camera_fps": 5.1,
		"capture_pid": 324,
		"detection_enabled": 1,
		"detection_fps": 0.0,
		"ffmpeg_pid": 343,
		"pid": 308,
		"process_fps": 5.1,
		"skipped_fps": 0.0
	},
	"front_yard": {
		"camera_fps": 5.1,
		"capture_pid": 326,
		"detection_enabled": 1,
		"detection_fps": 0.0,
		"ffmpeg_pid": 347,
		"pid": 310,
		"process_fps": 5.1,
		"skipped_fps": 0.0
	},
	"gpu_usages": {
		"intel-vaapi": {
			"gpu": "4.84 %",
			"mem": "- %"
		}
	},
	"kris_room": {
		"camera_fps": 5.1,
		"capture_pid": 333,
		"detection_enabled": 0,
		"detection_fps": 0.0,
		"ffmpeg_pid": 350,
		"pid": 312,
		"process_fps": 5.1,
		"skipped_fps": 0.0
	},
	"service": {
		"last_updated": 1681748359,
		"latest_version": "0.12.0",
		"storage": {
			"/dev/shm": {
				"free": 126.9,
				"mount_type": "tmpfs",
				"total": 134.2,
				"used": 7.3
			},
			"/media/frigate/clips": {
				"free": 17550928.8,
				"mount_type": "ext4",
				"total": 29581062.6,
				"used": 12029580.1
			},
			"/media/frigate/recordings": {
				"free": 17550928.8,
				"mount_type": "ext4",
				"total": 29581062.6,
				"used": 12029580.1
			},
			"/tmp/cache": {
				"free": 374438.9,
				"mount_type": "overlay",
				"total": 431961.9,
				"used": 56969.3
			}
		},
		"temperatures": {
			"apex_0": 44.55
		},
		"uptime": 560,
		"version": "0.12.0-da3e197"
	},
	"side_door": {
		"camera_fps": 5.1,
		"capture_pid": 338,
		"detection_enabled": 0,
		"detection_fps": 0.0,
		"ffmpeg_pid": 362,
		"pid": 313,
		"process_fps": 5.1,
		"skipped_fps": 0.0
	},
	"side_yard": {
		"camera_fps": 5.1,
		"capture_pid": 344,
		"detection_enabled": 0,
		"detection_fps": 0.0,
		"ffmpeg_pid": 358,
		"pid": 314,
		"process_fps": 5.1,
		"skipped_fps": 0.0
	}
}

Operating system

Other Linux

Install method

Docker Compose

Coral version

PCIe

Network connection

Wired

Camera make and model

Reolink RLC-510WA

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21

Most upvoted comments

I have 2 using rtsp and 2 using http via ffmpeg in go2rtc

Basically:

go2rtc:
  streams:
    Cam: rtsp://
    Cam rtsp://
    Cam ffmpeg:http://
    Cam ffmpeg:http://