Basic template of a python repository
Project description
Skelly Synchronize
This package synchronizes a set of videos of the same event by cross-correlating their audio files. The videos will be synchronized so that they all start at the earliest shared time, and end at the latest shared time.
Install and Run
Skelly_synchronize can be installed through pip by running pip install skelly_synchronize
in your terminal. Once it has installed, it can be run with the command python -m skelly_synchronize
. While running, the GUI window may appear frozen, but the terminal should show the progress. Large videos may take a significant amount of time.
Skelly_synchronize currently depends on FFmpeg, a command line tool that handles the video files. If you do not have FFmpeg downloaded, you will need to install it separately. You can download FFmpeg here: https://ffmpeg.org/download.html
Video Requirements
The following requirements must be met for the script to function:
- Videos must have audio
- Videos must be in the same file format (default is ".mp4")
- Videos must have the exact same framerate (frames per second). There are often slight differences between brands/models of camera that lead to one camera's "60 fps" being different from another's. If your frame rates do not match, an error will be thrown.
- Videos must have the same audio sample rate. Most cameras record either 44100 or 48000 Hz, so there are not as much variation in audio sample rates as there are in video framerates.
- All videos in folder must have overlapping audio from the same real world event
Downsampling
If you video frame rates or audio sample rates do not match, it is possible to downsample them in a separate tool like VLC to have matching frame rates and sample rates. This must be done before trying to synchronize the videos using skelly_synchronize.
How to run from source
First clone this repository and pip install the requirements.txt
file.
Synchronize your videos by setting the path to your folder of raw videos and the file types of your videos into skelly_synchronize.py
, lines 343-344, then run the file.
The terminal output while running should look like this:
A SyncedVideos
folder will be created in the session folder and filled with the synchronized video files. The session folder will also have an AudioFiles
folder containing audio files of the raw videos, which are used in processing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file skelly_synchronize-2023.6.1019.tar.gz
.
File metadata
- Download URL: skelly_synchronize-2023.6.1019.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce542f94fbb9a4f2a8ab762a55b7e4e3407c13fc68c8cece661fd5ac065812b |
|
MD5 | 24e100ea94d370788a1015a3fb23b679 |
|
BLAKE2b-256 | e614007f1b49567b5bef279e100b684f10b145c2352722a1b0ef3af42e1ab02a |
File details
Details for the file skelly_synchronize-2023.6.1019-py3-none-any.whl
.
File metadata
- Download URL: skelly_synchronize-2023.6.1019-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae4a5ad3d43b390870cb6c444b3dcfa7df7b4e192b258e512bedc58b13d50bf |
|
MD5 | 32d3bab0f0f788621601a0502183bd20 |
|
BLAKE2b-256 | 8338f8ad23e6ccdf867cd0ca47beee690fba5994e19b2f2ba6321e24dedb5b3a |