convert-directory-to-ogg 220 B

1234567891011
  1. #!/bin/zsh -f
  2. for song in *.m4a ;
  3. do
  4. NEW=`basename -- "$song" .m4a`.ogg
  5. if [[ -e $NEW ]] ; then
  6. echo "Skipping ${NEW}, already converted."
  7. else
  8. faad -w -- "$song" | oggenc -o "${NEW}" -
  9. fi
  10. done