Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 video player converter

I'm developing a site where users can publish their videos (similar to YouTube). Is there a way to make my website automatically convert mp4 file to ogg and webm? Are there any plugins? It would be great if you dropped a link to a plugin that is small and powerful.

like image 343
Liukas Avatar asked Jan 31 '12 19:01

Liukas


1 Answers

your best bet would be to spin up a server install FFMPEG and then on upload batch process with the following

ffmpeg -i INPUTFILE -b 1500k -vcodec libx264 -vpre baseline -g 30 OUTPUT.mp4

ffmpeg -i INPUTFILE -b 1500k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 30 OUTPUT.webm

ffmpeg -i INPUTFILE -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 OUTPUT.ogv
like image 155
samccone Avatar answered Oct 31 '22 10:10

samccone