Jump to content

FFmpeg converting to flv but with 0 file size


HemZone

Recommended Posts

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

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).

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.