Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have audio files with .aif extensions (AIFF/Amiga/Mac audio). How to play them and, more important: how to convert them to mp3 or other more common audio format?


update: trying to run a command found here, namely for i in *.aif; do sox "$i" "$i.wav"; done, and having sox already installed, i get an error like

sox FAIL formats: can't open input file 'filename': Unsupported AIFC compression type `ima4'


exiftool provides info such as:

File Size                       : 41 MB
File Modification Date/Time     : 2013:04:23 15:54:02+02:00
File Permissions                : rw-r--r--
File Type                       : AIFC
MIME Type                       : audio/x-aiff
Format Version Time             : 1990:05:23 14:40:00
Num Channels                    : 1
Num Sample Frames               : 1257382
Sample Size                     : 0
Sample Rate                     : 16000
Compression Type                : Unknown (ima4)

for some reason sudo apt-get install ffmpeg libavcodec-unstripped-52 would not work (Unable to locate package - but Multiverse is enabled)

share|improve this question
1  
Have you seen e.g." How to play AIFF (AIF) files in Ubuntu" ubuntuforums.org/showthread.php?t=1000116 and "Convert Aiff to MP3 with ffmpeg on ubuntu" turanct.wordpress.com/2010/04/03/… –  arochester Apr 27 '13 at 10:53
1  
sudo apt-get install ffmpeg libavcodec-unstripped-52 –  Qasim Apr 27 '13 at 11:24
1  
ffmpeg -i inputfile.aif -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 outputfile.mp3 –  Qasim Apr 27 '13 at 11:24
    
linuxquestions.org/questions/linux-software-2/… check this link –  Qasim Apr 27 '13 at 11:25
1  
i dont know ....that is why i have pasted as an comment not an answer... i thought may be this will help you... –  Qasim Apr 27 '13 at 15:09

4 Answers 4

up vote 2 down vote accepted

Finding this solution here (also recommended in comments), for some reason sudo apt-get install ffmpeg libavcodec-unstripped-52 would not work (Unable to locate package - but Multiverse is enabled).

But in Synaptic I have seen that I had libavcodec53 installed, but not libavcodec-extra-53. Installing the later has uninstalled the former, and then the command ffmpeg -i inputfile.aif -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 outputfile.mp3 worked.

So,

~$ sudo apt-get install libavcodec-extra-53
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libavutil-extra-51 libdirac-encoder0 libopencore-amrnb0 libopencore-amrwb0
  libopenjpeg2 libvo-aacenc0 libvo-amrwbenc0 libx264-123
The following packages will be REMOVED:
  libavcodec53 libavutil51
The following NEW packages will be installed:
  libavcodec-extra-53 libavutil-extra-51 libdirac-encoder0 libopencore-amrnb0
  libopencore-amrwb0 libopenjpeg2 libvo-aacenc0 libvo-amrwbenc0 libx264-123
0 upgraded, 9 newly installed, 2 to remove and 0 not upgraded.
Need to get 7,656 kB of archives.

After this, other commands and actions are now working, including those to convert to mp3, like avconv -i %f %f.mp3. To see that in Terminal, I have added to Thunar custom actions: gnome-terminal --window-with-profile=new1 -e "avconv -i %f %f.mp3". (In Gnome Terminal, create a new profile called "new1" and edit it ('Edit/Profiles/Title and Command') to 'When command exits: Hold the Terminal open'.)

Even after this, the aif files cannot be played by Totem, Parole, Xine, DeaDBeeF, Banshee or VLC; even in Audacity the sound is badly distorted, just like in Audacious. But mplayer (SMPlayer, Gnome Player, Mplayer) can play them just fine.

share|improve this answer
    
if you feel Crackly sound askubuntu.com/questions/182164/… –  Qasim Apr 27 '13 at 15:19
    
@XxxXxx - that bad sound happens only for the .aif files –  cipricus Apr 27 '13 at 15:21

There is one more program named assoundconverter and you can install it with your terminal
sudo apt-get install soundconverter .

from the EDIT -> Preferences options you can customize it as you want. enter image description here

This will convert any format to mp3 and other. hope that helps.

share|improve this answer
    
didn't work on .aif files as far as i can tell, but i'll recheck –  cipricus Apr 27 '13 at 15:29

ffmpeg doesn't exist anymore in Ubuntu 14.04. Use sudo apt-get install libav-tools, instead, then you can use the same options. Following Toon's Unix Recipes, for example (and the above examples):

avconv -i track1.aiff -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 track1.mp3
share|improve this answer

Try Audacity - is free, open source, cross-platform software for recording and editing sounds. You can get it from Ubuntu Software Center.

share|improve this answer
    
cannot play them in Audacity, I don't know why –  cipricus Apr 27 '13 at 12:33

protected by Community May 19 at 8:13

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.