Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created May 26, 2025 13:54
Show Gist options
  • Save PatrickKalkman/a371b56bea12d32f1d1f4e98a25b9be1 to your computer and use it in GitHub Desktop.
Save PatrickKalkman/a371b56bea12d32f1d1f4e98a25b9be1 to your computer and use it in GitHub Desktop.
# Configurable quality settings
video_height = int(os.environ.get("VIDEO_HEIGHT", "120")) # Lower = faster
video_crf = int(os.environ.get("VIDEO_CRF", "28")) # Higher = smaller files
video_fps = int(os.environ.get("VIDEO_FPS", "5")) # Lower = fewer frames
# These settings reduce file sizes by 95%+ while maintaining detection accuracy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment