blob: 602026302303f6e2e2a755bc9efc521b47df3301 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
find res/sound/ -type f \( -name "*.mp3" -o -name "*.wav" -o -name "*.ogg" \) -print0 |
while IFS= read -r -d '' file; do
out="res/mono/${file#res/sound/}"
out="${out%.*}.ogg"
mkdir -p "$(dirname "$out")"
ffmpeg -i "$file" -ac 1 "$out"
done
|