Mailing Lists: Apple Mailing Lists

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

problem with track data size and media data size when creating movie from copymovieselection



I used the copymovieselection and flattenmoviedata to save new movie on disk. I noticed that its size is to big in comparison to the original file. It should be 53.2 kb/s. So I checked the data size of all tracks and medias in the new file. The video track size was 500 kb and duration 6000 and the media size was 800 kb and duration 10000. Is it normal, and if not how to solve it?
Below is a piece of code I'm using in my program.


long movieFlattenFlags = flattenAddMovieToDataFork |
                         flattenForceMovieResourceBeforeMovieData;
                         flattenCompressMovieResource;

long createMovieFileFlags = createMovieFileDeleteCurFile |
                            createMovieFileDontCreateResFile;

SetMovieSelection(m_movie, 19000, 25000); // so the duration should be 6000 not 10000
Movie newMovie = CopyMovieSelection(m_movie);
FlattenMovieData(newMovie, movieFlattenFlags, &sfFile,
FOUR_CHAR_CODE('TV0D'), smCurrentScript,
createMovieFileFlags);


Thanks for any advice. Marcin Piotrowski
--
Marcin Piotrowski
_______________________________________________
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.