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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.