Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RE: (Windows) Need help with codec settings in Batch Exporter script for WSH
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: (Windows) Need help with codec settings in Batch Exporter script for WSH



Thank you for your help, John!
I didn't expect something like this to work.  I'm guessing what's happening here is that that QTExporter::Settings is returning a newly allocated object, which I hadn't considered. 
-----Original Message-----
From: John Cromie [mailto:email@hidden]
Subject: Re: (Windows) Need help with codec settings in Batch Exporter script for WSH

Hi Luc-Eric,

I think there's a subtle problem with the script below: you create a CFObject in the WScript process, load the settings, and then assign the CFObject to a QTExporter belonging to QuickTime Player running in a different process. The QTExporter is unable to load the out-of-process CFObject that you've handed it, and fails with error code 0x80040201.

[LER] [...] 
A workaround involves using an existing Settings CFObject that belongs to the QuickTime Player process without having to create a new CFObject:

        var xmlCodecInfoText = CodecFileInfo.ReadAll();          
        var tempSettings = qtExporter.Settings; 
         tempSettings.XML = xmlCodecInfoText;    
         qtExporter.Settings = tempSettings;

This seems to work for me.

[LER] [...] 

Hope this helps,

John.

_________________________________________________________
John Cromie
Skylark Associates Ltd.             http://www.skylark.ie

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

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 © 2011 Apple Inc. All rights reserved.