Skip to content

Commit

Permalink
Set fps to 20 when camera is reporting 15 #1287
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Aug 12, 2024
1 parent 370a138 commit b4d1dcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/wyzebridge/wyze_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ def get_video_params(sess: WyzeIOTCSession) -> tuple[str, int]:
logger.info(f"Attempting to force fps={force_fps}")
sess.update_frame_size_rate(fps=force_fps)
fps = force_fps
elif sess.camera.is_2k and fps == 15:
fps = 20

if fps % 5 != 0:
logger.error(f"⚠️ Unusual FPS detected: {fps}")
Expand Down

0 comments on commit b4d1dcd

Please sign in to comment.