initial commit

This commit is contained in:
2018-08-28 13:50:46 +03:00
commit e70d6063e5
9 changed files with 226 additions and 0 deletions

18
mp3_resample.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
IFS=$'\n'
list=$(find "${1}" -iname "*mp3")
resample()
{
echo "${i}"
bitrate=$(mp3info -r a -p "%r" "${i}"|sed 's/\..*$//')
ffmpeg -i "${i}" -b:a "${bitrate}k" "${i}.mp3"
mv "${i}.mp3" "${i}"
echo "${i}.mp3"
}
for i in ${list} ; do
resample "${i}"
done