video-query/backend/.env.example
2025-11-27 02:48:15 +05:30

57 lines
2.4 KiB
Text

# Google Gemini API Key (REQUIRED)
GOOGLE_API_KEY=AIzaSyBF3Ia1nVS4PLuLpWt-85ct_heJ7FrlvkQ
# =============================================================================
# VIDEO PROCESSING CONFIGURATION
# =============================================================================
# Video Splitting Configuration
# Maximum duration per chunk in minutes (default: 53)
# Videos longer than this will be split into multiple chunks for processing
# Gemini API limits: ~55 min with audio, ~60 min without audio
CHUNK_DURATION_MINUTES=53
# Variable Bitrate (VBR) Safety Margin (default: 1.30)
# Adds 30% safety margin to account for bitrate variance in videos
# Higher values = more conservative splitting, safer for VBR videos
# Lower values = fewer chunks, but risk of oversized chunks
# Recommended: 1.25-1.35 (25%-35% margin)
VBR_SAFETY_MARGIN=1.30
# Base64 API Limit in MB (default: 1000)
# Maximum size of base64-encoded video in API request
# Gemini API limit: 1000MB (1GB) for inline base64 requests
# Do not change unless API limits change
BASE64_API_LIMIT_MB=1000
# Parallel Processing Configuration
# Maximum number of video chunks to process concurrently (default: 4)
# Higher values = faster processing but more API load
# Recommended: 4-10 for paid tier with high rate limits
MAX_PARALLEL_CHUNKS=4
# =============================================================================
# MODEL CONFIGURATION (Optional)
# =============================================================================
# Specify which Gemini model to use for video processing and synthesis
# Default: gemini-2.5-pro for both (ensures consistency)
VIDEO_PROCESSOR_MODEL=gemini-2.5-pro
VIDEO_SYNTHESIS_MODEL=gemini-2.5-pro
# =============================================================================
# BATCH PROCESSING LOGGING (Optional)
# =============================================================================
# Enable detailed logging for batch processing operations
# Useful for debugging and understanding how videos are processed
# Default: false (to reduce log volume)
# Enable logging of prompts sent to AI for each video/chunk
# Shows exactly what prompt was used for each video in batch
BATCH_PROCESSING_LOG_PROMPTS=false
# Enable logging of summary previews (first 300 chars)
# Shows what summary each video/chunk generated
BATCH_PROCESSING_LOG_SUMMARIES=false
# Note: When both are enabled, logs will be at DEBUG level
# Use journalctl -u video-query -f | grep "Batch" to filter batch logs