m4aTomp3.sh
#!/bin/sh
# name of this script: m4a2mp3.sh
# m4a to mp3
for i in *.m4a; do
faad "$i"
x=`echo "$i"|sed -e 's/.m4a/.wav/'`
y=`echo "$i"|sed -e 's/.m4a/.mp3/'`
lame -h -b 192 "$x" "$y"
rm "$x"
done
convert shell
<iframe width="100%" height="434" src="https://snippet.echosystem.fr?embed=571a7859aba53" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 02/11/2021
wma2mp3.sh
#!/bin/bash
current_directory=$( pwd )
#remove spaces
for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done
#remove uppercase
for i in *.[Ww][Mm][Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done
#Rip with Mplayer / encode with LAME
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -waveheader $i && lame -m s audiodump.wav -o $i; done
#convert file names
for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done
rm audiodump.wav
convert shell
<iframe width="100%" height="506" src="https://snippet.echosystem.fr?embed=571a784635552" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 02/11/2021
## flac2mp3.sh
# Encode
# v0.1 17.08.08 - First created
# Darren O'Connor
# This script, when run in a folder full of FLAC files, will create high quality VBR mp3's for use in mp3 players.
# This version uses lame 3.98. If you use version 3.97 and below you'll need to change a few options
#!/bin/bash
mkdir wav/
flac -d *.flac
mv *.wav wav/
cd wav/
for f in *.wav; do mv "$f" "${f%.wav}";done
mkdir ../mp3/
find -maxdepth 1 -type f -name '*' -exec lame -V0 -q0 '{}' -o '../mp3/{}' \;
cd ../mp3/
for FILE in *; do mv "$FILE" "$FILE.mp3"; done
cd ../
rm -r wav/
##########
#Version2
##########
#!/bin/bash
for FILE in *.flac;
do
ffmpeg -i "$FILE" -ab 320k -map_metadata 0 "${FILE%.*}.mp3";
done
convert shell
<iframe width="100%" height="776" src="https://snippet.echosystem.fr?embed=571a781f4a8ac" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 02/11/2021