PDA

View Full Version : OSX - How to Install LAME



juggler23
2008-10-31, 17:54
I have OS X 10.5.5, SqueezeCenter 7.2.1 and I need to install LAME. I have tried 4 different compiled installers. Including the one with the 2 lines of instruction at the WIKI link http://wiki.slimdevices.com/index.php/LAMEForTranscoding and nothing works. I put the iTunes-Lame script file in both the "all user" library, and my user library, and iTunes shows that the script is there, but SqueezeCenter says no go.

I have now spent over 4 hours trying to find out how to install LAME on os X, and I am generally not an idiot, and I have not found one set of clear instructions anywhere. I am about to try FINK just to install LAME, which seems like over kill.

Not to mention that 7.2.1 seems to be full of problems and now I have to look for earlier versions of the squeezeCenter.

If anyone can help, I would immensely appreciate it.

danco
2008-11-01, 03:05
I can't recall how I installed LAME, but I know it worked automatically. But I've taken a look at the current iTunes-Lame item. I think it might have changed from earlier versions, and may work differently.

Anyway, if you "Show Package Contents" on it, you will find lame in the Resources folder. Copy lame somewhere useful, and all should be ok.

What do I mean by "somewhere useful"? The installer I used put it in /usr/local/bin, and all seems to work fine for me, but there are some advantages (and also disadvantages) in putting it in /usr/bin.

/usr is normally invisible, but can be reached using the Go To Folder item in the Finder menu.

Nikhil
2008-11-01, 03:34
Its a good question. I did this so long ago that I don't remember which the correct one is. However, flac->mp3 transcoding and remote streaming is working perfectly, so I must have done something right.

Try these three locations:

I found a lame binary here (along with flac), but I am not sure if this is the one being used, perhaps it is from a legacy SS 6.1 or SS 6.5 install.
~/Library/SlimDevices/bin

If your SC install is for all users, then I think the lame binary should go here:
/Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Bin/darwin

I also found a lame binary here:
/usr/local/bin

I also have lame binaries from Fink & MacPorts, but I don't think they are being used by SC

rbz5416
2008-11-01, 07:51
Does this help?

http://wiki.slimdevices.com/index.php/LAMEForTranscoding

juggler23
2008-11-01, 09:34
Guys, I love your efforts to respond.

In Leopard, none of the folders you mention exist (or I can't find them). When I use Go To folder, there is no "bin" folder in the locations mentioned, and I cannot create one within the finder. When I try to go to PreferencePanes, it opesn the actual application and does not seem to have 'folders within it.

Still looking for ideas, thx

juggler23
2008-11-01, 10:30
Ok, I am doing better. I found how to do "Show Package Contents" on the preference panes file, so I am trying that. I also found a /usr/bin, although I did not find /usr/local/bin

I am trying the first one first, so that when I write the final instructions for SC 7.2.1 and Leopard 10.5.5, I will try and write the minimal instructions.

thx for your guidance so far.

juggler23
2008-11-01, 10:53
Instructions to Install LAME on OS X 10.5 Leopard for SqueezeCenter 7

1. Google iTunes-Lame and download and install
2. Go to Applications folder and right-click (Ctl-click) on iTunes-Lame and "Show Package Contents"
3. Open folders as such Contents > Resources and you will see the compiled lame binary called "lame"
4. Open your hard drive with your OS on it, and go to the following folder (please note a few things about this notation, #1, when people start with /Library, they mean the library for "all users" that is in the root of your hard drive. When they start with ~/Library, they mean the library in your user home folder that is ONLY for your user. Also, you cannot double click on the "SqueezeCenter.prefPane" folder to open it. Instead, You must right click on it (Ctl-Click) and choose "Show Package Contents" to open it):
5. /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Bin/darwin
6. Drag and Drop a copy of your 'lame" file (hold the option key down as you drag and drop) from the iTunes-Lame folder in (3) to the darwin folder in (5) [3 and 5 are the numbers of the steps in these instructions]
7. Log out and log back in
8. To confirm that you have done it correctly, Go to SqueezeCenter settings (via the web interface), go to the Players tab, where it says "Basic Settings" click on that menu and choose "Audio" and confirm that the words "The LAME encoder appears to be installed correctly on your system." are there.
9. Voila

juggler23
2008-11-01, 10:56
Thanks everyone. This took me 4 hours of research getting nowhere, until I asked you for help. Hopefully, the next Mac user to come along will find this.

Also, the iTunes-Lame file will generally be a little less than the latest version. On October 30, 2008, iTunes-Lame had Lame 3.97, while the latest was 3.98, however, even though I found a compiled version of 3.98 somewhere, I could not even remember where, and meanwhile, iTunes-Lame will look like a reliable spot to find a relatively recent version, hence my use of that spot.

juggler23
2008-11-01, 11:56
Guys,

You have to restart the computer, not just logout. Otherwise, your AAC m4a files won't play.

Nikhil
2008-11-01, 13:32
If your SC install is for all users, then I think the lame binary should go here:
/Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Bin/darwin



Glad you got it working. The location you mentioned in point #5 of your last post is the same as the one I mentioned earlier. I think actually it can be in any one of the 3 folders that I mentioned. If usr/local/bin doesn't exist, you can always create it. Sorry I didn't mention the 'Show package contents" tip, though danco did ... I personally use the unix prompt (terminal app). The simplest way to navigate to the location is to open up terminal and type:
cd /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Bin/darwin
and then if you wish to see it in a Finder window, you can type
open .

danco
2008-11-02, 02:50
I tend to avoid Terminal for these things. There are some areas where it is the best way to do things, but I usually find the GUI more convenient. It is good to learn to use it, but it can be a bit scary, especially for new users.

I am doubtful about putting lame inside the SqueezeCenter preference pane. Mainly because it would get deleted when SqueezeCenter is updated. I reckon one should not mess with the preference pane unless essential.

/usr/bin, should work fine, and is also a place where other programs can find it if necessary.

/usr/local/bin may well not exist. I think my original installation of lame created it for me, and a few other programs use it. Its main advantage over /usr/bin is to separate out one's own installed Unix programs from those installed by Apple.