Although I might be way off-topic, have you thought about using Java
instead of a COM object. My first google search for Java Media
returned me this article which might help you.

http://www.javaworld.com/javaworld/jw-06-1998/jw-06-media.html

HTH

Qasim

On 7/26/05, Rich Wild <[EMAIL PROTECTED]> wrote:
> 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>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212885
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to