From 10504d2180b640fd89960340a2f3a4f53f78a5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Sat, 23 Apr 2016 15:01:53 +0200 Subject: [PATCH] I'm going to say OGA. FFMpeg saw that some of my music files had the album cover in the id3 tag and thought it a good idea to turn it into an OGV (-_-). --- README.md | 4 ++-- ogg-converter.sh => oga-converter.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename ogg-converter.sh => oga-converter.sh (83%) 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