Hang when importing aiff file

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

Mac 0S X 10.3 and earlier are no longer supported but you can download legacy versions of Audacity for those systems HERE.
phiw13
Posts: 5
Joined: Fri Jan 30, 2009 2:23 am
Operating System: Please select

Re: Hang when importing aiff file

Post by phiw13 » Sat Jan 31, 2009 6:47 am

kozikowski wrote:<<<straight off a (commercial) Audio CD>>>

Good to know that earlier. Those aren't either WAV or AIFF. Those are special CDA format and they have to be ripped to work. I disagree completely with OS-X insisting they're normal AIFF files. They're not, as you found out.

Change the iTunes import preferences to WAV or AIFF 16 bit 44100 Stereo. Anything you open in iTunes will be converted to a "normal" format. This works with all versions of Audacity and any other sound program. Make sure to change iTunes back to the compressed format of your choice or you will hose your iPod.

I didn't know 1.3 would do that directly, but all programs will not.
Thanks for that explanation. Now we are getting somewhere (but not yet the end of the issue).
1. I opened/imported my file in iTunes as per the above. Went to Audacity. The file imported just fine. Cool.
2. I attempted to do the same conversion as iTunes does, but from the command-line:

Code: Select all

afconvert -v -f "AIFC" -d "BEI16" file_name.aiff file_name_new.aif
Opening/importing file_name_new.aif in Audacity fails... (hang). Afaik, iTunes uses this to convert.

I checked the file info for both file_name_new.aif and file_name_itunes.aif (again, command line, the afinfo command):

Code: Select all

afinfo file_name_itunes.aif
File:           file_name_itunes.aif
File type ID:   AIFF
Data format:     2 ch,  44100 Hz, 'lpcm' (0x0000000E) 16-bit big-endian signed integer
                no channel layout.
estimated duration: 511.133 sec
audio bytes: 90163920
audio packets: 22540980
bit rate: 1411200 bits per second
packet size upper bound: 4
audio data file offset: 54
not optimized
----

Code: Select all

afinfo file_name_new.aif
File:           file_name_new.aif
File type ID:   AIFF
Data format:     2 ch,  44100 Hz, 'lpcm' (0x0000000E) 16-bit big-endian signed integer
                no channel layout.
estimated duration: 511.133 sec
audio bytes: 90163920
audio packets: 22540980
bit rate: 1411200 bits per second
packet size upper bound: 4
audio data file offset: 4096
optimized
----
The only difference I can see is at the end of each code block. file_name_itunes.aif says 'not optimized', file_name_new.aif returns 'optimized'. The man page for afconvert doesn't help here. audio data file offset is also different, but I tried 3 times and each time it had a different result.

The other people who mention having problems, what does the output of 'afinfo' returns ?
(if you're not used to Terminal.app (/Aplications/Utilities): open terminal, type 'cd ' -without the quotes, the space after d matters- at the prompt, then drag the folder where you have stored your files into the terminal window, then hit return. type 'ls' to get a list of the files in that folder, then 'afinfo filename').

And again, similar files opened just fine in Audacity 1.3.3.

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Hang when importing aiff file

Post by Leland » Sat Jan 31, 2009 7:06 am

EXCELLENT!!!! Want to thank y'all for this thread.

I've been working with a user via email on this very problem, but I couldn't find an example where it would hang for me. But, since y'all mentioned the CD tracks, I gave it a try and it hung just fine for me.

I'll start tracking it down...

Leland

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Hang when importing aiff file

Post by kozikowski » Sat Jan 31, 2009 7:16 am

Perfectly true. I have an AIFF file I made out of my piano solo. pinao2.aif. It's Big Endian, 48000, 16-bit, Stereo and will hang current Universal Audacity 1.3.7 out to dry with 100% CPU usage and an SBBOD. Tiger OS-X 10.4.11 running on an Intel machine. Would you like me to post that file for testing?

All the patches and corrections didn't make it to the release software. Several of the graphic issues I resolved with y'all are still wrong.

Koz

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Hang when importing aiff file

Post by Leland » Sat Jan 31, 2009 7:19 am

Found it...a result of trying to support metadata in AIFF files.

Leland

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Hang when importing aiff file

Post by Leland » Sat Jan 31, 2009 7:20 am

kozikowski wrote:All the patches and corrections didn't make it to the release software. Several of the graphic issues I resolved with y'all are still wrong.
What didn't make it?

Leland

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Hang when importing aiff file

Post by kozikowski » Sat Jan 31, 2009 7:34 am


kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Hang when importing aiff file

Post by kozikowski » Sat Jan 31, 2009 7:38 am

It launches with both an exploding icon and the exploding outline. I think we decided just the icon.
That's as far as I looked. I was busy crashing it with my piano performance.

Koz

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Hang when importing aiff file

Post by kozikowski » Sat Jan 31, 2009 7:41 am

I remember. I trashed my preferences and in fact the whole Application Support > Audacity folder and Audacity 1.3.7 still figured out that I use 48000 and English.

Where are the preferences now?

Koz

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Hang when importing aiff file

Post by Leland » Sat Jan 31, 2009 8:03 am

kozikowski wrote:I remember. I trashed my preferences and in fact the whole Application Support > Audacity folder and Audacity 1.3.7 still figured out that I use 48000 and English.

Where are the preferences now?

Koz
They should be in the same place unless you have a "Portable Settings" directory in the same directory as the Audacity.app bundle.

Leland

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Hang when importing aiff file

Post by Leland » Sat Jan 31, 2009 8:20 am

phiw13 wrote:Audacity 1.3.7, OS X 10.5.6 Intel.

1. Open new project file
2. File > Import > Audio and navigate to an .aiff file
3. progress dialog comes up, gets stuck at the end.

Actual results: Audacity hangs, requires a force quit.
Expected result: obviously, import that sound file :-).

The same happens with File > Open and try to open an aiff file.

Sample: http://dev.l-c-n.com/_b/hang_Audacity1-3-7.txt
I've corrected this and it will show up in the next nightly build here:

http://audacity.homerow.net/index.php?dir=mac

Leland

Locked