#!/bin/bash for f in "$@"; do ffmpeg -i "$f" -c:a libopus -b:a 160k "${f%.*}.opus" done