Jump to content

video


chiprivers

Recommended Posts

I am working on a small project that involves uploading, encoding and displaying video files in flash format.  I have got 'Video Encoder for Adobe Flash' and the command line version which I want to use to automate the encoding process. 

 

I have found this demo site http://flashvideo.sothinkmedia.com/flash-video-encoder-command-line/asp-demo/upload.htm that shows how it works and on the resulting page it gives you the  command to execute but I dont know where to integrate this into my php script? Can anybody help?

Link to comment
Share on other sites

If it helps, the executing command that it gives on the demo site is:

 


"%SystemDrive%\Program Files\SourceTec\fvec\fvec.exe" "c:\inetpub\wwwroot\flash-video-encoder-command-line\asp-demo\files\{9874E9CB-B9DB-4BBC-B61B-6EF56E686431}.wmv" "c:\inetpub\wwwroot\flash-video-encoder-command-line\asp-demo\files\{9874E9CB-B9DB-4BBC-B61B-6EF56E686431}.wmv.flv" -vw 320 -vh 240 -vz L -ac 2 -tn "c:\inetpub\wwwroot\flash-video-encoder-command-line\asp-demo\files\{9874E9CB-B9DB-4BBC-B61B-6EF56E686431}.wmv.jpg" -tw 160 -th 120

 

But where does this fit into my PHP?

 

Link to comment
Share on other sites

Just a quick guess without really knowing too much about it...perhaps you are supposed to exec(), this entire command from your automated php script.  I've never tried exec with windows server, but that is probably how you would do it in Unix.  Of course you would have to dynamically modify the paths and file names that begin the series of commands

Link to comment
Share on other sites

Well I guess you would have to build your exec statement from the information gathered from the form used to upload/submit the files.  Just look through the example statement, for what appears to be the path to the target file and outputted file and some of the information looks like width and height parameters,etc.

 

So once the form is submitted with the uploaded file build your exec statement up in a variable using the full path to the file...then just use exec($built_exec_statement)...just make the full command look like theirs but with your own information...again, this is just an educated guess.  there must be some documentation.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.