svijikumar,
You can use the CaptureGraph class for one capture device only. I recommend you to use the EncoderGraph class.
You should create all necessary filters, using the Filter class and/or the Device class, add them to the graph, and connect. Sample applications demonstrate how to build graphs for different cases.
If you are interested in custom development, please feel free to contact
our sales team