Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exporting MP3 file using QT... What a doc!



Hi Mathieu,

I personally find Carbon programming in general sometimes awkward and non-intuitive, and the docs/sample code usually leave me still desiring a better understanding (QT included). I've never gotten over that even though I used it it pre-OS X days, so don't feel bad :)

You should check out the ConvertMovieSndTrack and MovieToAIFF sample code from Apple's website. They'll show you how to convert between formats and how to export a mov to a different file type. QT's native file format is mov, so you have to export to other formats (using ConvertMovieToFile(), or whatever it's called).

As for decoding the MP3, I'm not sure about that. For some reason the code I wrote doesn't work with an MP3 but does with other QT supported formats (though it could be a simple problem with my code).

Hope this helps.

-- John


Hi all!

I'm sorry for what -I think- will a really stupid and simple question. I've
never used the QT API, but I need it for a Cocoa program I'm writing.

This application needs to import a MP3 file and then convert it to AAC file.
I guess using QT for that is the best way to do, but I didn't though it
would be so complex to get what I need from the API.

I'm importing a movie using NSMovie object. I can get the QTMovie from it
but I don't know what to do with it next. I'm lost in the various component,
API functions... I've tried to read the Quick Start and a lot of other docs,
but it seems dark to me. And, as I read them on, the docs appear far from
what I want to do.

Some examples:
- I try to understand how to save a movie in a file, I understand that it's
not what I want: I need my file to be a AAC and not a MooV file.
- I try to understand the exporters, but it's all about imaging, not sound.

I often feel like I'm going too deep in the API. I just want to use QT as a
hig-level tool. I don't need to know what a Atom is or how to handle the
movie data... It seems to me the doc lacks of abstraction.

Did I miss something? Do I really need to read 250 pages of doc and hundreds
of lines of code to do such a simple thing? Is there a place where to find
some high level doc or something like that?

Sorry for being so critical, but I'm getting lost in here... Help!

Mathieu Godart
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.


References: 
 >Exporting MP3 file using QT... What a doc! (From: "Mathieu Godart" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.