baja Posted September 13, 2010 Report Share Posted September 13, 2010 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.