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 (-_-).
This commit is contained in:
Nicolás A. Ortega 2016-04-23 15:01:53 +02:00
parent 6df08119de
commit 10504d2180
No known key found for this signature in database
GPG Key ID: 4825F773B8D44EFF
2 changed files with 6 additions and 6 deletions

View File

@ -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 ### 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. 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.

View File

@ -4,7 +4,7 @@
while true while true
do 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 case $ANSWER in
[yY]* ) CONFIRMATION=true [yY]* ) CONFIRMATION=true
break;; break;;
@ -19,14 +19,14 @@ done
for f in $@ for f in $@
do do
OUTFILE=${f:0:-4} OUTFILE=${f:0:-4}
echo "Convert $f to $OUTFILE.ogg" echo "Convert $f to $OUTFILE.oga"
if $CONFIRMATION if $CONFIRMATION
then then
while true while true
do do
read -p "Do you wish to continue? (y/n) " ANSWER read -p "Do you wish to continue? (y/n) " ANSWER
case $ANSWER in case $ANSWER in
[yY]* ) ffmpeg -loglevel warning -i $f $OUTFILE.ogg [yY]* ) ffmpeg -loglevel warning -i $f $OUTFILE.oga
break;; break;;
[nN]* ) echo "Skipped file $f" [nN]* ) echo "Skipped file $f"
@ -36,6 +36,6 @@ do
esac esac
done done
else else
ffmpeg -loglevel warning -i $f $OUTFILE.ogg ffmpeg -loglevel warning -i $f $OUTFILE.oga
fi fi
done done