-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (40 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (40 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
timelapse-capture:
build: .
container_name: timelapse-capture
restart: unless-stopped
environment:
# RTSP stream URL - CHANGE THIS to your stream URL
- RTSP_URL=${RTSP_URL:-rtsp://example.com/stream}
# Frame capture interval (in seconds)
# Default: 60 seconds = 1 frame per minute
- CYCLE_TIME=60
# Video output settings
# FPS for the final video (24 or 30 recommended)
- VIDEO_FPS=24
# Video quality (CRF: 18-28, lower = better quality, 23 is default)
- VIDEO_QUALITY=23
# Hours of real-time per video file (default: 24 hours)
# With 60s cycle: 24h = 1440 frames = 60s video at 24fps
- VIDEO_DURATION_HOURS=24
# Keep temporary frames after video creation (true/false)
- KEEP_TEMP_FRAMES=false
# Auto-migration settings
# Automatically migrate old PNG/JPG frames on first startup
- AUTO_MIGRATE=true
# Delete old PNG/JPG frames after successful migration
- DELETE_OLD_FRAMES=true
# Output directory inside container
- OUTPUT_DIR=/videos
volumes:
# Mount local directory to store videos
# CHANGE THIS to your desired path
- ${SCREENSHOT_PATH:-./videos}:/videos
# Optional: If your camera is on a specific network
# network_mode: host
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"