HemZone Posted January 5, 2012 Share Posted January 5, 2012 I'm having problems regarding conversion of video to flv format. Below is my command for conversion, but it seems to convert the video to flv but the file size remains 0 KB, what could be the problem, please suggest. My command: $command =$ffmpegPath . " -i " . $srcFile . " -ar " . $srcAR . " -ab " . $srcAB . " -f flv -s " . $srcWidth . "x" . $srcHeight . " " . $destFile . " | " . $flvtool2Path . " -U stdin " . $destFile; Please Help me ASAP. It's urgent Thanks in advance Regards Hem Quote Link to comment https://forums.phpfreaks.com/topic/254394-ffmpeg-converting-to-flv-but-with-0-file-size/ Share on other sites More sharing options...
The Little Guy Posted January 5, 2012 Share Posted January 5, 2012 I assume you are using exec() I have had issues with that for FFMpeg, switching to shell_exec() fixed the issue for me. I also recommend putting apostrophes around the file names, as a file/path with a space in it will not work. Another thing to do, is echo out the string and see if it is correct (paste it into a new reply). Quote Link to comment https://forums.phpfreaks.com/topic/254394-ffmpeg-converting-to-flv-but-with-0-file-size/#findComment-1304611 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.