Ffmpeg for format
From wikinotes
Quicktime
ffmpeg -i in.gif -pix_fmt yuv420p out.mov
HTML5
ps>ffmpeg.exe -i in.mkv \ -y -strict experimental \ -acodec aac \ -ac 2 \ -ab 160k \ -vcodec libx264 \ -s 640x480 \ -pix_fmt yuv420p \ -preset slow \ -profile:v baseline -level 30 \ -maxrate 10000000 \ -bufsize 10000000 \ -b 1200k \ -f mp4 \ -threads 0 \ out.mp4<!DOCTYPE html> <html lang="en"> <body> <video width="640x480" controls> <source src="my/video.mp4" type="video/mp4"> Your browser does not support the video tag. </video> </body> </html>