how to read frames from the video with opengl?

I’m a beginner to opengl and I want to read frames from a video file, process them ( eliminate the noise) and then display them on a monitor at 120hz. I don’t know how to read frames with opengl. Could someone give me a hand?
I’m now trying solving it in a silly way: use opencv to read frames into a Iplimage* data and then try converting “Iplimage*” to “Iluint” type. I’m wondering whether this works and if so, how to convert?