Skip to content

Commit

Permalink
added mp3 converter script
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Nov 8, 2021
1 parent 4246223 commit e373e12
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions convert_to_mp3.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

dir="$(cd $1 && pwd)"

for i in ${dir}/*.wav
do
echo ""
echo "> ${i}"
echo ""

ffmpeg -y -i "$i" "${i%.*}.mp3"
rm -f $i
done

open "${dir}"

0 comments on commit e373e12

Please sign in to comment.