

We'll start out our code with getting our variables: getFrameWidth()) I'll be using the clock.avi located in every windows system. What we mainly need is the width, height & FPS (frame per second) so that we can tell FFMPEG about. (You can't use what you have in "memory", so you'll have to look on how to upload a file, once you got that and have the path of the file, we'll start our script to invoke FFMPEG-PHP and get the file's resolution.

So, before doing any of this, you should make sure that your file has been uploaded to somewhere and you have the full path to it. Send the script to FFMPEG-PHP and get it's info So, let's get started, there are actually a few steps into converting a file to FLV which are shown below1. FLV is the most widely used type of codec that runs on most Flash players. So, as I've written in an earlier article on how to install FFMPEG on your server, while there are those who probably use a “YouTube Clone” script, there might be those who want to create their own using FFMPEG & PHP.
