Skip to content
No description, website, or topics provided.
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
cropper

README.md

What it does

Cropper is a simple shell script (tested to work on both bash and zsh) which finds all video files within the current directory, and presents them to you in an ncurses TUI to then select, along with timestamps for you to input. It then creates a video file of the selected range, leaving the contents of the original file intact.

Usage:

Run cropper normally by entering cropper within a terminal, or pass any optional flags alongside it. Currently supported flags are:

  • -h to show help within the terminal
  • -l to list file extensions which cropper is looking for

Notes:

  • Cropper renames all files within the current directory which have spaces by replacing the spaces with underlines. For example, file name.mkv becomes file_name.mkv.

Customising:

As this is a shell script, simply add video/audio extensions which you want cropper to pick up within the code. This is done by appending a quoted file extension in the space seperated list filetypes_list within the source file.

The ffmpeg options are also customisable as you see fit, in particular for the 'accurate' option you may wish to change the -preset veryslow to some other value. See here for more details.

You can’t perform that action at this time.