Created
November 13, 2016 03:10
-
-
Save tjarrett/39d4eb53aa73586c86ccf4d1faa80b37 to your computer and use it in GitHub Desktop.
ogg2m4r Convert all ogg files in a directory to ringtones
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in *.ogg ; do | |
FILE="$(basename "${i/.ogg}")" | |
ffmpeg -i $FILE.ogg -y $FILE.m4a | |
mv $FILE.m4a $FILE.m4r | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment