Giter Club home page Giter Club logo

quicktrimmer's Introduction

TrimmerTool

A simplistic clip trimmer designed for automating the annoying task. Better than Pickleknotts' version, guaranteed.

Notes

This program is WINDOWS ONLY. This program requires FFMPEG to be installed and in the PATH environment.

Command line

Usage

program [input_video] [output_video] [-time=X-Y]
If no parameters are given, the values will be considered empty.

Parameter Description
input_video Optional. The video path of the file to clip. If not provided, it will ask.
output_video Optional. The video path of the file to save to. If not provided, it will ask.
-time=X-Y Optional. The time to clip to (X) and from (Y). If Y is not provided, it will assume the end of the clip.

Examples

# Clip the video to the times between 5 and 10. A 5 second clip.
program "C:\My Clips\My Video.mp4" "%dir%\%file_name% - Trimmed.%ext%" -time5-10

# Clip the video only 15 seconds in. Meaning the first 15 seconds of the clip are removed.
program "C:\My Clips\My Video.mp4" "%dir%\%file_name% - Trimmed.%ext%" -time15

Custom Variables

For output file variables:

Variable Replaceable? Description Example Value
file_name false The name of the file. My Video.mp4
dir false The directory of the file. C:\My Clips
ext false The extension of the file. mp4
name_no_ext false The name of the file without the extension. My Video
drive false The drive the file is in. C:
date false The current date (yyyy-MM-dd). 2022-12-31
time false The current time (HH-mm-ss). 14-59-59
date_time false The current date and time (yyyy-MM-dd HH-mm-ss). 2022-12-31 14-59-59
now false The current date and time without the fanciness (YYYYMMDDHH24MISS). 20221231145959
now_utc false The current Coordinated Universal Time (YYYYMMDDHH24MISS). 20221231145959
rand false A random number between 0 and 100. 34
username true The username set on this computer. George
documents true The current user's documents folder. C:\Users\%username%\Documents
appdata true The current user's appdata folder. C:\Users\%username%\Appdata\Roaming
desktop true The current user's desktop folder. C:\Users\%username%\Desktop

Custom variables can be put in the Custom Variables text file. For example:

# Steam path.
steam_path = D:\Steam

# Clips folder.
clips = C:\Users\%username%\Videos\Captures

# TF2 and CSGO path.
tf_path = %steam_path%\steamapps\common\Team Fortress 2
csgo_path = %steam_path%\steamapps\common\Counter Strike Global Offensive

# The username I wanna use.
username = JoeSmith

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.