Created
October 28, 2016 03:49
-
-
Save jeetparikh/97cd4dd9e6a5d5596b48dfee5cea9ae3 to your computer and use it in GitHub Desktop.
Convert Audio - mp3 to ogg - usually required when embedding audio to play in browsers
This file contains 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 f in *.mp3; do echo "$f"; avconv -i "$f" -c:a libvorbis -q:a 4 -threads 6 "${f%.*}.ogg"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Loops through all the .mp3 files in the directory and creates an output file in the .ogg format with the same name