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: Exporting a QTMovie to arbitrary format



You should look at the code sample
"ThreadsExportMovie". It calls the function
MovieExportDoUserDialog for getting the user settings.

-Steve

--- Stefan Heukamp <email@hidden> wrote:

> Hi,
> 
> Thanks for your answers! ConvertMovieToFile and
> ConvertMovieToDataRef  
> were the functions I looked for. Now I'm using it
> this way:
> 
> ConvertMovieToDataRef ([m quickTimeMovie], nil,
> NULL, 0,0,0,  
> (showUserSettingsDialog | movieToFileOnlyExport |  
> createMovieFileDeleteCurFile), 0);
> 
> But recently I've got another problem. I want to
> export the movie on  
> another thread. My first try was to call the
> function on the created  
> thread. This fails, since the dialog can't be
> created on another  
> thread but the main thread.
> In the article about Threaded Programming in
> Quicktime 6.4 I found  
> the following lines:
> 
> "To perform an export operation that requires a user
> dialog, for  
> example, you need to first execute the dialog on the
> main thread. You  
> can then perform the actual export operation on a
> separate thread  
> without tying up the user interface. You can pass
> the information  
> returned by the dialog to another thread by passing
> an atom  
> container, using functions that get settings as atom
> containers and  
> set settings from atom containers."
> 
> The Problem is I nowhere find a function that
> displays the same  
> dialog as ConvertMovieToDataRef. I looked for it in
> several articles  
> of the qt reference library but the most articles I
> found were about  
> how to export a movie without displaying any
> dialogs.
> As I thought the function should have "dialog" in
> its name, i  
> searched the function reference by this word but I
> didn't find any  
> function that seems to do the thing I want.
> 
> Thanks for any answer in advance,
> 
> Stefan
> 
> 
> 
> Am 07.06.2006 um 00:28 schrieb Brian Pietsch:
> 
> > You should actually use the more modern
> replacement --  
> > ConvertMovieToDataRef, which takes the same flags
> as  
> > ConvertMovieToFile.
> >
> > Brian
> >
> >
> > On Jun 6, 2006, at 3:21 PM, Steve Ehrenfried
> wrote:
> >
> >> Have you tried calling ConvertMovieToFile with
> the
> >> "showUserSettingsDialog" flag enabled? Something
> like
> >> this:
> >>
> >> err = ConvertMovieToFile(theMovie, NULL,
> &fileSpec,
> >>   kQTFileTypeMovie, FOUR_CHAR_CODE('TVOD'),
> >> smSystemScript,
> >>   NULL, (showUserSettingsDialog |
> >> movieToFileOnlyExport), 0);
> >>
> >> -Steve
> >>
> >> --- Stefan Heukamp <email@hidden> wrote:
> >>
> >>> Hi,
> >>>
> >>> I would like to export a given QTMovie Object to
> a
> >>> file encoded with
> >>> an arbitrary Codec (e.g. Divx). Therefore I'd
> like
> >>> to show the user a
> >>> dialog such as the Export dialog of Quicktime
> Pro.
> >>> Is there any Function in the Quicktime API which
> >>> provides those
> >>> export dialogs?
> >>> If there isn't, which a assume, how do I
> determine
> >>> which exporters
> >>> are available and how do I open / use the
> >>> Preferences Boxes of the
> >>> exporters?
> >>> In the Helpfunction I found the Concept of
> >>> Components and especially
> >>> the Functions FindNextComponent() and
> >>> GetComponentInfo but these are
> >>> old C-Style and included in a Carbon-Framework.
> >>> I like to code Obj-C style with Cocoa-Framework
> and
> >>> I think there
> >>> should be a possibility to do this.
> >>>
> >>> If I have to use the C functions mentioned
> above,
> >>> which Frameworks do
> >>> I have to add to the Project and which Files do
> I
> >>> have to include?
> >>>
> >>> Thanks for any help,
> >>>
> >>> Stefan
> >>>
> >>>  _______________________________________________
> >>> 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/steve680%
> 
> >> 40yahoo.com
> >>>
> >>> This email sent to email@hidden
> >>>
> >>
> >>
> >>
> __________________________________________________
> >> Do You Yahoo!?
> >> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> >> http://mail.yahoo.com
> >>  _______________________________________________
> >> 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/bpietsch%
> 
> >> 40apple.com
> >>
> >> This email sent to email@hidden
> >
> >
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 _______________________________________________
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.