realtime h.264 encoding example