frigate icon indicating copy to clipboard operation
frigate copied to clipboard

Config option to wait longer for ffmpeg to get frames

Open raidenlal opened this issue 10 months ago • 8 comments

Describe what you are trying to accomplish and why in non technical terms I want to be able to get stream when it takes longer time to receive it. VLC is able to receive the stream but it takes 40+ seconds to see the video stream.

Describe the solution you'd like I want to be able to set longer timeout for waiting ffmpeg frames.

Describe alternatives you've considered n/a

Additional context watchdog.camera_name        INFO    : No frames received from camera_name in 20 seconds. Exiting ffmpeg... If only Frigate would be able to wait for 60 seconds, this would be great.

raidenlal avatar Apr 19 '24 19:04 raidenlal

why does it take so long to start the stream? if the camera has an iframe interval that far apart that is going to cause many other problems

NickM-27 avatar Apr 19 '24 20:04 NickM-27

It seems that during night lower bitrate somehow delays first complete frame. Dont know why. Camera is Xiao Fang.

raidenlal avatar Apr 19 '24 21:04 raidenlal

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.

github-actions[bot] avatar May 20 '24 00:05 github-actions[bot]

Still relevant. Frigate is unable to fetch image from camera almost everyday - while VLC is able to.

raidenlal avatar May 20 '24 07:05 raidenlal

I have the same problem. Vlc is easy able to connect to the stream. But with frigate i‘m not able to connect because it takes a long time…

bench66517 avatar May 23 '24 17:05 bench66517

I've seen this with IMOU (off-brand Dahua) cameras over the years sporadically, even when the cameras are on ethernet (although it happens less when wired)

The reality is that some kind of image, even if it is delayed or low quality is better than no image at all. When this does happen for me, I notice that Frigate will show "no frames detected" for this particular camera for hours, but all the while VLC works fine. Furthermore, this really does seem like a case of runaway exponential back off because restarting Frigate brings the cameras back half the time.

I know this is anecdotal but I can collect any logs you need the next time this happens :)

villasenor avatar May 26 '24 10:05 villasenor

Im having the exact issue as described by @villasenor . The stream at some point has an issue which causes the "no frames detected" sceen in frigate and goes on normally until i restart frigate entirely. But when viewing the stream in vlc its alive and well.

coldkevin avatar Jun 04 '24 05:06 coldkevin

I have the same issues with timeouts on Dahua cams. Can't create or edit regions on Dahua cameras either. There was some improvement in the last upgrade (with auto-PTZ) but there are still issues with packet drops.

aburow avatar Aug 21 '24 12:08 aburow

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.

github-actions[bot] avatar Sep 21 '24 00:09 github-actions[bot]