Re: using PHP - how to convert video (avi, mp4, mkv) or even extract audio/video/subt
PHP video conversion script
Video workshop - v1.0
This is a video conversion PHP script created by me.
It uses mencoder/ffmpeg for encoding videos from one format to another.
There are several supported extensions :
flv
avi
3gp
mov
mp4
mp3
There are various conversion options that let you change video bitrate,audio bitrate,video dimensions,audio frequency and channels. You can also watermark your videos using this script.
Requires : FFmpeg / MenCoder installed on server.
The script is best suited for video based sites hosted on a VPS / dedicated server.
Installation : Follow readme.txt and then upload all files to your webhost.
Download Page
---------- Post added at 06:30 AM ---------- Previous post was at 06:27 AM ----------
Also 1 More.................
Conversion options:
- Upload & convert
- Convert from url
- Cron job
including:
Flash xml video uploader (AS3)
Features:
- supported input files: 3gp, avi, mpg, mpeg, mpe4, mov, m4a, mj2, flv, wmv, mp3, ogg, webm
- converts to .flv, mp4, avi, wmv, mp3, ogg, webm
- custom audio & video quality
- custom video size
- calculate video duration in next format 00:00:00 (hh:mm:ss)
- upload progress bar
- conversion progress bar
- custom number of extracted images
- custom size of extracted images
- video preview with slideshow of extracted images on mouse over( like seen on dailymotion.com)
- auto reloading pages when part of process is finished (no need to wait for click)
- everything is stored in database
- easier usage
Flash uploader
– xml driven
– all tweeneng made by AS3
– auto load next page after uploading is finished (with 10 sec. delay – can be set in AS)
– max. input file size, suported input types, where to go after uploading is finished and displaying status messages can be set in xml file
– CS3 & CS4 .fla
– can be used for uploading other types of files, like documents or images. Explination in help file.
Convert from url:
-. support downloading and converting videos from internet (if video is allowed to be download)
- sample of link:
http://www.example.com/videos/test_video.mp4
- custom maximum allowed video size
- all features mention above
Cron job – Upload now and convert later
User can upload and set output quality for output video, when cron job is started conversion is made automaticly and after conversion is finished, it sends the user link for download new video (via e-mail in this example)
Link Page