Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- tta_convert(){
- #convert TTA to FLAC
- ffmpeg -i *.tta -ab 800k source.flac
- #Split FLAC and fill the tag
- shntool split -f *.cue -o flac *.flac
- cuetag.sh *.cue split-track*.flac
- rm source.flac
- #Convert FLAC to MP3
- for f in *.flac; do
- ffmpeg -i "$f" -ab 320k "${f%.flac}.mp3";
- eyeD3 --rename %n %T "${f%.flac}.mp3";
- rm "$f"
- done
- clear
- }
Advertisement
Add Comment
Please, Sign In to add comment