Skip to content

Commit

Permalink
Script de conversion wav vers mp3/ogg
Browse files Browse the repository at this point in the history
git-svn-id: https://alain.mwyann.com/svn/CCM@48 f7c9035b-f5ee-4214-968a-58d69607fc60
  • Loading branch information
Mwyann committed Apr 9, 2014
1 parent 08a3fe0 commit cc9fb06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions convertwav.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
find . -iname "*.ogg" -delete
find . -iname "*.mp3" -delete

find . -iname "*.wav" -exec bash -c 'avconv -i "{}" -q 0 -f ogg -acodec libvorbis "`dirname "{}"`/`basename "{}" .wav`.ogg"' \; \
-exec bash -c 'avconv -i "{}" -q 0 -f mp3 -acodec libmp3lame "`dirname "{}"`/`basename "{}" .wav`.mp3"' \; || exit 1

find . -iname "*.wav" -delete

0 comments on commit cc9fb06

Please sign in to comment.