tags:

views:

23

answers:

1

Hello All,

I have php script from where user can upload the video file. The file may be mpeg, flv and avi.

Should I need to use two player in html on flash player for flv and second embedded MediaPlayer1 for other files.

But how the embedded code will be opened at mac/linux based client side. Is the only way to convert mpeg into flv format??

What about html 5 ?

A: 

If you really want to play MPEG (non-MP4) or AVI in a web page, yes, you will need to embed a Media Player, with all the consequent codec, compatibility and stability problems that led people to using Flash video (and latterly HTML5) instead.

Non-Windows machines can play these files if they have suitable plugins and codecs installed, as long as you include a standard <object type="...">, or old-school <embed> tag inside the IE-specific <object classid="..."> ActiveX media player embedding.

However, yes, for viewer convenience most video-sharing sites do convert uploaded files into FLV, or—these days more likely—MP4 (which plays on recent Flash players as well as some HTML5 <video> implementations), possibly with OGV or WebM as well (for HTML5 browsers that don't implement MP4 for licensing reasons).

bobince
Yes, any user who does not have the codecs used in the video file won't be able to play it. Windows XP includes an MPEG-1 codec but only Vista onwards includes MPEG-2. There are *many* possible codecs that can be used by AVI files. It's a horrible mess. Which is why most sites transcode to Flash/HTML5 video instead.
bobince
thanks bobince !!!
Acharya