OpenH264 is optimized for speed.
While the H.264 standard is patent-encumbered, Cisco provides a pre-compiled binary and covers the license fees (MPEG LA) for any application that uses it. better man openh264