Skip to content

Commit

Permalink
optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Aug 9, 2023
1 parent 21c7363 commit 6c13b30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Use Python 3.10 as the base image
FROM python:3.10-slim-buster
FROM python:3.12-slim-bookworm

# Install FFmpeg and other dependencies
RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion ts_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def run():
for frame in stream.decode():
if isinstance(frame, VideoFrame):
prom.video_frame_count.inc()
video_buffer.append(frame)

VIDEO_PROBE_INTERVAL -= 1
if VIDEO_PROBE_INTERVAL == 0:
video_buffer.append(frame)
prom.video_brightness_gauge.set(
video_buffer.avg_brightness)
prom.motion_gauge.set(
Expand Down

0 comments on commit 6c13b30

Please sign in to comment.