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