Monday, June 8th, 2009
Firefogg: Ogg Theora Encoding Plugin

Test Drive the latest Thusnelda theora encoder with in-browser Video Encoder Firefogg.
Firefogg
Firefogg can also encode to a local file and an example local transcoding application is on the site. The sample application builds on jQuery UI so it supports custom themes. Integration for firefogg with wikimedia commons are in testing. With Firefoxs video tag support this should be a helpful extension for converting video to ogg theora or supporting ogg theora video contributions in your website.
Firefogg can minimize the need for costly server side transocding infrastructure. It also helps avoid the extra transcode problem that plagues net video where a user saves to a compressed format locally to save time uploading; then the server re-transcodes the video so others can view it with a flash plugin. With Fireofogg we can go strait from the high quality source to the format distributed on the web site.
Here is an example of using the API yourself to convert video:
-
-
if(typeof(Firefogg) == 'undefined') {
-
alert('You dont have Firefogg, please go to http://firefogg.org to install it');
-
window.open('http://firefogg.org');
-
}
-
-
var ogg = new Firefogg();
-
if(ogg.selectVideo()) {
-
var options = JSON.stringify({'maxSize': 320, 'videoBitrate': 500});
-
var data = JSON.stringify({'title': 'example video'});
-
ogg.upload(options, 'http://example.com/addvideo', data);
-
var updateStatus = function() {
-
var status = ogg.status();
-
var progress = ogg.progress();
-
-
//do something with status and progress, i.e. set progressbar width:
-
var progressbar = document.getElementById('progressbar');
-
progressbar.style.width= parseInt(progress*200) +'px';
-
progressbar.innerHTML = parseInt(progress*100) + '% - ' + status;
-
-
//loop to get new status if still encoding or uploading
-
if(ogg.state == 'encoding' || ogg.state == 'uploading') {
-
setTimeout(updateStatus, 500);
-
}
-
//encoding sucessfull, state can also be 'encoding failed'
-
else if (ogg.state == 'done') {
-
progressbar.innerHTML = 'Upload done. You can close this window now';
-
}
-
}
-
updateStatus()
-
}
-












Crowdsourcing the transition to open video – nice!
But whats the fox doing to that fish??
Great extension and even better article picture :)
In other news – The mystery about the gender of the famous Firefox has unraveled after a long period of speculation.
@Unfocused
Giving it the tongue.
@tsonev
How so?
Yes, the logo is amazing, but the fish does not really look to be consenting…
that poor fish!
Even though I love this idea, it’s wrong on so many levels it just cannot make its way into production code.
The fox reminds me of Troy Mc Clure.
Makes me want to write a firefox extension just so I can create a logo for it with a rotated firefox on top, that’s genius.
I don’t understand what’s the big deal with this encoder.
there are a lot of better services and encoders in the market.