Just had a read of the fixes in CF 8.0.1 and discovered errorVariable is a
new attribute for cfexecute.

I knew I'd heard something like that.

All sorted now :O)

Adrian

-----Original Message-----
From: Adrian Lynch
Sent: 20 October 2008 18:29
To: cf-talk
Subject: cfexecute and ffmpeg


I thought I had this sorted a while ago but now the problem has changed
slightly and I'm not sure how to fix it.

I've used ffmpeg in the past to convert to .flv files and that's all
working. But now I want to use it to get the dimensions of a video without
converting.

If you use the following on the command line:

ffmpeg -i some_file.mpg

You get an error but in that error are the dimensions of the video. I want
this available to me in CF so I can extract it.

I would prefer to have the output in a variable and not written to a file.
Can anyone suggest what might be wrong with the following line:

<cfexecute name="ffmpeg.exe"
        arguments="-i #LOCAL.file_details.file_path#
        timeout="2"
        variable="LOCAL.output"
/>

<cfdump var="#LOCAL.output#">

I've tried no timeout, a timeout of 0, of 1, of 999999 and still
LOCAL.output is an empty string.

My though is that ffmpeg is actually throwing an error and so this isn't
available as the output of cfexecute.

Any thoughts?

Thanks.

Adrian Lynch
Building a database of ColdFusion errors at http://cferror.org/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314154
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to