earwax 0 Newbie Poster

Hi,
I am trying to grab frames from a video using JMF. Here is the code i use for getting the frames. Unfortunately, getControl returns null so i get nullpointerexception.

FrameGrabbingControl frameGrabber = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
Buffer buf = frameGrabber.grabFrame();

1) I can open and view the video. So why am i getting null from the getControl?
2) Is there any better way then JMF when getting frames from a video?