diff --git a/README.md b/README.md index b996c02..dcc55ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -Ogg-Converter +Oga-Converter ============= -This is a quick script I wrote to convert my music library from MP3 to OGG. You can change this script to work for any audio/video format that is supported by ffmpeg (that's the tool that you'll need to run this script), however, you might have to change a few things in the code (for example, if you do .flac then you'll want to remove the last 5 characters, not the last 4). +This is a quick script I wrote to convert my music library from MP3 to OGA. You can change this script to work for any audio/video format that is supported by ffmpeg (that's the tool that you'll need to run this script), however, you might have to change a few things in the code (for example, if you do .flac then you'll want to remove the last 5 characters, not the last 4). ### Dependencies Please install ffmpeg in order to run this command and (if you like Apple screwing you in the arse) make sure that shit's in your path. diff --git a/ogg-converter.sh b/oga-converter.sh similarity index 83% rename from ogg-converter.sh rename to oga-converter.sh index 4a3c52c..7bb2ca3 100755 --- a/ogg-converter.sh +++ b/oga-converter.sh @@ -4,7 +4,7 @@ while true do - read -p "Should Ogg-Converter confirm each conversion? (y/n)" ANSWER + read -p "Should Oga-Converter confirm each conversion? (y/n)" ANSWER case $ANSWER in [yY]* ) CONFIRMATION=true break;; @@ -19,14 +19,14 @@ done for f in $@ do OUTFILE=${f:0:-4} - echo "Convert $f to $OUTFILE.ogg" + echo "Convert $f to $OUTFILE.oga" if $CONFIRMATION then while true do read -p "Do you wish to continue? (y/n) " ANSWER case $ANSWER in - [yY]* ) ffmpeg -loglevel warning -i $f $OUTFILE.ogg + [yY]* ) ffmpeg -loglevel warning -i $f $OUTFILE.oga break;; [nN]* ) echo "Skipped file $f" @@ -36,6 +36,6 @@ do esac done else - ffmpeg -loglevel warning -i $f $OUTFILE.ogg + ffmpeg -loglevel warning -i $f $OUTFILE.oga fi done