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: FlattenMovieData, resource files and Windows



I use this:

long flattenFlags = flattenAddMovieToDataFork | flattenForceMovieResourceBeforeMovieData;
if (mCompress)
flattenFlags |= flattenCompressMovieResource;
long fileFlags = createMovieFileDeleteCurFile | createMovieFileDontCreateResFile;
::FlattenMovieData(theMovie, flattenFlags, theFile, creator, scriptTag, fileFlags);


// hmmm, even FlattenMovieData with the appropriate flags creates an empty resource fork. this sucks.
// So we'll kill it. 286 bytes is 286 bytes!
if (::FSpOpenRF(&mMovieFile, fsRdWrPerm, &mRefNum) == noErr)
{
::SetEOF(mRefNum, 0);
::FSClose(mRefNum);
}



On 25-May-06, at 3:55 PM, Chuck Bueche wrote:

Hi folks,

For a Windows app, I'm using FlattenMovieData after adding a custom track to a movie/file created with CreateMovieFile. Everything
is peachy, except that the call to FlattenMovieData is generating a resource file that I don't want.


I found a thread from 2001 that had a couple of suggestions, neither of which was useful (flatten* flags, which didn't work, and
deleting an empty resource fork, which had no example the I could identify in spite of stating in the note that it did).


CreateMovieFile doesn't create the resource file. FlattenMovieData does. The flags I'm using are:

flattenAddMovieToDataFork |
flattenForceMovieResourceBeforeMovieData |
flattenActiveTracksOnly |
createMovieFileDontCreateResFile

I've also tried it without the "create" flag.

Any hints?

Thanks,
Chuck Bueche

_______________________________________________ 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: 
 >FlattenMovieData, resource files and Windows (From: "Chuck Bueche" <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.