Git Product home page Git Product logo

jumpcutter's Introduction

jumpcutter

Trim videos by removing silent parts.

This is my own customization and improvements upon https://github.com/lamaun/jumpcutter/

Notes

  • Requires Python 3.
  • Requires ffmpeg in path. Will start several subprocesses that call ffmpeg.
  • Tested with hundreds of files ranging from a few megs (minutes) to gigabytes (hours).
  • As the program runs, it saves every frame of the video as an image file in a temporary folder. If your video is long, this could take a LOT of space.

Changes

  • Improved performance and memory use of original script (jumpcut_file.py).
  • Removed ability to speed-up video to improve performance (can always speed up during playback).
  • Changed temporary folder to be where the script is (instead of OS-specific temp).
  • Added another script to run in batch over a list of folders (jumpcutter.py that automatically calls jumpcut_file.py).

Usage

To run on a single video file:

python3 jumpcut_file.py -i input_file -o output_file [args]

To run on all video files within several directories:

python3 jumpcutter.py

The input paths as well as the command-line arguments to jumpcut_file.py are hard-coded in jumpcutter.py. Feel free to change that to forward command-line arguments to jumpcut_file.py.

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.