Update config/app_config.py
Browse files- config/app_config.py +8 -6
config/app_config.py
CHANGED
|
@@ -52,12 +52,14 @@ class ProcessingConfig:
|
|
| 52 |
mask_blur_radius: int = int(os.getenv('MASK_BLUR_RADIUS', '5'))
|
| 53 |
confidence_threshold: float = float(os.getenv('CONFIDENCE_THRESHOLD', '0.85'))
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
| 61 |
|
| 62 |
# Cache settings
|
| 63 |
model_cache_dir: str = os.getenv('MODEL_CACHE_DIR', 'models/cache')
|
|
|
|
| 52 |
mask_blur_radius: int = int(os.getenv('MASK_BLUR_RADIUS', '5'))
|
| 53 |
confidence_threshold: float = float(os.getenv('CONFIDENCE_THRESHOLD', '0.85'))
|
| 54 |
|
| 55 |
+
# Output settings
|
| 56 |
+
output_dir: str = os.getenv('OUTPUT_DIR', 'outputs')
|
| 57 |
+
output_format: str = os.getenv('OUTPUT_FORMAT', 'mp4')
|
| 58 |
+
output_quality: str = os.getenv('OUTPUT_QUALITY', 'high') # low, medium, high
|
| 59 |
+
output_codec: str = os.getenv('OUTPUT_CODEC', 'h264')
|
| 60 |
+
write_fps: Optional[float] = None # Add this line
|
| 61 |
+
preserve_audio: bool = os.getenv('PRESERVE_AUDIO', 'true').lower() == 'true'
|
| 62 |
+
|
| 63 |
|
| 64 |
# Cache settings
|
| 65 |
model_cache_dir: str = os.getenv('MODEL_CACHE_DIR', 'models/cache')
|