Tag Archives: video flash multimedia h.264 mpeg avc

Presenting MPEG-4 AVC / H.264 Videos on the Web with Flash 9

While Adobe Flash (former Macromedia Flash) managed to take the top position of WWW based tools for watching video it was stuck with these flv video files for a long time. With version 9 now H.264 (or AVC as it is called in context of MPEG-4) encoded videos are supported along with popular container formats like mp4, mov or 3gp. Or in short words: Flash can now play iPod and PSP videos.

Now for the meat: How to get your AVC files into a web page?

  • ipod-extension-mediacoder.pngEncode your video file. Use MediaCoder or any other tool to create an iPod or PSP compatible video. Take care that you select AVC for your target codec. It’s called MPEG-4 AVC in the PSP as well as in the iPod extension of Mediacoder for example (see screenshot).
  • Download the FLV Mediaplayer and unzip it somewhere.
  • Create a website where your video should be played and move the FLV Mediaplayer along with associated files and the video in a subdirectory of the page’s directory.
  • Use the setup wizard to create the code for embedding your player.
    • Select “Mediaplayer with a single FLV”
    • Source: [relative subdirectory]/mediaplayer.flv
    • Fill in width & height (you chose it in your encoding tool)
    • Put down the path to the .mp4 file
  • Copy the resulting code to your web page and test it in a browser

That’s the easiest way to present a video. More sophisticated methods include streaming or configuring the player with JavaScript. You can also add playlists, show a logo and jump to timepoints.

Related Links