cac

command module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

README

convenient audio converter Go Reference Go Report Card

cac is a command line tool to convert audio files using ffmpeg.

Install

$ go install github.com/vanillaiice/cac@latest

Usage

# convert all opus files in a directory to mp3 to the 'converted' folder
$ cac --dir ~/Music --sources ".opus" --target ".mp3" -out-dir converted --create-out-dir

Help

NAME:
   cac - conveniently convert audio files using ffmpeg

USAGE:
   cac [global options]

VERSION:
   v0.2.0

AUTHOR:
   vanillaiice

GLOBAL OPTIONS:
   --command string                                             ffmpeg convert command with Go template placeholders (default: "ffmpeg -y -i \"{{ .InputFile }}\" \"{{ .OutputFile }}\"")
   --dir DIRECTORY, -d DIRECTORY                                convert files in DIRECTORY
   --files FILES, -f FILES [ --files FILES, -f FILES ]          convert FILES
   --target string, -t string                                   convert files to target extension (default: ".mp3")
   --except string, -e string [ --except string, -e string ]    do not convert files with specified extensions
   --sources string, -s string [ --sources string, -s string ]  convert files with specified extensions
   --out-dir string, -o string                                  output directory of processed files (default: ".")
   --create-out-dir, -c                                         create output directory if it does not exist (default: false)
   --delete, -D                                                 delete original files after converting/moving (default: false)
   --quiet, -q                                                  only show error logs (default: false)
   --help, -h                                                   show help
   --version, -v                                                print the version

Author

vanillaiice

License

GPLv3

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