Jump to content

FFmpeg file convert problem


The Little Guy

Recommended Posts

Why does my FFMPEG successfully convert some files to a flv format, but not others? it will convert some mpg file, but not others. Why?

 

Does it have to do with my execution code?

<?php
// The following file names are examples:
// $dir = directory name
// $fileName = myfile.mpg (or some other video file name/extension)
// $flvName = myfile.flv
exec ("/usr/bin/ffmpeg -i '../../tzfiles.com/users/$dir/$fileName' -sameq -qmax 100 -s 320x240 -aspect 4:3 '../../tzfiles.com/users/$dir/$flvName'");
?>

 

Could it be that it doesn't have the codecs installed that the mpg files require?

 

What happens, is when I upload the file, it will run the file successfully, Which it uploads the original mpg file, then converts it to a flv file, then deltes the mpg file. It does all of that, but the flv file is 0 bytes long. Any reason why this could happen?

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.