cerilla

TTA -> MP3 Script

Jan 17th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2. tta_convert(){
  3.    #convert TTA to FLAC
  4.    ffmpeg -i *.tta -ab 800k source.flac
  5.      
  6.    #Split FLAC and fill the tag
  7.    shntool split -f *.cue -o flac *.flac
  8.    cuetag.sh *.cue split-track*.flac
  9.    rm source.flac
  10.      
  11.    #Convert FLAC to MP3
  12.    for f in  *.flac; do
  13.      ffmpeg -i "$f" -ab 320k "${f%.flac}.mp3";
  14.      eyeD3 --rename %n %T "${f%.flac}.mp3";
  15.      rm "$f"
  16.    done
  17.    clear
  18. }
Advertisement
Add Comment
Please, Sign In to add comment