HTML5 Guidelines for Web Developers

(coco) #1

80 Chapter 4—Video and Audio


Figure 4.4 Settings for video conversion in Firefogg

But Firefogg is more than just a graphic interface for FFmpeg. The extension
comes with a JavaScript library, which makes it very easy for web developers to
implement video uploads for users. The advantage is obvious: Instead of upload-
ing a video format in low compression and then converting it on the server, the
conversion takes place on the client side before the upload. This saves band-
width and computing power on the web server’s side. Wikipedia is also betting
on this concept, so we can hope that the development of Firefogg will continue.

The website http://firefogg.org/dev/chunk_post_example.html shows in a few
lines of source code how the Firefogg JavaScript library works. Firefogg divides
the upload into 1MB chunks, which means that if the Internet connection fails,
you do not need to upload the entire video again.

NOTE
Free download pdf