Copy link to clipboard
Copied
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,
Copy link to clipboard
Copied
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" />