
January 20th, 2006, 12:30 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: South Africa
Posts: 21
Time spent in forums: 1 h 37 m 27 sec
Reputation Power: 0
|
|
|
Java, JMF and video capture
here's a problem i hope anyone who's had any experience with the JMF [java media framework] might help me out with.
i'm trying to develop a program which captures video from a USB capture device, attached to a video camera, and then while it's streaming the video to the screen i'd like it to record the video to the hdd, either as avi, rm, wmv, mpeg, whatever!
I have figured out how to get the video to stream to a panel on the form ok, but i'm having problems with the saving of the video. i've tried saving the video as avi, but the stream starts to jump and skip frames as soon as i start to save the video on the hdd. similarly, the saved video seems to have a "jumpy" / "skippy" framerate. even if i try to save just a single frame from the video to the hdd as a jpg image, the video stream pauses for an instance, then resumes as soon as the image is saved!
i guess my question is: is there a way to stream the video, and to save it simultaneously to the hdd, without the jumpy framerate. it seems to be that my program / pc is unable to process both the streaming and the saving at the same time. is there a way around this? any help would be appreciated! 
|