Closed stu1811 closed 2 years ago
My suggestion would be your input_args has too many things in it. Mine only has 2 args for a similar camera and works fine. -c:v and the nvidia one
I was able to cut the config to this. I'll monitor and report back.
ffmpeg:
output_args:
record: -f segment -segment_time 600 -segment_format yuv420p -c copy -an
input_args: -fflags nobuffer
EDIT: Errors
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] RTP: missed 1 packets
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] max delay reached. need to consume packet
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] RTP: missed 1 packets
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] max delay reached. need to consume packet
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] RTP: missed 1 packets
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] max delay reached. need to consume packet
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] RTP: missed 1 packets
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] max delay reached. need to consume packet
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] RTP: missed 1 packets
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] max delay reached. need to consume packet
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] RTP: missed 1 packets
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] max delay reached. need to consume packet
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [rtsp @ 0x5654bc95d6c0] RTP: missed 1 packets
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [h264 @ 0x5654bc961740] left block unavailable for requested intra mode
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [h264 @ 0x5654bc961740] error while decoding MB 0 36, bytestream 915095
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : [mp4 @ 0x5654bc9a0080] Invalid segment filename template '/tmp/cache/garage_rear-%Y%m%d%H%M%S.mp4'
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR : Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
[2022-04-25 10:57:19] ffmpeg.garage_rear.record ERROR :
Any other suggestions?
I had similar errors displayed in ffprobe and eradicated them with -rtsp_transport tcp
which has helped a great deal. It's a wifi camera though so a much worse signal than I'd expect with PoE. Also the distortion was visible through VLC and the live frigate playback so not quite the same, but worth a shot.
I had similar errors displayed in ffprobe and eradicated them with
-rtsp_transport tcp
which has helped a great deal. It's a wifi camera though so a much worse signal than I'd expect with PoE. Also the distortion was visible through VLC and the live frigate playback so not quite the same, but worth a shot.
The tcp flag fixed my issue. Thanks!
Describe the problem you are having
I have 3x Amcrest IP POE cameras ([IP8M-2597EB-28MM). Sometimes video playback is ok and other times the video is distorted (see screenshot below). Live video playback in Frigate looks fine. I've tried playback in firefox and chrome.
Frigate version: 0.10.1-83481AF HA Frigate Version: 3.1
Live image
Version
0.10.1-83481AF
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
Other Linux
Install method
HassOS Addon
Coral version
M.2
Network connection
Wired
Camera make and model
Amcrest IP8M-2597EB-28MM
Any other information that may be helpful
No response