I have some .tta files I downloaded from internet. I can play them on VLC locally, but they cannot be played from certain media player app, for example, an android app. So here I need to convert "tta" files to "mp3" or "wav" files. Since they're high resolution sound, I'd like to know how to convert them to wav (or flac) rather than to mp3, but if you know I'd like to know both of the ways. So, is there any way to do that? Thanks.

1 Answer 1

for i in *.tta; do
    ffmpeg -i "$i" "${i%.tta}.wav"
  • 2
    That output argument might be better served as "${i%.tta}.wav" Jan 30, 2021 at 12:01
  • @roaima thanks, that would be better for me. Jan 30, 2021 at 14:08
  • Here I wrote a script for recursive conversion, hope this would helps someone. tmpIFS=$IFS ; IFS=$'\n' ; for i in $( command find "." -type f | ag tta ) ; do ffmpeg -i "$i" "${i%.tta}.wav" done ; IFS=$tmpIFS Jan 30, 2021 at 14:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .