Coder Social home page Coder Social logo

auto-editor's Introduction

Build Status   version 20w29b

Auto-Editor is a command line application for automatically editing video or audio by removing the silent parts.

New in 20w29b!

  • --preview how displays the correct duration for the new output.
  • Auto-Editor now works even when running the script in a different working directory.
  • The --debug and --verbose commands have been combined. Both now do the same thing.
  • The macOS binaries have been compressed in the 7zip format and should be extracted with Archive Utility.

Important! pip3 install audiotsm2

See the Changelog for all the differences between releases.

Usage

Create an edited version of example.mp4 with the default parameters.

 $ python auto-editor.py example.mp4

You can change the pace of a video by changing by including frames that are silent but are next to loud parts. A frame margin of 8 will add up to 8 frames before and 8 frames after the loud part.

 $ python auto-editor.py example.mp4 --frame_margin 8

There are many more features in auto-editor, including adding in background music that automatically gets quieter, and zooming in the video when it gets especially loud.

Installing Auto-Editor

Download and Install the Latest Version of Python 3.

Download Auto-Editor.

Open the ZIP file.

Open Your Console. (Command Prompt on Windows, Terminal on MacOS)

Type in the Console, cd then hit the spacebar.

Drag the folder, "auto-editor-master", to your Console. Let go of the mouse button, then hit enter.

Run pip3 install -r requirements.txt

The binaries you'll need are already installed, unless you're using Linux. Linux users need to run this command. sudo apt-get install libavformat-dev libavfilter-dev libavdevice-dev ffmpeg

(If you would like to use your own ffmpeg, add the flag --my_ffmpeg when using auto-editor)

Now run it with the example video to make sure it is working.

python3 auto-editor.py example.mp4

If that works then congratulations, you have successfully installed auto-editor. You can use now use this with any other type of video or audio that you have.

python3 auto-editor.py C:path\to\your\video

See the docs for more commands and usages.

Contributing

The best way to contribute is to fork auto-editor and make changes there. Once you're happy with those changes, make a new pull request and type in a brief description on how you improved the code.

No change is too small whether that be a typo in the docs or a small improvement of code.

Licensing

Original code in auto-editor is under the MIT License

The FFmpeg binaries are under the LGPL License

wavfile.py is under the BSD 3-Clause "New" or "Revised" License

Help or Issues

If you have a bug or a code suggestion, you can create a new issue on this github page. If you'll like to discuss this project, suggest new features, or chat with other users, do that in the discord server.

auto-editor's People

Contributors

m-rey avatar mlinaje avatar wyattblue avatar wyattboothe avatar

Watchers

 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.