Skip to content

Instantly share code, notes, and snippets.

@tjarrett
Created November 13, 2016 03:10
Show Gist options
  • Save tjarrett/39d4eb53aa73586c86ccf4d1faa80b37 to your computer and use it in GitHub Desktop.
Save tjarrett/39d4eb53aa73586c86ccf4d1faa80b37 to your computer and use it in GitHub Desktop.
ogg2m4r Convert all ogg files in a directory to ringtones
#!/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