Efficient way to pipe capture video from webcam to cuda

Does anybody has any suggestions/ examples how to efficently capture a video from a webcam and pipe it trough the GPU/ cuda?

thx,
cuda-dude