Paste #123645

   
pasted on 04.07.2019 17:20
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 143429 # 230307
  • 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