|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
-----Original Message-----Hi Luc-Eric,
From: John Cromie [mailto:email@hidden]
Subject: Re: (Windows) Need help with codec settings in Batch Exporter script for WSH
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.
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.
Hope this helps,
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.
Copyright © 2011 Apple Inc. All rights reserved.