I am trying to develop a two-way real-time video conferencing system, and while I can capture raw audio samples and images from the webcam, and send them to another computer via a UDP socket, but I know this is not the most efficient way to send audio and video data between clients in real time. I'm looking for information on how to access the various audio and video codecs installed on the computer, and use them to send compressed audio/video over the network. I've spent hours on google looking for this information, and it's proving to be rather difficult to track down useful information.

I'm hoping one of you has worked on something similar and knows of some resources where I can find the information I need.

thanks in advance.