[Hwaccel Support]: FFMPEG is not work. frigate 0.14 rockchip #12713
-
Describe the problem you are havingFrigate 0.13 has been working successfully for me for several months and does not cause any problems. But unfortunately frigate 0.14 refuses to work. Some cameras start working for a few seconds and stop; two cameras don't work at all. I tried connecting via go2rtc and without it, but it didn't bring any results. At the same time, frigate 0.13 still works and in VLC I also see all my cameras. What am I doing wrong? image: ghcr.io/blakeblackshear/frigate:0.14.0-rc1-rk Steps to reproduce
Version0.14.0-rc1-rk Frigate config filemqtt:
host: 192.168.200.9
port: 1883
topic_prefix: frigate
user: external
password: external
detectors:
rknn:
type: rknn
num_cores: 0
model:
path: deci-fp16-yolonas_s
width: 320
height: 320
input_tensor: nhwc
input_pixel_format: bgr
# labelmap_patch: /labelmap.txt
birdseye:
enabled: true
restream: false
width: 1366
height: 768
quality: 8
mode: continuous
go2rtc:
streams:
Fasad3:
ffmpeg:rtsp://192.168.201.13:8554/profile0#video=h265/rkmpp#audio=copy#audio=aac#audio=opus
# Fasad3_sub:
# - rtsp://192.168.201.13:8554/profile1#video=h265/rkmpp
Chiken:
- rtsp://192.168.201.11:554/user=admin_password=******_channel=0_stream=0&onvif=0.sdp
Chiken_sub:
- rtsp://192.168.201.11:554/user=admin_password=*****_channel=0_stream=1&onvif=0.sdp
Garden2:
- rtsp://192.168.201.14:554/user=admin_password=******_channel=0_stream=0&onvif=0.sdp
Garden2_sub:
- rtsp://192.168.201.14:554/user=admin_password=******_channel=0_stream=1&onvif=0.sdp
Fasad1:
- rtsp://192.168.201.16:554/user=admin_password=******_channel=0_stream=0&onvif=0.sdp
# Fasad1_sub:
# - rtsp://192.168.201.16:554/user=admin_password=*******_channel=0_stream=1&onvif=0.sdp
Garden1:
- rtsp://192.168.201.3:554/user=karp&password=Star******.&channel=6_stream=0?.sdp
Garden1_sub:
- rtsp://192.168.201.3:554/user=karp&password=*******.&channel=6_stream=1?.sdp
Yard1:
- rtsp://192.168.201.18:554/user=admin_password=*******_channel=0_stream=0&onvif=0.sdp
Yard1_sub:
- rtsp://192.168.201.18:554/user=admin_password=******_channel=0_stream=1&onvif=0.sdp
FaceID:
- rtsp://admin:[email protected]:554/stream1
# FaceID_sub:
# - rtsp://admin:[email protected]:554/stream2#video=h265/rkmpp
# Test:
# ffmpeg:rtsp://192.168.201.17:8554/profile0#video=h265/rkmpp
# - "ffmpeg:Test#video=h264"
# Test_sub:
# ffmpeg:rtsp://192.168.201.17:8554/profile1#video=h265/rkmpp
# - "ffmpeg:Test_sub#video=h264"
cameras:
FaceID:
enabled: true
birdseye:
order: 3
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-rk-h265
inputs:
- path: rtsp://admin:******[email protected]:8554/FaceID #go2rtc
roles:
- detect
- record
detect:
width: 2560
height: 1440
fps: 5
record:
enabled: true
retain:
days: 10
mode: motion
events:
retain:
default: 10
mode: active_objects
snapshots:
enabled: true
objects:
track:
- person
- car
- bus
- dog
zones:
zone_0:
coordinates: 2560,1440,2560,1138,1819,1168,1331,1183,751,1154,21,1086,0,1440
objects:
- person
- car
motion:
lightning_threshold: 0.7
contour_area: 30
threshold: 30
mask:
- 0,39,0,581,591,519,1418,491,1425,732,2560,710,2560,659,2560,493,2560,0,287,0,0,0
mqtt:
enabled: true
timestamp: false
bounding_box: true
crop: true
quality: 100
height: 1000
Fasad1:
enabled: true
birdseye:
order: 1
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-rk-h265
inputs:
- path: rtsp://admin:******[email protected]:8554/Fasad1 #go2rtc
roles:
- detect
- record
detect:
width: 1226
height: 360
fps: 5
record:
enabled: true
retain:
days: 10
mode: motion
events:
retain:
default: 10
mode: active_objects
snapshots:
enabled: true
objects:
track:
- person
- car
- dog
- bus
filters:
person:
max_area: 17000
threshold: 0.6
min_score: 0.45
dog:
threshold: 0.35
min_score: 0.2
max_area: 10500
motion:
contour_area: 26
threshold: 26
mask:
- 1226,0,1226,108,910,91,589,66,0,92,0,0
- 662,360,410,226,339,246,318,360
zones:
fasad_1:
coordinates: 273,360,1226,360,1226,0,594,0,593,89,345,233
objects:
- person
fasad1.1:
coordinates: 1012,723,393,1080,741,1080,1034,1080,1004,938,1738,282
objects:
- person
- car
Fasad3:
enabled: true
birdseye:
order: 2
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-rk-h265
inputs:
# - path: rtsp://192.168.201.13:8554/profile0
- path: rtsp://admin:*******[email protected]:8554/Fasad3
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: true
retain:
days: 10
mode: motion
events:
retain:
default: 10
mode: active_objects
snapshots:
enabled: true
objects:
track:
- person
- car
- dog
- bus
- truck
filters:
person:
# min_area: 6000
#max_area: 120000
threshold: 0.45
min_score: 0.3
dog:
max_area: 4000
threshold: 0.5
min_score: 0.25
motorcicle:
threshold: 0.4
min_score: 0.3
# car:
# threshold: 0.7
# min_score: 0.4
zones:
fasad:
coordinates: 158,720,741,720,593,591,260,281,109,313
objects:
- car
- person
motion:
contour_area: 25
threshold: 28
mask:
- 899,261,1280,372,1280,0,902,0,901,0
- 1006,652,1004,676,1280,684,1280,651
- 0,0,1280,0,1280,67,189,75,171,74,156,136,61,152,0,191
mqtt:
enabled: true
timestamp: false
bounding_box: true
crop: true
quality: 100
height: 1000
Yard1:
enabled: true
birdseye:
order: 4
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-rk-h265
inputs:
- path: rtsp://admin:*******[email protected]:8554/Yard1
roles:
- detect
- path: rtsp://admin:*******[email protected]:8554/Yard1_sub
roles:
- record
detect:
width: 800
height: 448
fps: 5
record:
enabled: true
events:
retain:
default: 10
mode: active_objects
snapshots:
enabled: true
objects:
track:
- person
- car
- dog
filters:
person:
# min_area: 6000
max_area: 38000
threshold: 0.7
min_score: 0.54
dog:
min_area: 400
max_area: 6000
threshold: 0.35
min_score: 0.3
motion:
contour_area: 25
threshold: 28
mask:
- 800,0,527,0,532,65,673,110,706,106,800,161
Chiken:
enabled: true
birdseye:
order: 5
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-rk-h264
inputs:
- path: rtsp://admin:*******[email protected]:8554/Chiken #go2rtc
roles:
- record
- path: rtsp://admin:*******[email protected]:8554/Chiken_sub
roles:
- detect
detect:
width: 640
height: 360
fps: 5
record:
enabled: true
retain:
days: 10
mode: motion
events:
retain:
default: 10
mode: active_objects
snapshots:
enabled: true
objects:
track:
- person
- car
filters:
person:
# min_area: 10000
#max_area: 120000
threshold: 0.5
min_score: 0.4
mask:
- 513,90,513,126,461,125,463,90
motion:
contour_area: 20
threshold: 20
mask:
- 640,360,640,251,518,224,520,141,28,276,34,360
- 640,0,640,41,396,36,397,0
version: 0.14 Relevant log output2024-08-01 22:44:08.195831906 [2024-08-01 22:44:08] frigate.app INFO : Camera processor started for FaceID: 472
2024-08-01 22:44:08.204202817 [2024-08-01 22:44:08] frigate.app INFO : Camera processor started for Fasad1: 473
2024-08-01 22:44:08.211602156 [2024-08-01 22:44:08] frigate.app INFO : Camera processor started for Fasad3: 474
2024-08-01 22:44:08.218004794 [2024-08-01 22:44:08] frigate.app INFO : Camera processor started for Yard1: 478
2024-08-01 22:44:08.228086514 [2024-08-01 22:44:08] frigate.app INFO : Camera processor started for Chiken: 485
2024-08-01 22:44:08.237650367 [2024-08-01 22:44:08] frigate.app INFO : Camera processor started for Garden1: 493
2024-08-01 22:44:08.246346917 [2024-08-01 22:44:08] frigate.app INFO : Camera processor started for Garden2: 505
2024-08-01 22:44:08.246351730 [2024-08-01 22:44:08] frigate.app INFO : Camera processor not started for disabled camera Test
2024-08-01 22:44:08.254679864 [2024-08-01 22:44:08] frigate.app INFO : Capture process started for FaceID: 517
2024-08-01 22:44:08.270495832 [2024-08-01 22:44:08] frigate.app INFO : Capture process started for Fasad1: 533
2024-08-01 22:44:08.280933136 [2024-08-01 22:44:08] frigate.app INFO : Capture process started for Fasad3: 542
2024-08-01 22:44:08.291605713 [2024-08-01 22:44:08] frigate.app INFO : Capture process started for Yard1: 550
2024-08-01 22:44:08.300473906 [2024-08-01 22:44:08] frigate.app INFO : Capture process started for Chiken: 555
2024-08-01 22:44:08.315547427 [2024-08-01 22:44:08] frigate.app INFO : Capture process started for Garden1: 564
2024-08-01 22:44:08.324140778 [2024-08-01 22:44:08] frigate.app INFO : Capture process started for Garden2: 569
2024-08-01 22:44:08.325645991 [2024-08-01 22:44:08] frigate.app INFO : Capture process not started for disabled camera Test
2024-08-01 22:44:08.638217032 I RKNN: [22:44:08.638] RKNN Runtime Information, librknnrt version: 2.0.0b0 (35a6907d79@2024-03-24T10:31:14)
2024-08-01 22:44:08.639008405 I RKNN: [22:44:08.638] RKNN Driver Information, version: 0.9.2
2024-08-01 22:44:08.642137538 I RKNN: [22:44:08.642] RKNN Model Information, version: 6, toolkit version: 2.0.0b0+9bab5682(compiler version: 2.0.0b0 (35a6907d79@2024-03-24T02:34:11)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
2024-08-01 22:44:10.326600073 [2024-08-01 22:44:10] frigate.video ERROR : Fasad3: Unable to read frames from ffmpeg process.
2024-08-01 22:44:10.327624046 [2024-08-01 22:44:10] frigate.video ERROR : Fasad3: ffmpeg process is not running. exiting capture thread...
2024-08-01 22:44:12.203809581 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion contour area for FaceID: 10
2024-08-01 22:44:12.266827755 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion threshold for FaceID: 10
2024-08-01 22:44:12.361790672 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion contour area for Fasad1: 16
2024-08-01 22:44:12.366377428 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion threshold for Fasad1: 16
2024-08-01 22:44:12.369951976 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion contour area for Garden1: 18
2024-08-01 22:44:12.372052590 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion threshold for Garden1: 22
2024-08-01 22:44:12.409711797 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion contour area for Fasad3: 12
2024-08-01 22:44:12.413378048 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion threshold for Fasad3: 12
2024-08-01 22:44:12.421405139 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion contour area for Yard1: 17
2024-08-01 22:44:12.423767762 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion threshold for Yard1: 16
2024-08-01 22:44:12.478395508 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion contour area for Chiken: 20
2024-08-01 22:44:12.491875322 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion threshold for Chiken: 15
2024-08-01 22:44:12.500273770 [2024-08-01 22:44:12] frigate.comms.dispatcher INFO : Setting motion contour area for Garden2: 18
2024-08-01 22:44:28.335441760 [2024-08-01 22:44:28] watchdog.Fasad3 ERROR : Ffmpeg process crashed unexpectedly for Fasad3.
2024-08-01 22:44:28.335448177 [2024-08-01 22:44:28] watchdog.Fasad3 ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-08-01 22:44:28.335449927 [2024-08-01 22:44:28] ffmpeg.Fasad3.detect ERROR : [rtsp @ 0xaaaad68d13d0] method DESCRIBE failed: 404 Not Found
2024-08-01 22:44:28.335456052 [2024-08-01 22:44:28] ffmpeg.Fasad3.detect ERROR : [in#0 @ 0xaaaad68d12b0] Error opening input: Server returned 404 Not Found
2024-08-01 22:44:28.335476176 [2024-08-01 22:44:28] ffmpeg.Fasad3.detect ERROR : Error opening input file rtsp://*:*@127.0.0.1:8554/Fasad3.
2024-08-01 22:44:28.335477926 [2024-08-01 22:44:28] ffmpeg.Fasad3.detect ERROR : Error opening input files: Server returned 404 Not Found Operating systemOther Linux Install methodDocker Compose Network connectionWired Camera make and modelxmey Any other information that may be helpful2024-08-01 22:49:47.316963212 [INFO] Preparing new go2rtc config... |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 86 replies
-
Is your url correct? You have port 8554 for
|
Beta Was this translation helpful? Give feedback.
-
Good afternoon Are there any plans to update ffmpeg? since all the above did not help... |
Beta Was this translation helpful? Give feedback.
-
Good day! |
Beta Was this translation helpful? Give feedback.
-
And so 0.15 works and it’s wonderful! Bravo! But two cameras still bother me. I will try to describe what is happening in as much detail as possible. These two cameras in frigate 0.13 work with the H265 codec in the following configuration: Without ffmpeg, streams are also launched rtsp://192.168.201.13:8554/profile0 |
Beta Was this translation helpful? Give feedback.
-
I'm still willing to provide a link to the live camera if it helps solve the problem! |
Beta Was this translation helpful? Give feedback.
-
Hello! I did some experiments and they confused me even more. Since on orange pi5 it is not possible to run a stream from two cameras and this leads to Docker and Armbian crashing, I decided to recode this stream on my old machine on a core i3 running true nas scale. I ran the frigate 0.15 container on it with a minimum number of settings and two cameras in go2rtc. |
Beta Was this translation helpful? Give feedback.
I was just about to delete my post and say that everything works! Thank you! Yes, I have a lot of questions, but the main problem is solved!