shrinkit

Settings

settings.conf, the config command, every setting, and the banners.

settings.conf in the working folder holds the settings every run starts from. A preset and flags can go on top of it.

shrinkit config                          # the values in effect
shrinkit config crf 32                   # change one
shrinkit config edit                     # open settings.conf
shrinkit config folder                   # print the working folder
shrinkit config folder ~/Movies/clips    # use another folder

shrinkit config <setting> <value> refuses a value that does not fit, and keeps the file's comments. shrinkit config edit opens the file in your editor.

shrinkit config folder <path> copies settings.conf and the presets along when the old folder has a settings.conf and the new one has none. Recordings and results stay in the old folder. When the watcher is installed, shrinkit config folder runs shrinkit setup again for the new folder, which moves the watcher, the right-click entries and the Desktop link to it.

A working folder inside ~/Desktop, ~/Documents or ~/Downloads needs Full Disk Access. shrinkit setup prints the steps; until they are done, input/ is not processed.

Every setting

SettingDefaultTakesWhat it does
speed2a number above 0Playback speed. 2 is twice as fast, 1 leaves it.
fps300 to 240Frame rate of the result, after the speed-up. 0 keeps the recording's own frame rate.
crf280 to 51Quality. Lower is sharper and bigger, higher is smaller.
codech264h264, hevcThe video codec.
remove_audiotruetrue, falsetrue drops the sound. false keeps it, sped up to match.
max_height00 to 9999Scales a taller video down to this height, keeping its shape. 0 keeps the size.
keep_originaltruetrue, falseWatch folder: true moves the original to .processed/, false deletes it.
keep_days00 to 3650Watch folder: deletes originals from .processed/ after this many days. 0 keeps them.
notifytruetrue, falsePosts the banners below.
notify_soundGlassa sound name, or noneThe banners' sound.
notify_starttruetrue, falseAlso posts a banner, without sound, when a file starts.
copy_to_clipboardfalsetrue, falsePuts the finished file on the clipboard.

One key = value per line. A line starting with # is a comment; a # elsewhere is part of the value. A value that does not fit is replaced by its default, and a key that is not a setting is ignored; .logs/optimizer.log says so either way. Every setting is also a flag.

Banners

Every run reports through macOS notifications:

  • when a file starts: Optimizing… and its name
  • when it is done: its name and the size before and after
  • when it fails: Could not shrink and its name
  • when ffmpeg or ffprobe cannot be found, or the preset sets nothing

A merge posts Merging… when it starts, a banner when it is done, and one titled Could not merge when the join fails. An edit run posts one banner at the end.

notify = false turns all of them off. notify_start = false turns off the ones posted when a file or a merge starts.

On this page