How can I embed an mpg into my webpage

Wermerb picture Wermerb · Apr 4, 2012 · Viewed 25.5k times · Source

I would like to embed mpg (dvd compliant mpeg2) movie files to my web page. I do not have any chance to convert these videos to any other format. This web is only for personal use so any type of solution would be perfect.

Really appriciate any advice or solution.

Here is my code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>

<embed src="my_video.mpg" autostart="false" height="350" width="500" />

</body>
</html>

SOLVED:

My solution for this problem was that i had to reinstall the wmp plugin for my browsers and its working fine

Answer

afaf12 picture afaf12 · Apr 4, 2012
<video width="500px" height="350px" autobuffer="autobuffer" autoplay="autoplay" loop="loop" controls="controls">
    <source src='my_video.mpg' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>

Source

Video tag specification