Created
October 10, 2011 16:10
-
-
Save worldeggplant/1275706 to your computer and use it in GitHub Desktop.
transcode/convert wav mp3 ogg
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
# convert all .wav files to ogg/vorbis | |
for x in *.wav; do ffmpeg -i "$x" "`basename "$x" .wav`.ogg" -acodec vorbis; done | |
# convert all .mp3 files to ogg/vorbis | |
for x in *.mp3; do ffmpeg -i "$x" "`basename "$x" .mp3`.ogg" -acodec vorbis; done | |
#convert all .wav files to .mp3 | |
for x in *.wav; do ffmpeg -i "$x" "`basename "$x" .wav`.mp3"; done | |
#convert all .mp3 files to .wav | |
for x in *.mp3; do ffmpeg -i "$x" "`basename "$x" .mp3`.wav"; done | |
#convert all .ogg files to .mp3 | |
for x in *.ogg; do ffmpeg -i "$x" "`basename "$x" .ogg`.mp3"; done | |
# wav -> ogg | |
for x in *.wav; do ffmpeg -i "$x" -acodec vorbis -aq 60 "`basename "$x" .wav`.ogg"; done | |
# wav -> mp3 | |
for x in *.wav; do ffmpeg -i "$x" -aq 60 "`basename "$x" .wav`.mp3"; done | |
# mp3 -> ogg | |
for x in *.mp3; do ffmpeg -i "$x" -acodec vorbis -aq 60 "`basename "$x" .mp3`.ogg"; done | |
# ogg -> mp3 | |
for x in *.ogg; do ffmpeg -i "$x" -aq 60 "`basename "$x" .ogg`.mp3"; done | |
# ogg -> wav | |
for x in *.ogg; do ffmpeg -i "$x" -aq 60 "`basename "$x" .ogg`.wav"; done | |
# mp3 -> wav | |
for x in *.mp3; do ffmpeg -i "$x" -acodec vorbis -aq 60 "`basename "$x" .mp3`.wav"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment