Jump to content

FFmpeg file conversion from avi to flv


chanchelkumar

Recommended Posts

Hi all,

 

Am trying to convert a avi file to flv  using FFmpeg!!

 

Am using this one..

$srcFile = $uploadFile;
$destFile = $finalFile;
$ffmpegPath = "/usr/bin/ffmpeg";
$flvtool2Path = "/bin/flvtool2";

$srcWidth = "320";
$srcHeight = "240";

$srcAB = "32";
$srcAR = "22050";
// Call our convert using exec()


exec($ffmpegPath . " -i " . $srcFile . " -ar " . $srcAR . " -ab " . $srcAB . " -f flv -s " . $srcWidth . "x" . $srcHeight . " " . $destFile . " | " . $flvtool2Path . " -U stdin " . $destFile);

 

For this my wmv files are OK , But my avi files are not get converting..

Please help me??

Link to comment
https://forums.phpfreaks.com/topic/95570-ffmpeg-file-conversion-from-avi-to-flv/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.