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: MovieExportComponent codecname



Hmmmm, have you checked to make sure codecType is valid? What does it contain? If it's valid you should be able to find it using Fiendishthngs which uses GetComponentInfo to get the name (see CompDesc.m).

Or, using GetCodecInfo -- The following code works for me using spit movie.

QTAtom videAtom = 0;
QTAtom sptlAtom = 0;
SCSpatialSettings ss;
CodecInfo cInfo;

...

// get the exporter settings as an atom container

...

// video options
videAtom = QTFindChildByID(myExportSettings, kParentAtomIsContainer, kQTSettingsVideo, 1, NULL);
if (videAtom) {
    // spatial
    sptlAtom = QTFindChildByID(myExportSettings, videAtom, scSpatialSettingsType, 1, NULL);
    if (sptlAtom) {
        QTCopyAtomDataToPtr (myExportSettings, sptlAtom, true, sizeof(SCSpatialSettings), &ss, NULL);
        GetCodecInfo(&cInfo, ss.codecType, 0);
    }
}

There's a couple of ideas anyway.

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



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.