skelly-synchronize


Nameskelly-synchronize JSON
Version 2023.12.1029 PyPI version JSON
download
home_page
SummaryBasic template of a python repository
upload_time2023-12-11 23:08:20
maintainer
docs_urlNone
author
requires_python>=3.9,<3.12
license
keywords basic template python repository
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Skelly Synchronize

Skelly Synchronize is a package for synchronizing videos post-recording, without the need for timestamps. There are multiple options for synchronizing videos, including cross correlation of the audio files and contrast checking of the video brightness. 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

<img width="598" alt="Screen Shot 2023-10-10 at 9 51 11 AM" src="https://github.com/freemocap/skelly_synchronize/assets/24758117/2c34a076-90d9-4d8f-bd3a-5b4649586d8c">


# Using Skelly Synchronize

Once you have the GUI open, choose a folder of raw videos that you would like to synchronize. The videos must overlap in time to be able to be synchronized. The software currently works with `mp4`, `mkv`, `avi`, `mpeg`, and `mov` files. Once the folder of videos has been selected, you can press the button for the synchronization method you would like to run. The synchronized videos will be placed in a folder called "synchronized_videos" that will be in the same directory as the folder of raw videos.

For **audio synchronization**, videos must all have audio tracks. Synchronization will work better if there are short, distinct sounds audible from each camera, for example a loud clap.

For **brightness synchronization**, there must be a quick increase in brightness across all of the video files. This method requires a significant brightness change visible to all cameras, for example turning on a bright light or firing a flash visible to all cameras. The synchronization will be based off of the first brightness change in each video that crosses a threshold. You can set the brightness ratio threshold in the gui before synchronizing. The threshold takes into account both the brightness contrast compared to the preceding frame, and the rate of change of brightness contrast. It may take multiple tries with different brightness ratio thresholds to get proper synchronization, although the default should work in most cases.

## Additional Files

Skelly synchronize will create a variety of additional files during synchronization, depending on what synchronization method is used and what preprocessing steps are required for your videos.

Two debug files will always be created. The first, `debug_plot.png`, shows a visualization of the videos pre and post synchronization to give visual confirmation of the synchronization process. The second, `synchronization_debug.toml`, gives information on both the raw and synchronized videos, and provides the lag dictionary, which shows the offsets in seconds between the start of each raw video and the first moment all videos recorded.

Videos that do not have the same framerate (and audio files that do not have the same sample rate) will be normalized to have matching framerates, which will create a "normalized_videos" folder inside of the raw videos folder that has normalized copies of the original videos. 

