php - Convert video while uploading -
i want convert video (say wmv format flv) while user uploads it. can either convert video or upload individually, how them @ once?
iam using ffmpeg conversion, like:
ffmpeg -i wmv.wmv wmv.flv
but iam unsure steps followed convert , upload video. need use ajax or that?
ffmpeg pretty powerful plugin
for php side execution example
<?php /*** convert video flash ***/ exec("ffmpeg -i video.wmv -ar 22050 -ab 32 -f flv -s 320x240 video.flv"); ?>
the terms used
-i input file name -ar audio sampling rate in hz -ab audio bit rate in kbit/s -f output format -s output dimension
to know advanced uses of ffmpeg check link
Comments
Post a Comment