Coder Social home page Coder Social logo

uwcrop's Introduction

UltraWideCrop

Quick script to crop videos from 2560x1080 -> 1920x1080. Basically removes blackbars on the sides. I use this to make my VALORANT clips viewable on 16:9 monitors without blackbars on all sides.

Note: This requires ffmpeg to be installed and in PATH

Usage

This takes 1 positional command-line argument which is the file path to the video to crop, along with several optional arguments.

Optional command-line args:

  • -t --trim to specify a start time to trim clip from
  • -e --end --to to specify end time to trim clip from. (--end and --duration are mutually exclusive)
  • -d --duration to specify the total duration of the clip to trim. (--end and --duration are mutually exclusive)
  • -n --name to specify the output filename. Defaults to {filename}_cropped.mp4
  • -l --local to specify whether the output should be in the current directory

Audio Options:

These options are all mutually exclusive and optional. Omit all of them to combine both audio tracks. Some options are not available if the input file only has 1 audio track.

  • -m --mute to specify whether the output should be muted
  • -nm --nomic to specify whether to exclude the mic input audio track
  • -pt --preservetrack -2t --2track to preserve the 2 separate audio tracks

uwcrop's People

Contributors

willy-c 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.