How to give video input to GPU card for processing

As i know graphics cards are output only and doesn’t come up with any input port, but i am in a situation where i need to capture the incoming video into GPU memory for processing and send it over output port to other machine.Please suggest me whats the way to meet my above requirements,if needed any extra hardware to pump the video to GPU also fine for us.