diff options
| author | ne_mene <[email protected]> | 2026-03-30 16:48:04 +0200 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-03-30 16:48:04 +0200 |
| commit | 6afe563f9df391b1e1594dfa5eae52b50c013ada (patch) | |
| tree | 26f211d1ec4f64d5b83cb13b2a73e292377acd84 /stereo2mono.sh | |
| parent | ec00a87eecf2471c86e7be456c4baab3695d188b (diff) | |
actually adding that this time
Diffstat (limited to 'stereo2mono.sh')
| -rwxr-xr-x | stereo2mono.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stereo2mono.sh b/stereo2mono.sh new file mode 100755 index 0000000..6020263 --- /dev/null +++ b/stereo2mono.sh @@ -0,0 +1,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 |
