On a Linux machine  create a bash file like this
-----
#!/bin/sh

ffmpeg -i $1 -r $2 $3 &

-----
The ampersand at the end tell the bash to run in the background.
the $n is parameters.

>From php call it like  this:
$command = mybashpath.sh inputfile.mpg 24 outputfile.flv;
*exec* ( $command );

As you can see I called the bash file with three parameters.

If you set a log for the ffmpeg command you will be able to check the
execution status and show it in the index view


I am sure there is a way to do it with Windows also.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to