can anyone tell me how to extract bmp picture frames from a a video file.....

and also the reverse process i.e bmp files back to video files......

when i googled i got several stuffs regarding extraction of image files from video file using c#, is there any method in java.....