Skip to content

vanillaiice/cac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.2

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 (only applicable with --dir flag)
   --sources string, -s string [ --sources string, -s string ]  convert files with specified extensions (only applicable with --dir flag, takes precedence over --except flag)
   --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 processing (default: false)
   --quiet, -q                                                  only show error logs (default: false)
   --help, -h                                                   show help
   --version, -v                                                print the version

Author

vanillaiice

License

GPLv3

About

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

Resources

License

Stars

Watchers

Forks

Languages