sync/scripts/reencode_audio.sh

8 lines
196 B
Bash
Executable File

#!/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