Video clips stop playing after server runs several hours.. #22316
Replies: 3 comments
-
|
Based on the available sources, here are several configuration areas to check for your video playback issue: H.265 Recording Support H.265 recordings are supported in Frigate, but require specific browser compatibility(1). H.265 recordings can be viewed in Chrome 108+, Edge and Safari only - all other browsers require recordings to be encoded with H.264(1). For H.265 cameras, you can enable Apple compatibility to ensure broader playback support(2): cameras:
h265_cam:
ffmpeg:
apple_compatibility: trueCamera Stream Configuration For cameras using H.264+, you should avoid "smart codec" or "+" codec variants as these are non-standard codecs that remove keyframes(3). The recommended camera settings are(3):
Recording Configuration Recordings are written directly from your camera stream without re-encoding(1). The folder structure for recordings is New recording segments are written from the camera stream to cache, and are only moved to disk if they match the setup recording retention policy(1). Potential Issue There's a related GitHub issue describing clips/recordings failing to play within Home Assistant after some time, which was resolved by addressing SSL certificate validation(4). If you're accessing Frigate through a reverse proxy or Home Assistant, check your SSL configuration(4). 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
@bot - don't think any of that helps with my issue. |
Beta Was this translation helpful? Give feedback.
-
|
Based on the available sources, your issue with video clips stopping playback after several hours isn't directly addressed. However, there are a few relevant configuration areas to check: Recording Storage and Cleanup Frigate has an automatic cleanup mechanism. If there is less than an hour left of storage, the oldest 2 hours of recordings will be deleted(1). This could potentially affect playback if storage is running low. H.264+ Codec Issue You mentioned cameras are recording in h264/h264+. The documentation specifically warns against using "smart codec" or "+" codec variants like H.264+ or H.265+ as these non-standard codecs remove keyframes(2). This could cause playback issues over time. The recommended camera settings are(2):
FFmpeg Retry Interval There's a configuration option that controls how long Frigate waits before retrying camera connections(3): ffmpeg:
retry_interval: 10The default is 10 seconds. The documentation notes: "If set too high, then if a ffmpeg crash or camera stream timeout occurs, you could potentially lose up to a maximum of retry_interval second(s) of footage"(3). Database Sync If recordings files are deleted but Frigate doesn't know about it, you can enable recordings sync(1): record:
sync_recordings: TrueHowever, the documentation warns this "uses considerable CPU resources and in most cases is not needed"(1). The specific symptom you're describing (clips showing initial image but not playing until restart) isn't directly covered in the available documentation. You may want to check the Frigate logs and visit GitHub for additional support. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Video clips stop playing after server runs several hours.. it just shows the initial image like it's trying to load the video and then nothing happens until you restart the server and the video plays perfectly fine after that? Cameras are recordings in h264/h264+ frigate won't record them if they are in h265 for some reason.
Beta Was this translation helpful? Give feedback.
All reactions