GithubHelp home page GithubHelp logo

smick / video-squisher Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2 KB

"Video Squisher: A Python script to effortlessly adjust the duration of your videos using FFmpeg. Squish your video files to a target duration while keeping the audio in sync, perfect for youtube shorts.

Python 100.00%

video-squisher's Introduction

Video Squisher

This Python script uses FFmpeg to squish a video to fit a specified duration while keeping the audio in sync. The output video file will be created in the same folder as the input file with _squish added to the end of the file name.

Requirements

  • Python 3.6 or higher
  • FFmpeg

Installation

  1. Install Python 3.6 or higher, if not already installed.
  2. Install FFmpeg on your system. Follow the installation instructions on the official FFmpeg website. If you're on OS X you can use brew brew install ffmpeg.

Usage

To use the script, open a terminal, navigate to the directory containing the squish_video.py script, and run the following command:

python squish_video.py <input_file> <target_duration>

Replace <input_file> with the path to the video file you want to squish, and <target_duration> with the desired duration in seconds.

For example:

python squish_video.py "/aliens/took/my/laptop/videos/SquirrelNinjaAcademy.mp4" 59

This command will take the input video file, squish it to fit the 59-second duration, and save the result as a new file with _squish added to the end of the file name. The output video will have audio that is in sync with the adjusted video speed.

License

This project is open source and available under the MIT License.

video-squisher's People

Contributors

smick avatar

Stargazers

 avatar

Watchers

 avatar  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.