Paste #126822

   
pasted on 17.09.2019 15:39
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 139028 # 201878 # 215699
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
1
2
3
4
5
6
7
8
9
#!/bin/sh
find ./ -type f -iname "*.mp3" -printf "%p\n" | while read f
do
    fname="${f%.mp3}"
    sox -S "$f" -c 1 -r 16000 "$fname.wav" gain -n -3;
    ./fdkaac -p 2 -b 11 -m 0 --transport-format 2 "$fname.wav" -o "$fname.m4a";
    rm -f "$fname.wav";
    rm -f "$fname.mp3";
done
Add Comment
Author