Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play an AVI file in a video tag?

I'm wondering if it's possible to make a browser play a AVI file within a video tag.

Everything I found on the web talking about it focus on MP4 and Ogg formats but nobody talks about the AVI format.

The only solution I found is to drop the video tag and make the video playable using JW Player.

like image 928
Muffun Avatar asked Jul 08 '11 13:07

Muffun


People also ask

Does video tag support AVI?

HTML5 Video tag only supports three video formats i.e. MP4, WebM and Ogg. It does not support avi format.

Why does AVI file not play video?

The AVI file has audio and video data streams to play together in synchronization. So, when an AVI file has a video stream with a modern codec for compression, VLC can't play it as it cannot decompress that codec.


1 Answers

Only the DivX web player can stream avi files. actually, theres a plug in for vlc to stream avi files also, but its buggy.

Sometimes it's a pain in the ass to get a solid answer. its one of the big sucks of the internet.

<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" 
            width="660" 
            height="300" 
            codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"> 
<param name="custommode" value="stage6" />
<param name="autoPlay" value="false" />
<param name="src" value="link-to-avi" />
<param name="bannerEnabled" value="false" />

<embed id="np_plugin" type="video/divx" 
src="link-to-avi" 
custommode="stage6" 
width="660" 
height="300" 
autoPlay="false"  
bannerEnabled="false"
pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object>

note where it says "link-to-avi" twice :)

like image 132
scumtag Avatar answered Oct 01 '22 21:10

scumtag