discordcompressor

command module
v0.0.0-...-c1ed9e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

README

DiscordCompressor

A small program in Go that efficiently compresses videos using FFmpeg to a certain filesize.

Dependencies

FFmpeg

Usage

discordcompressor <arguments> <input video(s)>

  • -o filename - Sets the output filename, extension is automatically added
  • -size 25 - Sets the target size in MB
  • -last 10 - Compresses the last x seconds of a video
  • -ss 15 - Sets the start time of the video in seconds
  • -t 10 - Sets the time to encode after the start of the file or -ss in seconds
  • -mixaudio - Mixes all audio tracks into one
  • -normaudio - Normalizes audio volume (use if the input video's audio is very quiet, loud or uneven)
  • -settings string - Selects the settings file if you have multiple, or generates a new one with the chosen suffix.
  • -debug - Shows extra information. Please use when reporting bugs, or if you're just curious.
  • -c:v - Forces a certain video encoder, specified in settings.json
  • -c:a - Forces a certain audio encoder, specified in settings.json
  • -f - Forces a certain container, for example, -f mkv will output a .mkv file.

Please check the wiki to get tips on how to make discordcompressor even more efficient without a performance penalty, or much faster. Settings and logs are located in %appdata%\vladaad\dc on Windows and ~/.config/vladaad/dc on Linux

Compiling from source

You need Go 1.16 or newer

Afterwards, run go build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL