Re: [MP3 ENCODER] AIFC -> MP3 encoding

2000-10-06 Thread David Balazic

Chad Cunningham wrote:
> 
> Hi, I seem to have hit a wall here... I want to do an mp3 ripper for Mac
> OSX, which I thought would be a simple enough project, but it's getting
> more complicated. The OS automatically mounts cd's in a /Audio CD
> directory as aiff files. I thought this would make things easy as I could
> just write a front end which needed no CD access and could just work with
> the files. However, it turns out that they are actually AIFC files. This
> has caused me some problems as lame, sox, and anything else I can find
> cannot deal with AIFC. So I went back to the drawing board and planned to
> just access the cdrom and rip the tracks off, however I've learned that
> for some reason, OSX set's the cd device to root read only. Now this makes
> absolutely no sense to me, but at least they do state that this "may
> change" in the future. So the up shot is, if I want this to be available
> as an end user product, I can't access the cdrom directly at this time.

You can make your program setuid root :-)

-- 
David Balazic
--
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )



RE: [MP3 ENCODER] AIFC -> MP3 encoding

2000-10-05 Thread alex . broadhead

Howdy,

Unless they have changed it significantly since I last looked at it (quite a
while ago) AIFC is just AIFF with the added possibility of using compressed
audio instead of raw PCM.

Either format is 'chunk' based, like RIFF-WAVE.  That is, an AIFF/C file
consists of a number of chunks, most of which are informational, and one of
which is data.  To unpack the audio, you would just have to parse the file,
throwing away chunks until you hit the data chunk.  I doubt that OSX is
doing anything to the raw data itself other than wrapping it into the data
chunk, so you should be golden from there.

If you can't find it anywhere else, you can buy the AIFF/C specification
from Apple; it's in one or more of the Inside Macintosh series of books.

Alex

PS - If you weren't planning to write any code, I'd suspect that you might
be able to use ResEdit or something similar to simply change the type of the
AIFC file to AIFF - but I can't guarantee that method.

> -Original Message-
> From: Chad Cunningham [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 05, 2000 3:33 PM
> To: [EMAIL PROTECTED]
> Subject: [MP3 ENCODER] AIFC -> MP3 encoding
>
>
>
> Hi, I seem to have hit a wall here... I want to do an mp3
> ripper for Mac
> OSX, which I thought would be a simple enough project, but
> it's getting
> more complicated. The OS automatically mounts cd's in a /Audio CD
> directory as aiff files. I thought this would make things
> easy as I could
> just write a front end which needed no CD access and could
> just work with
> the files. However, it turns out that they are actually AIFC
> files. This
> has caused me some problems as lame, sox, and anything else I can find
> cannot deal with AIFC. So I went back to the drawing board
> and planned to
> just access the cdrom and rip the tracks off, however I've
> learned that
> for some reason, OSX set's the cd device to root read only.
> Now this makes
> absolutely no sense to me, but at least they do state that this "may
> change" in the future. So the up shot is, if I want this to
> be available
> as an end user product, I can't access the cdrom directly at
> this time.
>
> So I'm back to square 1, how can I go from AIFC to MP3? I have no real
> experience with sound file formats and I really just want to
> write a front
> end which uses tools written by people who know a lot more
> than me such as
> lame :) Any tips are appreciated.
>
> --
>
> Chad Cunningham
> [EMAIL PROTECTED]
>
> >[<+>-]<.>++[<+++>-]<.
> -.+.---.>
> [<->-]<---.>+[<++>-]<-.>++[<->
> -]<.++.---.>+
> +++[<-->-]<--.>++[<>-]<-.>+[<+
> +++>-]<-.>[<-
> >-]<-.+++..---.+.>+++[<--->-]<.
>
>
> --
> MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
>

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )



Re: [MP3 ENCODER] AIFC -> MP3 encoding

2000-10-05 Thread Sigbjørn Skjæret

[...]
>So I'm back to square 1, how can I go from AIFC to MP3? I have no real
>experience with sound file formats and I really just want to write a front
>end which uses tools written by people who know a lot more than me such as
>lame :) Any tips are appreciated.

There's one really simple solution to this, and that is to either compile
in libsndfile ( http://www.zip.com.au/~erikd/libsndfile/ ) with LAME, or
get a precompiled one (check out the links at the project page:
http://www.mp3dev.org/mp3/ ) which uses libsndfile...


- CISC

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )