اولا لا تفرحوا كثيرا
.. فالأمر ليس بتلك السهولة
توجد اعدادات صغيرة قبل استخدام الكلاس
وجدت الكلاس .. فأحببت مشاركتكم به 
Format Converter (ffmpeg) - PHP Classes
This is a very simple class that can be used to convert audio and video clips.
It uses the ffmpeg program to convert the clips. The class simply passes the input and output clip file names to ffmpeg when it executes the program.
ffmpeg supports many types of audio and video formats like MPEG, Flash Video, AVI, Windows Media, etc..
نبدأ بالكلاس
كود PHP:
<?
class convert
{
function convert($source,$destination)
{
exec("ffmpeg -i {$source} -f flv -acodec mp3 -ab 64 -ac 1 {$destination}");
}
}
$source="from.wmv";
$destination="to.flv";
$jf=new convert($source,$destination);
?>
والاعدادات باللغة الانجليزية
كود:
#Step 1
#Install LAME
#Download from LAME site, type the following command to compile and install it:
#./configure --enable-shared --prefix=/usr
#make
#make install
#Step 2
#Install FFmpeg
#Download from FFmpeg site through CVS, type the following command to get the latest copies from CVS and save to your $home #(currenly path after login into consule) with folder name "ffmpeg":
#Step 3
#./configure --enable-gpl --enable-mp3lame --enable-shared --prefix=/usr
#make clean && make
#make install