3
0
mirror of https://github.com/NekoMonci12/mine-compress.git synced 2025-12-19 15:09:20 +00:00

Change OGG Compression Method

This commit is contained in:
Muhammad Tamir
2025-07-08 19:04:48 +07:00
parent caa91a8239
commit 59e5802ee6

View File

@@ -149,7 +149,7 @@ jobs:
for file in "${FILES[@]}"; do for file in "${FILES[@]}"; do
((i++)) ((i++))
{ printf "\r[%4d/%4d] %s" "$i" "$TOTAL" "$(basename "$file")"; } || true { printf "\r[%4d/%4d] %s" "$i" "$TOTAL" "$(basename "$file")"; } || true
ffmpeg -v error -y -i "$file" -ac 1 -ab 64k "${file}.tmp.ogg" > /dev/null 2>&1 || true ffmpeg -v error -y -i "$file" -c:a libvorbis -qscale:a 3 "${file}.tmp.ogg" > /dev/null 2>&1 || true
if [[ -f "${file}.tmp.ogg" ]]; then if [[ -f "${file}.tmp.ogg" ]]; then
mv -f "${file}.tmp.ogg" "$file" mv -f "${file}.tmp.ogg" "$file"
fi fi