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: Setting general framerate for an imported image sequence



> You can always build the movie by hand - what the importer does is not
> that complicated to reproduce... perhaps that would give you extra
> flexibility - like you could put the timestamp into the name of the
> file or something.
>
> anyway, open the bitmap using a GraphicImport component, get the data,
> AddMediaSample(or AMSReference, using data offset), repeat.
>
> this way you can make the timestamps anything you want, vary the frame
> durations, whatever... I think using the create movie sample and the
> graphics importer sample code in the sdk, you should have enough rope
> to hang yourself :-)

Thank you Dean.

However this approach seems to be a bit overkill since the frame duration will
be the same for each frame in my case. [ And also bc all that is missing in my
code is the line of code that sets the correct framerate for my imported image
sequence. :-) ]

I want to do the same thing to my movieimporter that
MovieImportDoUserDialog() does - changing the frame rate - without opening a
user dialog and also not being limited to the 15 specified framerates in the
dialog.


MovieImportDoUserDialog( movieImporter, &myFSSpec, nil, &canceled );
/*
Does the following:

1. Opens up the "Image Sequence Settings" Dialog to the user.
2. Gets the user selection, i.e. frameRate =29.97 fps;
3. Changes the movieImporter frame rate to 29.97 fps.

*/

So, what I am looking for is the line ( or lines ) of code that
MovieImportDoUserDialog executes in stage 3.

Does anyone know how this is done?

Thank you.

Jonatan
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.



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.