1
0
Fork 0

Update 'flac2opus'

This commit is contained in:
MGislv 2022-09-03 16:35:30 +00:00
parent f8e8d7894c
commit 6d71ff1359
1 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@ if [[ -z "$BITRATE" ]]; then
fi
read -p 'Gain db: ' GAIN
if [[ -z "$GAIN" ]]; then
GAIN='-2'
GAIN=-2
fi
mkdir -p opus
for i in ./*.flac; do
sox -V "$i" -t flac --comment '' - gain $GAIN rate -v 48000 | opusenc --bitrate $BITRATE \
- "./opus/${i/%flac/ogg}"
for file in ./*.flac; do
sox -V "$file" -t flac - gain $GAIN rate -v 48000 | opusenc --bitrate $BITRATE \
- "./opus/${file/%flac/ogg}"
done