Hello Expert,
I am trying to convert into .flv file from other format.i am using this command
$srcFile = “/home/amitadut/public_html/gallery_video/robot.avi”;
$destFile = “/home/amitadut/public_html/gallery_video/robot.flv”;
$ffmpegPath = “/usr/local/bin/ffmpeg”;
$flvtool2Path = “/usr/local/bin/flvtool2?;
// Create our FFMPEG-PHP class
$ffmpegObj = new ffmpeg_movie($srcFile);
// Save our needed variables
$srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth());
$srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight());
$srcFPS = $ffmpegObj->getFrameRate();
$srcAB = intval($ffmpegObj->getAudioBitRate()/1000);
// Call our convert using exec()
exec($ffmpegPath . ” -i ” . $srcFile . ” -ar ” . $srcAR . ” -ab ” . $srcAB . ” -f flv -s ” . $srcWidth . “x” . $srcHeight . ” ” . $destFile . ” | ” . $flvtool2Path . ” -U stdin ” . $destFile);
But file is creating with 0 kb filesize.
Can you tell me why 0 kb is creating?
Regards