Quick tip: Converting Video to Ogg, webM and other HTML5 formats

We show you how to quickly and easily convert video files to Ogg Theora, webM and H.264 "HTML5" video formats.

Quick tip: Converting Video to Ogg, webM and other HTML5 formats

 

So you've seen all the hype around HTML5 video and you like the sound of native video without plugins on your own site. But where do you start? How do you get it all working?

Converting Video to "HTML5" Video

First off you need to convert (encode) your source video file into the formats supported by current browsers. Simple right? Wrong.

As of today (October 2010) each browser supports different set of video codecs which means we need to encode the same file multiple times for each Video (hint: check out our "What's My IP Address?" App - fmbip.com for the most up to date information).

The multimedia codecs we're concerned with are:

  • Ogg Theora - Firefox & Opera
  • H.264 - Safari, Chrome and - potentially - IE9
  • webM - Opera, Chrome, Firefox and potentially IE9

We also need to convert to Flash to provide a fall back for older browsers.

Converting Video Files to "HTML5" formats

The best tool I've found for converting video files to "HTML5" formats is the Miro Video Converter produced by the team over at Miro (the "amazing open-source, non-profit video player").

Miro's desktop interface allows you to drag and drop files and then quickly convert them to all the formats we need (minus Flash). Simply process your source file to the other formats and your done.

Display the Video on your site

To get the video working on your site you'll need bullet-proof HTML markup to ensure maximum compatibility. Never fear however, as there are variety of tools out there that allow you to generate this quickly and easily.

The web development team here at Deep Blue Sky recommends VideoJS which offers an Embed Code Builder which utilises the javascript independent "Video for Everybody" syntax to quickly create the markup you'll require for your video tag.

However, as the name implies, VideoJS also offers a javascript library which enables you to quickly and easily skin your player to mirror YouTube, Vimeo and other popular services. Nice.

Simply follow the instructions on the site, provide the correct paths to the video files we created earlier (don't forget the Flash!) and drop the whole lot into your site. It should all work, if not then read the docs and recheck your video files for errrors.

Caveat - don't try this at home kids

Obviously this tutorial is a quick guide and as such is an oversimplification of what is a complicated and wide ranging topic.

Therefore, I strongly recommend that you familiarise yourself with the topic of native video before you attempt to add it to your website.

For further reading why not check out the Video chapter from http://introducinghtml5.com/ by Bruce Lawson and Remy Sharp, or contact the team of web developers at Deep Blue Sky for more advice?

Happy encoding!

Grow your business

Find out how Deep Blue Sky can grow your business.

  1. Digital benchmark
  2. Digital roadmap
  3. Digital engineering

Write a comment.

Responses. (9)

  1. D S

    David

    Update

    Any Audio Converter is a great tool for converting videos to Flash.

    In fact it's brilliant for all kinds of Video conversion tasks. Use alongside Miro for free!

    http://download.cnet.com/Any-Video-Converter/3000-2194_4-10661456.html

  2. E O

    Evgeny

    Miro

    How to change bitrate and picture size with Miro? Please, could you describe the actual process of how you convert HD video to the Web?

  3. C U

    Chainarong

    Fantastic Solution

    I've tried it. It looks great.

  4. B H

    Billy

    Miro Converter doesn't seem to export in Widescreen

    I have a widescreen source file (.mov) and convert to webm and theora but those new .ogv and .webm files are now in standard definition. Anyone else have this issue? Wondering if there's a setting I'm missing.

  5. m g

    margie

    webm

    It seems that Miro does not support batch convert and does not support basic editing.

    Bigasoft webm converter does convert video to html 5 video format webm, h.264 perfectly.

  6. M B

    Myke

    new version of miro sucks

    used version 2.6 of miro video converter for a while, and that works great - despite lack of batch processing. Its quick simple and does the job. Now it keeps crashing during conversion so I tried the latest version 3.x - they have added batch conversion which is good, but you cannot set the output folder and the theora conversions are really poor quality, so abandoned that. using http://easyhtml5video.com/ instead now.

  7. B E

    Belief

    video to ogv

    I use iDealshare VideoGo to convert video to OGV or WebM or other HTML 5 video fomrat.

  8. S F

    Strongger

    video to ogv

    I use iDealshare VideoGo to convert video to Ogg, webM and other HTML5 formatsIt support converting almost all kinds of video like MP4, AVI, WMV, MKV, MPG, VOB, FLV, 3GP, WTV, DAV, AVCHD etc to OGV, OGG, WebM, etc.

  9. H B

    Harriet

    Found it!!

    http://www.pazera-software.com/products/ogv-converter/This Jacek Pazera person has developed the only sufficient program I've been able to find all day.Apparently he has a whole slew of them!The WebM converter still has a fatal bug (at least with the settings I'm using,) but I've used the OGV converter with no trouble at all.Most Adobe Premiere users already know off the fnordware plugin for WebM:https://github.com/fnordware/AdobeWebM