Skip to main content
Participating Frequently
April 30, 2009
Question

ffmpeg cfexecute

  • April 30, 2009
  • 1 reply
  • 1222 views

Hi all,

I tried to run something like below

<cfexecute name="#ExpandPath('.')#\ffmpeg.exe" arguments=" -i #ExpandPath('.')#\2.avi" outputfile="#ExpandPath('.')#\output.log" />

But nothing happened...Nothing outputs on screen... Nothing in the file... Do you know the reason???

Thanks very much,

This topic has been closed for replies.

1 reply

Inspiring
April 30, 2009

There was an issue with cfexecute and ffmpeg where the process would hang.  I believe that was fixed in ColdFusion 8 Updater 1.

http://www.adobe.com/support/coldfusion/downloads_updates.html

The pre-fix alternative for windows is to use two extra arguments:  "/c" and "2>&1"

http://cfsearching.blogspot.com/2008/01/cfexecute-ffmpeg-and-mencoder-mystery.html

Example:

<cfexecute
   name="c:\windows\system32\cmd.exe"
   arguments='/c  "c:\pathToProgram\ffmpeg.exe" -i "c:\pathTo\yourFile.avi"  2>&1'
   outputfile='"c:\pathTo\output.log"'
   timeout="60" />