Jump to content

baja

New Members
  • Posts

    2
  • Joined

  • Last visited

baja's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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
  2. good work dude. I am having a problem with video conversion. where should i post it?
×
×
  • Create New...