<?php
/******************************************************************************
Author : Jijomon.T
Email :hide@address.com
/*******************************************/
#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
######### Please complete All the step before Trying the script #############
# You can also use php-ffmpeg lib for this
class convert
{
function convert($source,$destination)
{
/* @source=source file including full physical path
@destination=destination file including full physical path*/
// this will create a .flv from .wmv
// you can chnage the other parameters if you are an expert :)
exec("ffmpeg -i {$source} -f flv -acodec mp3 -ab 64 -ac 1 {$destination}");
}
}
$source="pw.wmv";
$destination="jijo.flv";
$jf=new convert($source,$destination);
?>