You may know the VLC application. It plays all kind of video formats and behind it, there is the powerful library call libvlc. Basicly the application is just the front end to this library. Now you can use this library in your applications to play audio video, extract frames.
The only problem is that libvlc is GPL, so we may have problems using it in commercial projects.
Contact me if you are interested in this project.