render in h.264

Hi,
i was wondering how to render a scene in h.264 codec from a python script.
Does anybody know how I can do this?

Blender Python API is not comprehensive enough to solve this problem.

Thanks in anvance