Audio synchronization will place the extracted audio files into the synchronized video folder. Brightness synching will place numpy files containing the brightness of the videos across time in both the raw and synchronized video folders.


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "skelly-synchronize",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<3.12",
    "maintainer_email": "",
    "keywords": "basic,template,python,repository",
    "author": "",
    "author_email": "skelly_synchronize <info@freemocap.org>",
    "download_url": "https://files.pythonhosted.org/packages/49/2f/fd17c30fa4c37a693a844cc0f82042c448aacb2b6a0b453de12fff0dadc0/skelly_synchronize-2023.12.1029.tar.gz",
    "platform": null,
    "description": "# Skelly Synchronize\n\nSkelly Synchronize is a package for synchronizing videos post-recording, without the need for timestamps. There are multiple options for synchronizing videos, including cross correlation of the audio files and contrast checking of the video brightness. The videos will be synchronized so that they all start at the earliest shared time, and end at the latest shared time. \n\n# Install and Run\n\nSkelly_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`. \n\nWhile running, the GUI window may appear frozen, but the terminal should show the progress. Large videos may take a significant amount of time. \n\nSkelly_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\n\n<img width=\"598\" alt=\"Screen Shot 2023-10-10 at 9 51 11 AM\" src=\"https://github.com/freemocap/skelly_synchronize/assets/24758117/2c34a076-90d9-4d8f-bd3a-5b4649586d8c\">\n\n\n# Using Skelly Synchronize\n\nOnce you have the GUI open, choose a folder of raw videos that you would like to synchronize. The videos must overlap in time to be able to be synchronized. The software currently works with `mp4`, `mkv`, `avi`, `mpeg`, and `mov` files. Once the folder of videos has been selected, you can press the button for the synchronization method you would like to run. The synchronized videos will be placed in a folder called \"synchronized_videos\" that will be in the same directory as the folder of raw videos.\n\nFor **audio synchronization**, videos must all have audio tracks. Synchronization will work better if there are short, distinct sounds audible from each camera, for example a loud clap.\n\nFor **brightness synchronization**, there must be a quick increase in brightness across all of the video files. This method requires a significant brightness change visible to all cameras, for example turning on a bright light or firing a flash visible to all cameras. The synchronization will be based off of the first brightness change in each video that crosses a threshold. You can set the brightness ratio threshold in the gui before synchronizing. The threshold takes into account both the brightness contrast compared to the preceding frame, and the rate of change of brightness contrast. It may take multiple tries with different brightness ratio thresholds to get proper synchronization, although the default should work in most cases.\n\n## Additional Files\n\nSkelly synchronize will create a variety of additional files during synchronization, depending on what synchronization method is used and what preprocessing steps are required for your videos.\n\nTwo debug files will always be created. The first, `debug_plot.png`, shows a visualization of the videos pre and post synchronization to give visual confirmation of the synchronization process. The second, `synchronization_debug.toml`, gives information on both the raw and synchronized videos, and provides the lag dictionary, which shows the offsets in seconds between the start of each raw video and the first moment all videos recorded.\n\nVideos that do not have the same framerate (and audio files that do not have the same sample rate) will be normalized to have matching framerates, which will create a \"normalized_videos\" folder inside of the raw videos folder that has normalized copies of the original videos. \n\nAudio synchronization will place the extracted audio files into the synchronized video folder. Brightness synching will place numpy files containing the brightness of the videos across time in both the raw and synchronized video folders.\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Basic template of a python repository",
    "version": "2023.12.1029",
    "project_urls": null,
    "split_keywords": [
        "basic",
        "template",
        "python",
        "repository"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d8b519a5941ff56ee16595cf7be6322dae9e9481b1fb401b0031801cb408ad04",
                "md5": "40439220538ebcc4559a0b0e7442ece9",
                "sha256": "fd6f93f942a9ee2480aebe542f539b73d24209320fc7828ffdd15abd437bd1a2"
            },
            "downloads": -1,
            "filename": "skelly_synchronize-2023.12.1029-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "40439220538ebcc4559a0b0e7442ece9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<3.12",
            "size": 40341,
            "upload_time": "2023-12-11T23:08:16",
            "upload_time_iso_8601": "2023-12-11T23:08:16.937107Z",
            "url": "https://files.pythonhosted.org/packages/d8/b5/19a5941ff56ee16595cf7be6322dae9e9481b1fb401b0031801cb408ad04/skelly_synchronize-2023.12.1029-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "492ffd17c30fa4c37a693a844cc0f82042c448aacb2b6a0b453de12fff0dadc0",
                "md5": "526e031e3fcfb4d3b0f1d81fb29405a9",
                "sha256": "3c57d6eeae16db76023f9ba65084e01181f15278d7fb2b89e30ff8863c59550c"
            },
            "downloads": -1,
            "filename": "skelly_synchronize-2023.12.1029.tar.gz",
            "has_sig": false,
            "md5_digest": "526e031e3fcfb4d3b0f1d81fb29405a9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<3.12",
            "size": 33494,
            "upload_time": "2023-12-11T23:08:20",
            "upload_time_iso_8601": "2023-12-11T23:08:20.102572Z",
            "url": "https://files.pythonhosted.org/packages/49/2f/fd17c30fa4c37a693a844cc0f82042c448aacb2b6a0b453de12fff0dadc0/skelly_synchronize-2023.12.1029.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-11 23:08:20",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "skelly-synchronize"
}
        
Elapsed time: 0.16530s