Giter Site home page Giter Site logo

autocut's Introduction

Autocut

I needed a way to make videos for my Calculus MOOC very quickly, and so I build the autocutter.

This tool takes a list of video files, listens to the audio to determine where I start and stop speaking, and builds an edit list suitable for MLT.

If you want help using it, please feel free to contact me.

Requirements

This is a python script packaged using setuptools. The numpy and librosa libraries are used. The python code also depends on MLT being installed.

Instructions

Here is a sample input file. Let's call it sample.xml

<?xml version="1.0" encoding="UTF-8"?>
<movie author="Jim Fowler">
  <video src="title.mp4" audio="intro.wav" in="0" out="3"/>
  <video src="welcome-to-the-course.mts"/>
  <video src="doing-work-on-paper.mts" flip="true"/>
  <video src="farewell-everybody.mts"/>
  <video src="end-title.mp4" audio="outro.wav" in="0" out="5"/>
</movie>

If you run autocut sample.xml you will get editlist.xml which you can then run through melt to produce a complete video.

The in and out timestamps are in seconds, relative to the given video file. If you don't include one of them, then the missing cutpoints are determined by listening for a human voice.

If you include a flip attribute, the video gets flipped.

If you include an audio tag, then the given audio file will play at the same time as the given video; the script creates the appropriate tractors and transitions to mix the audio in MLT.

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.