Overview
Theconfig.py module contains all configuration settings and directory paths used throughout the video synchronization project.
Configuration Variables
Synchronization Method
Synchronization method to use. Options:
"visual": Motion-based synchronization"audio": GCC-PHAT audio-based synchronization
Directory Paths
Base temporary directory for all processing files. Defaults to system temp directory +
/video_synchronization.Automatically set using:Absolute path to the project root directory (where
main.py is located).Automatically set using:Directory for raw uploaded video files.Path:
{TEMP_BASE}/rawDirectory for synchronized output videos.Path:
{TEMP_BASE}/syncedDirectory for extracted audio files (used in audio sync mode).Path:
{TEMP_BASE}/audioDirectory for visual sync debug output files.Path:
{TEMP_BASE}/visual_sync_debugDirectory for sync indicator images (persists across sessions).Path:
{PROJECT_ROOT}/resultsDirectory Initialization
All directories are automatically created on module import withexist_ok=True: