Sign In

    Enjoy FOSSwire's content? Have it delivered! Subscribe

    Opening Up Video on the Web - Is it Possible?

    Film strip image - by dpade1337 on Flickr

    The web works because of open standards. It doesn't matter whether you're reading this on a Firefox on Linux, Opera Mini on a BlackBerry, IE on Windows, or even (possibly with a few issues) WorldWideWeb on NEXTSTEP. You can still read this content, because all of the protocols and languages used to encode and deliver this content to you are open standards.

    For text and images, this pretty much works. Video, on the other hand, is a much more challenging issue. There are lots of competing ways to encode and deliver video on the web, some of which are available under open licences (say, Ogg Theora) and some of which are not (Flash video). And, unfortunately, the open ways to do it aren't the most popular right now and don't have much out-of-the-box support beyond open source operating systems.

    Mozilla recently announced that they are putting $100,000 behind the Wikimedia Foundation to push the Theora video codec, which is free and open. Support for the Theora codec will also be built right into Firefox 3.1, which should make it easier to distribute content encoded with it, without users having to install special software.

    That's great. But are we already too late to push for open video standards, with proprietary platforms and FOSS-incompatible standards already reaching ubiquity?

    Companies like Microsoft, Apple and Adobe are unlikely to want to standardise on something else, when they already have made investments elsewhere. Apple, for example, has put huge weight behind the MPEG-4 platform, particularly the H.264 video and AAC audio codecs and it would seem very unlikely that they would then invest in any other platform.

    Now this MPEG-4 stuff is an ISO standard; we are even reaching a certain degree of convergence across traditional tech companies. I can take an H.264/AAC movie and play it on an Xbox 360 or an Apple TV and it all works exactly the same.

    So why can't free software play nice with this MPEG-4 stuff? It's an ISO standard, right? The problem is that the codecs that make up MPEG-4 are often subject to patents and other intellectual property restrictions that leave open source and free software out in the cold. The potential threat of legal action means that while support might exist, it is challenging to bundle and a bit of a grey area.

    The free software community aren't able to participate in any standard video and audio formats unless these standards are actually going to work within their licensing frameworks and not be embroiled in IP soup.

    So, free software becomes less of a viable platform if it simply can't do this out of the box. This means that it either won't grow very much and spread the greater good (if you will), or we have to make sacrifices about the 'purity' of our software, which is more palatable to some than others.

    Theora logo

    Does it then make sense for us to make our own formats, Theora, for example, and try to push them to compete with the existing ones? Or, does this just make the whole codec mess more, well, messy? The pragmatist in me doesn't think this competition approach makes an awful lot of sense. I'd be perfectly happy to compromise and just run with the MPEG formats, however imperfect.

    Don't get me wrong, though - I think having a video format suitable for the FOSS world which works on FOSS out-of-the-box is vitally important. It's just that this makes it a real challenge for content providers actually support both free software users and, well, everyone else that doesn't ship that stuff. Two versions of the same content? It's too difficult unless a big part of your audience are using pure FOSS, so it's not considered worth doing.

    We're in a bit of a deadlock situation. Maybe I'm cynical, but it feels like the goal of having a truly open web, for all the content available on it, is an impossible one. At least, that is, until some major change comes around and our community get to have a share of the influence on the next big standard.

    Oh, and when US intellectual property law gets a bit more sensible.

    What do you think about open standards on the web? Is this goal of everything being in an open format achievable, now or in the future? Share your thoughts in the comments.

    Film strip image at top of post is by dpade1337 on Flickr, licensed under Creative Commons BY-SA. The Xiph Fish Logo and its theora.org variant are trademarks of Xiph.Org.


    Quickly Convert Ogg Theora to Flash Video

    Encoding video from one format to another isn't generally considered the most fun job in the world.

    One of the video encoding tasks we need to do here for FOSSwire video posts is converting recordMyDesktop Ogg Theora video files into Flash format for the inline player (unfortunately, a necessarily evil).

    Traditionally, this would mean dropping to the command line and hand-feeding the encoding instructions to a program like ffmpeg or mencoder.

    Ubuntu user JeanClaude (also known as siafulinux) has put together a script for GNOME's File Manager (Nautilus) that makes the Theora to FLV encoding process really simple.

    The script can be downloaded here and requires GNOME, Zenity and the video encoding tool mencoder to be installed.

    Once you've downloaded the script, you simply extract the file, and double-click install in the extracted folder (choose Run if asked). This drops the script into the right folder.

    Running installer

    Now, to convert an Ogg Theora video file to Flash, with default settings, you simply do the following.

    Browse to the Ogg Theora source video.

    Right-click the source video. On the menu, choose Scripts > Ogv to Flv Converter.

    Run converter from context menu

    Wait while the conversion happens. When it's done, you will have a nice shiny Flash video file, ready for distributing via the web.

    Converting file dialogue

    It really is an extremely simple and handy way to very quickly convert a video to Flash video and could easily save a lot of time if you're frequently working with video on Linux.

    There are, obviously, plenty of situations where you want more control over the conversion settings, but as a quick two-click solution, Ogv to Flv is a win.

    Kudos should go to the developer for making this little script not only really easy to use, but also very simple to install.

    If you want to see Ogv to Flv Converter in action, watch this YouTube video made by the author.


    Gnac - A Simple Program to Convert Audio Files

    Gnac is a simple program for GNOME that allows you to convert audio files from one format to another.

    It is built atop of the Gstreamer media framework, meaning that you can import any files that Gstreamer is capable of playing and then output to Gnac's supported formats for the conversion.

    Once you've installed the program, it appears under the Sound & Video category, where you can launch it.

    Gnac on GNOME menu

    The interface is extremely simple. Use the Add button, or drag in a set of input files that you want to convert. Then select the output format from the list box at the bottom. Once you've done that, press the Convert button.

    Gnac interface

    The default export options allow you to convert to Ogg/Theora and FLAC as well as WAV and Speex. While the number of export formats built in by default is nowhere near as high as with some programs, particularly those based upon ffmpeg, keeping just a few formats does keep the application simple.

    For those people familiar with Gstreamer, it is possible to add to that list and add a new 'audio profile' with custom settings, so you are not strictly limited to those audio export formats.

    Despite that limitation, Gnac is an effortlessly simple program with a great interface and could come in extremely handy if you're trying to batch convert a music collection to FLAC or Theora, for example.

    The ability to drag a whole load of files in, choose the format and click Convert and then just leave it doing its work makes it perfect for batch jobs.

    Gnac 0.1.1 has recently been released, packages for your distribution along with source code to build yourself can be downloaded from here.


    1. 1
    2. 2