frigate: [Support]: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
Describe the problem you are having
Iβve searched thru google along w/ many of the issues posted here, pretty much tried everything in the past few days and still canβt get Frigate to pass initially stage of ffmpeg
Codec info
Version
0.9.4-26AE608
Frigate config file
mqtt:
host: 10.0.19.5
user: *****
password: ******!
client_id: frigate
cameras:
frontdoor:
ffmpeg:
inputs:
- path: rtsp://*****:*****@10.0.29.3/user=*****&password=*****&channel=1&stream=1.sdp?
roles:
- detect
hwaccel_args:
- -hwaccels
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- +genpts+discardcorrupt
- -rtsp_transport
- tcp
- -stimeout
- '5000000'
- -use_wallclock_as_timestamps
- '1'
- -c:v
- hevc_cuvid
output_args:
detect: -f rawvideo -pix_fmt yuv420p
detect:
width: 352
height: 240
fps: 5
enabled: True
max_disappeared: 25
logger:
logs:
frigate.event: debug
frigate.mqtt: error
Relevant log output
[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.
[2022-02-07 16:27:32] frigate.app INFO : Starting Frigate (0.9.4-26ae608)
[2022-02-07 16:27:32] frigate.app INFO : Creating directory: /tmp/cache
Starting migrations
[2022-02-07 16:27:32] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2022-02-07 16:27:32] peewee_migrate INFO : There is nothing to migrate
[2022-02-07 16:27:32] ws4py INFO : Using epoll
[2022-02-07 16:27:32] detector.cpu INFO : Starting detection process: 219
[2022-02-07 16:27:32] frigate.edgetpu WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2022-02-07 16:27:32] frigate.app INFO : Output process started: 220
[2022-02-07 16:27:32] frigate.app INFO : Camera processor started for frontdoor: 228
[2022-02-07 16:27:32] frigate.app INFO : Capture process started for frontdoor: 231
[2022-02-07 16:27:32] ws4py INFO : Using epoll
[2022-02-07 16:27:32] frigate.video INFO : frontdoor: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-07 16:27:32] frigate.video INFO : frontdoor: ffmpeg process is not running. exiting capture thread...
FFprobe output from your camera
Not sure how to get this info
Frigate stats
Not sure how to get this info
Operating system
HassOS
Install method
HassOS Addon
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Heimvision 245
Any other information that may be helpful
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (4 by maintainers)
OK, finally got it to work by adding low_delay and -flags to input_args, not sure what all that mean π . Next step is to add other functions such as clips, record, etc. and to get CPU down. Will keep you posted
input_args: - -avoid_negative_ts - make_zero - -flags - low_delay - -fflags - +genpts+discardcorrupt - -rtsp_transport - tcp - -stimeout - β5000000β - -use_wallclock_as_timestamps - β1β