I am developing php pages for mobile, in one page i have to display video,
now i am testing the php page in google chrome, but in Google chrome not playing mp4,avi,etc. chrome playing only ogg and ogv format.
I heard about ffmpeg, i installed in my Ubuntu 12.4 environment,
but it is also not converting to videos to ogg and ogv fromat.
it converting other format like mp4,avi,ect.
Displaying video using
<video width="320" height="240" controls="controls" autoplay="true">
<source src="/SeeSayDo/<?php echo $model->av;?>" />
</video>
user may uploads any video format like avi,mp4,flv,etc, so i have to display any format they uploaded.
You shouldn’t be trying to play an AVI in a web browser ever. The formats that you should use in the HTML5 video tag are H.264 and Ogg/Theora (and maybe WebM), and that will get you the most coverage of supported browsers (see http://caniuse.com/#search=video for supported browsers/formats).
You will have to detect the browser and/or device and choose the proper video format.
Read this for help converting your videos.