Skip to content

Instantly share code, notes, and snippets.

@bepcyc
Last active March 28, 2016 13:34
Show Gist options
  • Save bepcyc/2ce949993119b4143117 to your computer and use it in GitHub Desktop.
Save bepcyc/2ce949993119b4143117 to your computer and use it in GitHub Desktop.
Encode FLAC (also WAV or AIFF) audio into OPUS format saving maximum possible quality.
#!/usr/bin/env bash
# USAGE: opus_encoding_4quality.sh input_file.flac
INPUT_FILE="${1}"
opusenc --bitrate 512 --vbr --comp 10 --framesize 60 "${INPUT_FILE}" "${INPUT_FILE%.*}.opus"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment