Hmm - I've managed to instatiate the object and get it to resize video, but
adding resize filters and the suchlike seems to corrupt the output file.
If anyone has any pointers they can give me that would be great!
Rich
initial rough (want to get it working before make it purty) code:
<cfobject type="com" name="obj" class="{00130A7F-B1BA-11CE-ABC6-F5B2E79D9E3F}"
action="create">
<cfdump var="#obj#">
<cfdump var="#obj.selectedVideoProcessors#">
<cfoutput>#obj.videoprocessors.find('@device:sw:{E526D606-22E7-494C-B81E-AC0A94BFE603}\{E2B7DD2A-38C5-11D5-91F6-00104BDB8FF9}')#</cfoutput>
<cfscript>
obj.selectedVideoProcessors.removeAll();
sourcemovie = expandpath('target.avi');
targetmovie = getdirectoryfrompath(expandpath('*.*')) & "target.avi";
obj.Sourcefile('#sourcemovie#');
obj.Targetfile('#targetmovie#');
obj.selectedVideoProcessors.Add(obj.VideoProcessors.Item(36), -1);
processor = obj.getsubobject(512);
processor.aspectRatio = "TRUE";
processor.width = 320;
processor.height = 240;
obj.StartConvert();
complete = obj.percentcomplete;
while (obj.state eq 2) {
if (obj.percentcomplete neq complete) {
writeoutput('<br>#obj.percentcomplete#% complete');
}
complete = obj.percentcomplete;
}
writeoutput('<br>converted!');
</cfscript>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212803
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54