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: ConvertMovieToFile problem



Hi Lynn, thanks for answering,

I think I'm providing enough information to ConvertMovieToFile, here's my
code, perhaps you can see what I'm doing wrong...

...
err = OpenADefaultComponent(MovieExportType, kQTFileTypeAVI,
&movieExporter);

err = MovieExportGetSettingsAsAtomContainer(movieExporter,
&exportSettings);

videAtom = QTFindChildByID(exportSettings, kParentAtomIsContainer,
kQTSettingsVideo,
1, NULL);

sptlAtom = QTFindChildByID(exportSettings, videAtom,
scSpatialSettingsType,
1, NULL);

spatialSetting.codecType = EndianU32_NtoB(kRawCodecType);
spatialSetting.codec = EndianU32_NtoB(bestFidelityCodec);
spatialSetting.depth = EndianU32_NtoB(32);
spatialSetting.spatialQuality = EndianU32_NtoB(codecLosslessQuality);

err = QTSetAtomData(exportSettings, sptlAtom,
sizeof(spatialSetting),
&spatialSetting);

err = MovieExportSetSettingsFromAtomContainer(movieExporter,
exportSettings);

// it will work if I make the next call
// cresult = MovieExportDoUserDialog(movieExporter, inMovie, NULL, 0,
GetMovieDuration(inMovie), &b);

err = ConvertMovieToFile(inMovie, NULL, inFile, 0, 0, fileScript, NULL,
0, movieExporter);
...

Regards,

-- Jacobo




Lynn Pye
<email@hidden
m> To
email@hidden
03/24/2004 03:53 cc
PM email@hidden
Subject
Re: ConvertMovieToFile problem










Hi Jacobo,

Calling ConvertMovieToFile without specifying the
showUserSettingsDialog flag will result in the conversion running
without displaying the user dialog, but you must in that case provide
enough information for QuickTime to know how to handle the conversion.
This would be, for instance, the output file, file type and file
creator, the output file and a Component (or ComponentInstance), etc.
Just consider that ConvertMovieToFile has to know where to put the
resulting file and what to convert it to. You must either supply that
information or pop up the dialog box to allow the user to interactively
provide that information.

Regards,

Lynn

On Mar 24, 2004, at 3:23 PM, email@hidden wrote:

> Hello,
>
> Something I found is that when exporting from a .mov to a .avi file,
> if we
> call MovieExportDoUserDialog before ConvertMovieToFile or if we
> specifiy
> the showUserSettingsDialog flag for ConvertMovieToFile, the exporting
> process will work.
>
> Does anyone know how to export without popping the user settings dialog
> box? I must be missing something here,
>
> Thanks,
>
> Jacobo
> _______________________________________________
> 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.
_______________________________________________
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.


References: 
 >Re: ConvertMovieToFile problem (From: Lynn Pye <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.