Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. IFS=$'\n'
  4.  
  5. for INFILE in $(ls -1 MY_FILE)
  6. do
  7.  
  8. baseFilename=`basename "${INFILE}" .aiff`
  9.  
  10. outfile="${baseFilename}.mp3"
  11.  
  12. outfile=`echo $outfile | tr -s " " "-"`
  13. echo "Converting \"$INFILE\" to \"$outfile\" ..."
  14.  
  15. # now convert the CAF file to an AIF file
  16. afconvert -f mp4f -d aac -b 128000 "$INFILE" "$outfile"
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement