I am trying to set up a kinda on the fly page for converting video to flash via coldfusion and ffmpeg.
cfsearch has a cfexacute that converts the video but you have to put the file name in the code. http://cfsearching.blogspot.com/2008/01/cfexecute-ffmpeg-and-mencoder-mystery.html <!--- GOOD: Use both the /c flag and the redirect 2>&1 option---><cftry> <!--- using a large file and a short timeout value ---> <cfset argString = '/c d:\bin\ffmpeg.exe -i "d:\bin\testInput.mpg" -g 300 -y -s 300x200 -f flv -ar 44100 "d:\bin\testOuput14.flv" 2>&1' > <cfexecute name="c:\winnt\system32\cmd.exe" arguments="#argString#" outputFile="d:\bin\results14.log" timeout="120" /> <cfcatch> <cfdump var="#cfcatch#"> </cfcatch></cftry> --------- This blog has kinda the same thing but it doesnt work as well as well at converting as cfsearch but has it to where you can use a upload page. http://johnfallen.instantspot.com/blog/YouTube <form action="#[your action here]#" method="post" enctype="multipart/form-data"> <label><strong>VideoFile</strong> (best to keep under 100 meg) sad ... :(</label><br /> <input type="file" name="VideoFile" /><br /> <input type="Submit" /> </form> <!--- uploadVideo ---> <cffunction name="uploadVideo" hint="I place the flash file into the [your directory for origional video here] directroy. I then parse a video into flash with FFMPEG. I then put the uploaed video into the [your directory here] folder, and return the file name of the video." displayname="Upload Video" access="public" returntype="any" output="false"> <cfargument name="VideoFile" hint="I am the video being uploaded.<br />I am required." /> <cfset var VideoFileName = 0 /> <!--- upload the video ---> <cffile action="upload" destination = "[your directory for origional video here]" nameconflict="overwrite" filefield="VideoFile" /> <!--- convert the video with FFMPEG ---> <cfexecute name = "#ExpandPath('/')#ffmpeg.exe" arguments = "-i [your directory here]#cffile.SERVERFILE# -s 400x300 -r 15 -b 1280k -ar 44100 -ab 64 -ac 2 [your directory for converted video here]#replace(cffile.SERVERFILE, ".", "")#.flv" outputFile = "C:\" timeout = "90000000"> </cfexecute> <!--- create the file name ---> <cfset VideoFileName = "#replace(cffile.SERVERFILE, ".", "")#.flv" /> <cfreturn VideoFileName /> </cffunction> --- I am trying to combine the two to get something where I can use a upload page and then send the file name to the database so it can be called later on a page. This is alittle over my head but am trying my best to figure it out and learning alot as I do it but still need somehelp. When done will save me a bunch of time on my vblog and not have to use Youtube or something like that. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:318089 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

