A Python-based tool for processing and extracting frames from UniFi Protect camera recordings.
Stream2Frame is designed to process .ubv video files from UniFi Protect cameras, convert them to MP4 format, extract frames at specified intervals, and transfer the processed data to a remote server.
- Converts UniFi Protect .ubv files to MP4 format
- Extracts frames at 2-minute intervals
- Generates synchronized CSV files with frame timestamps
- Creates a consolidated video files
- Transfers processed data to a remote server
- Automatic cleanup of processed files
- Create and edit
config/utils/cams.yaml
to define your cameras:
CameraName: MAC_ADDRESS
- Configure the Hydra settings in the config directory for:
- Source and destination directories
- Remote server settings
- Processing parameters
- Run the main processing script:
./scripts/main_wrapper.sh
- For manual execution with specific dates:
python src/main.py NVR.year=YYYY NVR.month=MM NVR.day=DD
- Clean up processed files:
# Run delete_files.sh periodically to clean up processed files and maintain storage space.
./src/delete_files.sh