changed script
This commit is contained in:
parent
0aa085ecb2
commit
6346ce6636
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
#ffmpeg -i file.mp3 -af "volumedetect" -vn -sn -dn -f null /dev/null 2>&1 | grep "max_volume" | tr -s ' ' '\n' | tail -n 2 | head -n 1
|
|
||||||
|
|
||||||
for i in *.m4a
|
for i in *.m4a
|
||||||
do
|
do
|
||||||
|
|
||||||
@ -21,10 +18,10 @@ dbvaluechanged=$(echo $dbvalue | cut -c 2-)
|
|||||||
|
|
||||||
echo 'change '$dbvaluechanged'db'
|
echo 'change '$dbvaluechanged'db'
|
||||||
|
|
||||||
#ffmpeg -i "$i" -af 'volume='$dbvaluechanged'dB' "new_$i" 2> /dev/null
|
ffmpeg -i "$i" -af 'volume='$dbvaluechanged'dB' "new_$i" 2> /dev/null
|
||||||
#rm "$i"
|
rm "$i"
|
||||||
#mv "new_$i" "$i"
|
mv "new_$i" "$i"
|
||||||
#echo "replaced old file..."
|
echo "replaced old file..."
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user