This post will outline how to download and install the ffmpeg video decoding and conversion software, and install the php extensions required to easily utilize it from a web site. These instructions are for windows users.
For you linux users out there, sorry… but this ain’t no apt-get install ffmpeg
ffmpeg is used for lots of reasons such as:
- converting uploaded video to flv format
- converting uploaded video to any other format
- get thumbnails from video
- remove or edit audio on a video clip
- enhance or reduce video quality
Requirements:
- You must have PHP version 5.2.6 or above installed
- Windows 2003/XP/Vista/7
Installation Steps:
- Download the latest build of FFmpeg for windows
- http://tripp.arrozcru.org/
- Copy it into an easy folder to access (ex. c:ffmpeg)
- Test to make it works
- Download a sample video
- Run the following command to test video conversion
i. ffmpeg.exe c:ffmpegtest_input_video.mp4 c:ffmpegtest_output_video.flv
- You can now convert videos by executing a command via PhP or any other language
- $result = exec(‘c:\ffmpeg\ffmpeg.exe -i c:\ffmpeg\test_zone\input.mp4 c:\ffmpeg\test_zone\test_output_video.flv’);


Whoa, things just got a whole lot esaeir.
This forum ndeeed shaking up and you’ve just done that. Great post!