MPEG4 vs. H.264
In recent months we have seen numerous companies introduce H.264 (aka MPEG4 Part 10) as the default codec in cameras, video players and other similar devices. Personally, I have been bombarded by e-mails from Chinese and Taiwanese manufacturers with large bold fonts in a red colour claiming that their cameras now support H.264. I therefore found myself asking the question what this hype is all about and decided to do my own research rather than accepting other people’s claims as de-facto standard.
H.264 video codec’s are quite complicated and for the sake of this article I shall try to keep it as simple as possible. The main advantage of H.264 over all other compression formats is that it can achieve higher quality video at similar data rates or relatively lower data rates for same quality video. This is all well and good, but the question to be ask is "by how much" and "at what cost"?
During my research I have seen many graphs and calculations claiming that the difference in compression and bit rate between H.264 and MPEG4 are as large as 30 or 40 percent and in some cases even 50 percent. These calculations do not list their assumptions and test criteria and therefore the only way to be certain was to conduct a bench test myself.
The bench test consisted of an H.264 camera pointing towards a busy street and another H.264 in an empty office pointing towards some desks and chairs. Both cameras were connected wirelessly to an access point that is hard wired to a switch and a Netbook (Asus EEE PC 901 running Windows XP) and a Desktop PC (Core Duo 1.6GHz and 4 GB memory running Windows XP) connected to the switch with a CAT 5 cable. Both cameras are of the same make and model while Internet Explorer (running the manufacturer’s ActiveX control) was used to view the cameras. A 3rd computer was connected the network to monitor the traffic on the network, act as a gateway and provide DHCP and some other services to the network.
Accessing the cameras was quite straight forward; however the first thing that caught my eye was that the Netbook was suffering to decode the H.264 compression when viewing the camera pointing at the busy street. Processing power topped 85% usage and accessing both cameras at the same time from the Netbook generated a large amount of frame loss and a drastic reduction in frames per second. The Desktop seemed to perform very well with a stable video and healthy frame rate even when both cameras where accessed. I took some data rate readings from the gateway and proceeded to remove the H.264 cameras and replace them with Y-cam MPEG4 cameras.
The Netbook seemed more relaxed and accessing both cameras produced no frame loss or reduction in frame rate. Processor usage was down to around 30% when accessing both cameras which is a huge improvement over the H.264 cameras. There seemed to be …