dotfiles/.local/bin/scripts/opus

5 lines
135 B
Bash
Executable File

#!/bin/sh
# Convert given file to opus, requires opus-tools or ffmpeg
opusenc "$@" "${1%.*}.opus" ||
ffmpeg -i "$@" "${1%.*}.opus"