Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Images and Media

PHP + ffmpeg video converter

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

PHP + ffmpeg video converter - CodeCanyon Item for Sale


Ad: Bluehost hosting

Update: 23.09.2010.

- Improved conversion to mp4 / sound distortion problem is solved

Update: 19.09.2010.

- added support for ogg & webm video formats

Update: 16.09.2010.

- script adapted for linux users

this script is used for converting videos to severeal diferent video formats and audio mp3 format.

1. converts input video to several video formats including audio format mp3
2. calculate video duration in next format 00:00:00 (hh:mm:ss)
3. takes picture from video
4. prevents uploading unsuported files before uploading is startet
5. user have an option to set quality of video/audio file
6.suported files:
input:3gp, avi, mpg, mpeg, mpe4, mov, m4a, mj2, flv, wmv, mp3, ogg, webm
output:.flv, mp4, avi, wmv, mp3, ogg, webm


1. start step_1.php
2. choose your video file and follow instructions
3. only extensions for videos are enabled for upload – if you choose some non-suported extesnion you will get alert window BEFORE upload is started
4. Choose output video type and quality settings

5. wait until conversion is over – new video duration is displayed
6. image for video is created
7. preview your video / or download link is shown
8. log file is created for every video conversion and image creation

all uploaded videos are renamed to a name based on a microtime stamp like 0342731001282903919.avi this will make easier for ffmpeg to read uploaded file before converting (preventing video names with special characters)

log file of every conversion is created with a same name like converted video

Image from video is taken based on total video duration, php splits total video duration time by 2 and at that point picture is taken from video

free counters

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


15 September 10

Last Update:
24 September 10

Compatible Browsers:
IE6, IE7, IE8, Firefox, Safari, Opera, Chrome 4, Chrome 5

Files Included:
JavaScript JS, HTML, CSS, PHP

Software Version:
PHP 5.x


eCommerce, eCommerce, All Items, audio, audio convert, convert, ffmpeg, mp3, upload, video, video convert