Video Processing

I am very new to this. I have Quadro P2000 with compute capability 6.1. I want a sample code or APIs to read a video file frame by frame from the hard disk and do some processing on the video frame and show the frame on display. Does CUDA have APIs for video read and display or we have to use OpenGL for video read and display.