17 lines
No EOL
491 B
Bash
Executable file
17 lines
No EOL
491 B
Bash
Executable file
#!/bin/bash
|
|
shopt -s dotglob
|
|
for j in {1..10}; do
|
|
for i in *; do
|
|
new=$(echo "$i" | sed -e s#\(#-#)
|
|
new=$(echo "$new" | sed -e s#\)#-#)
|
|
new=$(echo "$new" | sed -e s#" "#_#)
|
|
new=$(echo "$new" | sed -e s#\'##)
|
|
mv "$i" "$new"
|
|
done
|
|
done
|
|
|
|
currdir=$(pwd)
|
|
for i in *.wav; do
|
|
new=$(echo "$i" | sed -e s#wav#mp3#)
|
|
vlc -I dummy file://$currdir/$i ":sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=file{no-overwrite},mux=mp3,dst=$new}" vlc://quit
|
|
done |