Closed fabltd closed 2 years ago
This just means ffmpeg is struggling to consistently read the video stream from your camera. If it isn't recoverable, the process exits and frigate restarts ffmpeg.
You could try a less aggressive set of input_args for ffmpeg. Example here: https://github.com/blakeblackshear/frigate/issues/1249#issuecomment-864394891
Ok will try. As FFMEG crashes. Is the bottle neck the camera?
Could be lots of things. Camera could be overloaded if you are connected from multiple clients. It could be network issues, or your camera just may not output a very reliable stream.
Thanks.
Testing now.
I have one other issue I assume was related.
Clips all seem to show a time of 1:00:38. The clip still is correct but the play back doesn't appear to show the event.
If ffmpeg is crashing, its going to break the clips too.
Testing still shows error:
frigate | ffmpeg.front_door.detect ERROR : More than 1000 frames duplicated
frigate | ffmpeg.front_door.detect ERROR : [rtsp @ 0x5628a7157cc0] DTS 146912157824107 < 146912479227747 out of order
frigate | ffmpeg.front_door.detect ERROR : [segment @ 0x5628a717f0c0] Non-monotonous DTS in output stream 0:0; previous: 59963678, current: 5110790; changing to 59963679. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Non-monotonous DTS in output stream 1:0; previous: 3903885, current: 332734; changing to 3903885. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [segment @ 0x5628a717f0c0] Non-monotonous DTS in output stream 0:0; previous: 59963679, current: 5110909; changing to 59963680. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Non-monotonous DTS in output stream 1:0; previous: 3903885, current: 332741; changing to 3903885. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [segment @ 0x5628a717f0c0] Non-monotonous DTS in output stream 0:0; previous: 59963680, current: 5111091; changing to 59963681. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Non-monotonous DTS in output stream 1:0; previous: 3903885, current: 332753; changing to 3903885. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [segment @ 0x5628a717f0c0] Non-monotonous DTS in output stream 0:0; previous: 59963681, current: 5111146; changing to 59963682. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Non-monotonous DTS in output stream 1:0; previous: 3903885, current: 332757; changing to 3903885. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [segment @ 0x5628a717f0c0] Non-monotonous DTS in output stream 0:0; previous: 59963682, current: 5111301; changing to 59963683. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Non-monotonous DTS in output stream 1:0; previous: 3903885, current: 332767; changing to 3903885. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [segment @ 0x5628a717f0c0] Non-monotonous DTS in output stream 0:0; previous: 59963683, current: 5111393; changing to 59963684. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Non-monotonous DTS in output stream 1:0; previous: 3903885, current: 332773; changing to 3903885. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [h264 @ 0x5628a7326d40] error while decoding MB 29 24, bytestream -6
frigate | ffmpeg.front_door.detect ERROR : [segment @ 0x5628a717f0c0] Non-monotonous DTS in output stream 0:0; previous: 59963684, current: 5111442; changing to 59963685. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Non-monotonous DTS in output stream 1:0; previous: 3903885, current: 332776; changing to 3903885. This may result in incorrect timestamps in the output file.
frigate | ffmpeg.front_door.detect ERROR : rtsp://*******/rtsph2641080p: corrupt decoded frame in stream 0
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Failed to update header with correct duration.
frigate | ffmpeg.front_door.detect ERROR : [flv @ 0x5628a7199c40] Failed to update header with correct filesize.
Ok so the odd time of 1 hour is rreleated not some configuration mismatch
Note that all messages from the underlying ffmpeg process come across as type ERROR
regardless of what the actual message is. Some of these are just informational. These messages are up to the last 100 lines output by ffmpeg before the process exited. Try increasing the log level of ffmpeg:
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://admin:{FRIGATE_RTSP_PASSWORD_0}@******/rtsph2641080p
global_args: -hide_banner -loglevel info
roles:
- detect
- rtmp
- clips
Thanks will add.
I have changed to the 720P stream from the camera and this seems to have stopped the errors for now.
Any idea why the cameras are not presented to homekit. I have added them as a source but not appearing on my phone.
I don't know enough about homekit or your setup to help with that. Frigate cameras in home assistant should work like any other camera.
Thanks. I got it working now the stream is more stable.
Is there anyway to stop the camera user name and password being printed in the logs.
Not at the moment
Thanks. Also any way to clear the last person detected.
Still seeing errors but less than there were. Is there any way to check FFMPEGS memory allocation.
Bump
It hasn't even been 24 hours. You haven't provided any additional information since the last suggestion I made to increase the log level for ffmpeg.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
Soon after starting frigate the logs fill up with ffmeg errors. I have been trying to find a solution and I see this issue has come up a number of times but there does not seem to be a comprehensive fix.
Is there a way to check what ffmeg command is being called and to test that to prove its ffmeg and not frigate?
The errors are as follows:
I also see:
Version of frigate Output from
/api/version
0.8.4-5043040
Config file Include your full config file wrapped in triple back ticks.
See above
FFprobe from your camera
Run the following command and paste output below
Screenshots If applicable, add screenshots to help explain your problem.
Computer Hardware
Ubuntu 20.04.3 LTS
Docker Compose - See config:
Esxi V7
USB
Wired
``` Camera Info:**