AAC & MP3 on Mac using 1.3.8
Posted: Mon Aug 03, 2009 4:44 am
This is an end PS put here at the beginning to note strange resolution of some of the problems:
I eventually noticed that the audacitity.cfg file contained a lot of old stuff. Install of Audacity 1.3.8 did not remove the old audacity.cfg file written by previous versions. So I quit the program, removed the legacy audacitity.cfg and then started and quit Audacity 1.3.8 again forcing it to write its own new audacity.cfg file.
That solved the AAC export problem. The exported .m4a files are now fine (and so are the other FFmpeg formats ac3, amr and wma).
Another problem disappeared, too, at the same time, a preferences setting issue I hadn't mentioned before. It used to be that no matter what I set Playback Device to, the setting would not take. And when I'd open Preferences again Playback Device was always set to "Built-In Line Output". It looks like legacy audacity.cfg files can cause all sorts of problems.
The strange thing is that when I tried to reproduce the .m4a export problem, I couldn't, so I am not sure my claims are correct. I quit Audacity 1.3.8, put back the old audacity.cfg file and then restarted Audacity 1.3.8. This should have forced the program to read and use the old stuff and so presumably again export .m4a files that contain all zeros. But, no, Audacity 1.3.8 now exports correct .m4a files no matter which audacity.cfg file was read during program load. And I still don't know why at one time all compressed format exports gave 10 sec of music followed by all zeros.
Any way, I am mostly happy now that I can export AAC, but just a little uncertain.
There is still the inherent conflict between Apple's invisibility protection of Mac core UNIX file locations and the way Audacity's "Preferences Libraries Locate" wants to Browse. There is no way for the average user to see or specify the library location /usr/local/lib/audacity/
=====================================
(Using Audacity 1.3.8 on MacPro quad '09 with OS 10.5.7)
Saw your post, Koz, about instability on modern Macs,
and that I should stick to running Audacity 1.3
Though not 1.3, I've run four versions of Audacity in previous years and don't recall that any of them would export AAC. Can't live without the nice time-line markers.
Any way, I was excited to see that 1.3.8 is supposed to export AAC.
Logically who else would want to do that besides someone with a modern Mac?
So I tried it and did ran into problems, but not ones I would expect.
On my machine Audacity 1.3.8 does find the libraries for AAC, butis no longer able to find the library for MP3. Still, it exports MP3 anyhow - sort of.
Some of the below relates to wording suggestions for instruction web page:
http://manual.audacityteam.org/index.ph ... encoder.3F
Problem 1) Please give actual file names on the instruction page:
The user is told how how to download and install libraries for
"the LAME MP3 encoder"
and for
"the FFmpeg Import/Export Library"
For the first we are given the actual file name, "libmp3lame.dylib"
For the second there is reference to "the FFmpeg library"
But there is apparently no such file with that name.
After the two installs, the files I find that I have at /usr/local/lib/audacity/ are:
audacity
libmp3lame.dylib
libavformat.52.dylib
libavutil.dylib
libavcodec.52.dylib
libavformat.dylib
libavcodec.dylib
libavutil.50.dylib
Are the latter six files "the FFmpeg library"?
Why is there a file called "audacity" in the directory /usr/local/lib/audacity/?
Problem 2) I am not logged in as root, so when I "Browse" (in Edit > Preferences: Libraries > Locate) I can not see or navigate to /usr/local/lib/audacity/
Turns out that this is OK for the FFmpeg libraries newly installed for the first time on my computer, but not for the MP3 library. In "Edit > Preferences: Libraries > Locate" Audacity tells me that it "has automatically detected valid FFmpeg libraries." But when I click to locate the MP3 library it does not say that. Instead the window that pops up has in it the location where libmp3lame.dylib used to be when I ran the previous version of Audacity. So it seems to me that I have four options for trying to direct Audacity to /usr/local/lib/audacity/libmp3lame.dylib. But none of them work:
a) Edit the preferences file directly. [I can't find it in the usual places.]
b) Put /usr/local/lib/audacity/ in the "locate Lame" pop-up window, replacing the old previous location that Audacity is remembering. [This does not take.]
c) Put a copy of libmp3lame.dylib in the old location that Audacity is insisting on remembering. [Not something I want to do.]
d) Log in as root. [Shouldn't have to do this, and might not work anyhow because that might not create the preferences file needed for my standard user login.]
So I am stuck.
Any suggestions?
Problem 3) Weird exports
Uncompressed exports are fine, but not MP3 or AAC exports.
The generated .mp3 .m4a and .ac3 files give the first 10 sec of audio correctly but then suddenly switch to all zeros. The time at which output of zeros starts is the same for all three, which seems to indicate that this is not a library problem but something wrong with Audacity 1.3.8 implementation or something uniquely wrong on my computer. Maybe it is a version of "instability" on modern Macs.
Any suggestions?
Problem 4) Options in AAC Export:
What does "Quality" mean?
The numbers that can be chosen are from 10 to 500.
But the usual way of specifying quality for AAC and MP3 compression is bit rate.
The choice is usually between 128 and 256 kbps as at the iTunes store.
(See http://blogs.pcworld.com/staffblog/archives/003993.html)
How do the "Quality" numbers relate to kbps?
I eventually noticed that the audacitity.cfg file contained a lot of old stuff. Install of Audacity 1.3.8 did not remove the old audacity.cfg file written by previous versions. So I quit the program, removed the legacy audacitity.cfg and then started and quit Audacity 1.3.8 again forcing it to write its own new audacity.cfg file.
That solved the AAC export problem. The exported .m4a files are now fine (and so are the other FFmpeg formats ac3, amr and wma).
Another problem disappeared, too, at the same time, a preferences setting issue I hadn't mentioned before. It used to be that no matter what I set Playback Device to, the setting would not take. And when I'd open Preferences again Playback Device was always set to "Built-In Line Output". It looks like legacy audacity.cfg files can cause all sorts of problems.
The strange thing is that when I tried to reproduce the .m4a export problem, I couldn't, so I am not sure my claims are correct. I quit Audacity 1.3.8, put back the old audacity.cfg file and then restarted Audacity 1.3.8. This should have forced the program to read and use the old stuff and so presumably again export .m4a files that contain all zeros. But, no, Audacity 1.3.8 now exports correct .m4a files no matter which audacity.cfg file was read during program load. And I still don't know why at one time all compressed format exports gave 10 sec of music followed by all zeros.
Any way, I am mostly happy now that I can export AAC, but just a little uncertain.
There is still the inherent conflict between Apple's invisibility protection of Mac core UNIX file locations and the way Audacity's "Preferences Libraries Locate" wants to Browse. There is no way for the average user to see or specify the library location /usr/local/lib/audacity/
=====================================
(Using Audacity 1.3.8 on MacPro quad '09 with OS 10.5.7)
Saw your post, Koz, about instability on modern Macs,
and that I should stick to running Audacity 1.3
Though not 1.3, I've run four versions of Audacity in previous years and don't recall that any of them would export AAC. Can't live without the nice time-line markers.
Any way, I was excited to see that 1.3.8 is supposed to export AAC.
Logically who else would want to do that besides someone with a modern Mac?
So I tried it and did ran into problems, but not ones I would expect.
On my machine Audacity 1.3.8 does find the libraries for AAC, butis no longer able to find the library for MP3. Still, it exports MP3 anyhow - sort of.
Some of the below relates to wording suggestions for instruction web page:
http://manual.audacityteam.org/index.ph ... encoder.3F
Problem 1) Please give actual file names on the instruction page:
The user is told how how to download and install libraries for
"the LAME MP3 encoder"
and for
"the FFmpeg Import/Export Library"
For the first we are given the actual file name, "libmp3lame.dylib"
For the second there is reference to "the FFmpeg library"
But there is apparently no such file with that name.
After the two installs, the files I find that I have at /usr/local/lib/audacity/ are:
audacity
libmp3lame.dylib
libavformat.52.dylib
libavutil.dylib
libavcodec.52.dylib
libavformat.dylib
libavcodec.dylib
libavutil.50.dylib
Are the latter six files "the FFmpeg library"?
Why is there a file called "audacity" in the directory /usr/local/lib/audacity/?
Problem 2) I am not logged in as root, so when I "Browse" (in Edit > Preferences: Libraries > Locate) I can not see or navigate to /usr/local/lib/audacity/
Turns out that this is OK for the FFmpeg libraries newly installed for the first time on my computer, but not for the MP3 library. In "Edit > Preferences: Libraries > Locate" Audacity tells me that it "has automatically detected valid FFmpeg libraries." But when I click to locate the MP3 library it does not say that. Instead the window that pops up has in it the location where libmp3lame.dylib used to be when I ran the previous version of Audacity. So it seems to me that I have four options for trying to direct Audacity to /usr/local/lib/audacity/libmp3lame.dylib. But none of them work:
a) Edit the preferences file directly. [I can't find it in the usual places.]
b) Put /usr/local/lib/audacity/ in the "locate Lame" pop-up window, replacing the old previous location that Audacity is remembering. [This does not take.]
c) Put a copy of libmp3lame.dylib in the old location that Audacity is insisting on remembering. [Not something I want to do.]
d) Log in as root. [Shouldn't have to do this, and might not work anyhow because that might not create the preferences file needed for my standard user login.]
So I am stuck.
Any suggestions?
Problem 3) Weird exports
Uncompressed exports are fine, but not MP3 or AAC exports.
The generated .mp3 .m4a and .ac3 files give the first 10 sec of audio correctly but then suddenly switch to all zeros. The time at which output of zeros starts is the same for all three, which seems to indicate that this is not a library problem but something wrong with Audacity 1.3.8 implementation or something uniquely wrong on my computer. Maybe it is a version of "instability" on modern Macs.
Any suggestions?
Problem 4) Options in AAC Export:
What does "Quality" mean?
The numbers that can be chosen are from 10 to 500.
But the usual way of specifying quality for AAC and MP3 compression is bit rate.
The choice is usually between 128 and 256 kbps as at the iTunes store.
(See http://blogs.pcworld.com/staffblog/archives/003993.html)
How do the "Quality" numbers relate to kbps?