GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Oran2009/audiosync-cmd: python command line tool to automatically sync matching video and audio files

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
audiosync.py
audiosync.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

audiosync-cmd

This tool automatically syncs matching video and audio files using recurrence quantification analysis (RQA). The tool allows you to adjust the sampling rate, hop length, and ftt window size so you can achieve near-perfect synchronization.

At the start of this project, I used dynamic time warping (DTW) instead of recurrence quantification analysis (RQA) to synchronize the two audio tracks. This method seemed efficient for my purposes, but didn't achieve near-perfect synchronization on some tests. This led me to implement RQA, which maximizes alignment paths and relies on similarity rather than distance.

More information on RQA can be discovered here on Wikipedia, and a similar project has been documented on this pdf

setup

Python 2

pip install -r requirements.txt

Python 3

pip3 install -r requirements.txt

usage

use the help command

python audiosync.py --help

arguments

required

-v, --video | path to video file

-a, --audio | path to audio file

-o, --output | path to output file

optional

-f, --fft | fft window size | recommended to be a power of 2 | default: 4410

-hl, --hoplength | hop length | the number of samples between successive frames | default: 512

-sr, --samplingrate | sampling rate in Hz | Most applications use 44.1kHz | default: 44100Hz

-d, --duration | duration to check for offsets | default: 120 seconds

About

python command line tool to automatically sync matching video and audio files

Resources

Readme
GPL-3.0 license
Activity

Stars

9 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.