H.264 HD flash demos
Some extraordinary results for flash using the H.264 codec can be seen on this page. Double click the image for it to play in full screen.
The encoding was done by Fabio Sonnati (his English language blog is here) and he gets a 1280x 720 version of the trailer for the Sigur Rós concert/tour film Heima into a 500kb/s stream. To put that in context, Youtube's older .flv streams are usually at about 200-250kb/s at 320x240. So at just over twice the bandwidth, Mr Sonnati has managed to cram 12 times the image!
Now there are a few caveats.
- The Heima footage is very compression friendly: clean, grainless images, largely still frames or slow pans with little fast cutting and almost no fades or dissolves. Faster cutting, grainer footage or more movement (especially hand-held) would look much worse. (I posted before about how to get Youtube or web video in general to look better and Heima it seems follows almost all those rules - it still looks GREAT in HD though.)
- This was hand crafted compression. On his blog S. Sonnati explains that he worked very hard and carefully optimised the settings for the footage at hand. This wasn't a pre-baked server side formula as used by Youtube/Vimeo et al.
- Despite the above, severe compression artefacts are very clearly visible on the footage, expecially in mid range detail, high frequency/contrasty detail shows up quite clearly but slightly softer textures and backgrounds quite obviously suffer at this extraordinarily low bit rate, and smooth gradients (such as skies and clouds) have noticeable quantizations blocks in them.
Still, let me just say that again, 720 HD at 500kb/s. The entire four minute video is only 15MB!
S. Sonnati reckons "generic" 720p footage (so a bit more aggressive, but not The Bourne Ultimatum or 24) would look OK at about 1 Mb/s and above (i.e. 2 times the data rate here) for similar results, 1080p would look OK at 2Mb/s and above.
By comparison, FFmpegX recommends 2.5 Mb/s for 720p and 5.8 at 1080p (assuming 24fps) if using all the features, encodes can be a little more efficient than that. Apple trailers in H.264 run at about 5MB for 720p and 8-10MB for 1080p.
There are more examples at www.lithium.it/fvf/demoH264/demo.html, including a 1.5 Mb/s 1080p version of the Heima trailer, the far more visually aggressive trailer for a Nine Inch Nails concert film (1080p 2Mb/s), as well as some very sedate 720p BBC wildlife footage encoded at slightly higher bit rates. Be warned, you need a fairly powerful computer to watch the footage at their full frame rates (they work OK for me well on an 2Ghz intel core duo iMac with 2GB of ram) and the server they on doesn't really have enough bandwidth and there is a lot of buffering on the higher bandwidth videos.
Labels: distribution, Flash, h.264, high definition, quicktime, web video, Youtube
