Flipkart

Saturday, July 18, 2009

Convert videos to FLV in one line..

Just enter this single line in your code to convert a video file of wmv,avi and all such formats to .flv format....The only thing you need to make sure is that fffmpeg is already configured in the server which is generally done....


exec("ffmpeg -i $srcFile -ar 22050 -ab 32 -f flv -s 320x240 $destFile");

where $srcFile is the location of the source file and $destFile is the location of the destination file.

No comments:

Post a Comment