#!/usr/bin/env bash set -euo pipefail for i in *.mp3; do ffmpeg -i "$i" -c:a libopus "${i%.*}.opus"; done trash *.mp3