Giter Club home page Giter Club logo

filmio's Introduction

Effortless Video/Audio Syncing

If you're a filmmaker, videographer, or hobbyist who records their video and audio separately, then this is the tool for you!

This nifty utility will create a copy of each of your video files, where the audio is replaced with the separately recorded track at the correct time. It does this by comparing the audio tracks of each video file with the external audio files, and will pick the best match for each. The audio is trimmed, gained to its highest possible volume, and patched onto a new copy of the video. It will be as if the recording was done on a single device!

Installation

Usage

Launch the GUI

If you're on Mac, you can launch the GUI by double clicking filmio/filmio.command.
This is just a shortcut that is equivalent to running python3 -m filmio --gui on the command line.

Command Line Arguments

-h, --help          show this help message and exit
--gui               Use a GUI instead of command line to configure the run
-v, --verbose       Print extra information while executing.
-d SRC_DIR, --src_dir SRC_DIR
                    Directory to search for source files. Default is the
                    current directory.
-o OUT_DIR, --out_dir OUT_DIR
                    Directory to place output files. Default is subdir of
                    the current directory "./Fixed"
-m {gain_calc,louden,extract_vid_audio,match,patch}, --mode {gain_calc,louden,extract_vid_audio,match,patch}
-g GAIN, --gain GAIN  Provide a gain to use on the audio files rather than
                    calculating one. If 1 is given, will not attempt to
                    modify audio file volume.
-f [FILES [FILES ...]], --files [FILES [FILES ...]]
                    Perform operations only on the provided files, rather
                    than searching the source directory.

Modes Explained

  • gain_calc - Calculate the maximum value that the volume of the source audio files can be multiplied by. The scalar is chosen such that ALL source audio files can be multiplied by the scalar without peaking. No files will be created by this option, but multiplying all source audio files by this scalar will ensure that none of the resulting files will peak.
  • louden - Make a copy of each source audio file, where the volume is scaled by the maximum possible volume, unless -g is provided.
  • match - Find the best matching audio files, with start/stop times, for each video file.
  • patch - Create a copy of each video file, with the audio replaced with its best match after being optimally gained.

References

Starting point for the implementation: http://www.dsg-bielefeld.de/dsg_wp/wp-content/uploads/2014/10/video_syncing_fun.pdf

Praat: https://www.fon.hum.uva.nl/praat/

filmio's People

Contributors

alexscarlatos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.