#!/usr/bin/env bash set -euo pipefail for file in ./*.$1; do echo "ffmpeg -i '$file' -c:a copy -map 0:0 '../reencode/$file'"; ffmpeg -i "$file" -c:a copy -map 0:0 "../reencode/$file"; done