| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Edward,Thanks for your reply. It's very much appreciated.The Q&A1147 code still works for me if I use the Intel Codec (kIndeo4CodecType) as specified in the Q&A. It doesn't work for kWindowsRawCodecType , kRawCodecType or kComponentVideoSigned. I will file this in the BugReporter.Thanks also for your workaround suggestion, but I cannot use it as my application is supposed to be exposed as an API from a dll with no user interaction/GUI at all. If you know any other workaround where I do not have to invoke the Export Dialog at all, please do let me know.I however managed to get some video in uncompressed format by setting the codec type to 0.However the video appears upside down and the colors are different. From what I know this may be happening becuase the pixels are written in big-endian format "BGR" and bottom-up.Do you know some way I can fix this.I am working on windows and I have changed the Q&A 1147 code as follows:ScriptCode fileScript = smSystemScript;--spatialSetting.codecType = 0;
spatialSetting.codec = 0;
spatialSetting.depth = EndianU16_NtoB(24);
spatialSetting.spatialQuality = EndianU32_NtoB(codecLosslessQuality);
Again, many thanks.cheers,anita
On 6/7/06, Edward Agabeg <email@hidden> wrote:Hi there,
I wish to use the code to convert a compressed movie to uncompressed AVI.
The technical Q&A 1147 (http://developer.apple.com/qa/qa2001/qa1147.html) tells
how to do this. But this does not work.
As this problem was also faced by someone else (
http://lists.apple.com/archives/quicktime-api/2004/Mar/msg00195.html), I do
not think I am doing anything wrong.
I also tried the suggestions of using the kRawCodecType but that does not
work either. I do not know what the QuickTime setting dialog modifies so
that it can set the code to "raw".
Can someone, who has a better knowledge of QuickTime export components,
please tell me how I can decompress to the raw format.
Thanks.
/anita
The AVI exporter uses a transcoder component and transcodes kRawCodecType to kWindowsRawCodecType which is the format of raw video in an avi file (basically, NONE for the codec type will produce this).
What I'm seeing currently is the exporter settings atom that is being returned when the AVI spit component is first opened looks different than what is returned after you bring up the exporter dialog (it's missing some atoms). Considering I'm getting a -50 error using the code presented in the Q&A and duplicating the spatial settings atom from a known good atom container doesn't help, my initial thought is that this is just a bug (especially considering the Q&A code use to work and using the settings container once the dialog is brought up works fine). Can you please file this, including full system information and mention the Q&A. < bugreporter.apple.com >
The work around is to use the Export Dialog to configure what you want, then get that settings atom and use it later. See Q&A 1418 < http://developer.apple.com/qa/qa2005/qa1418.html >
regards,
edward
Edward Agabeg
WWDR Engineer
QuickTime
Worldwide Developer Relations
Apple
http://www.apple.com/developer
http://www.apple.com/quicktime
-- This message was sent from a personal account --
-- All views are mine and not necessarily shared by my employer --
_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden This email sent to email@hidden
| References: | |
| >Re: Technical Q&A QA1147 - Incorrect? (From: "Edward Agabeg" <email@hidden>) | |
| >Re: Technical Q&A QA1147 - Incorrect? (From: "Anita S" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.