Results 1 to 1 of 1
- 08-20-2012, 04:07 PM #1
Member
- Join Date
- Aug 2012
- Posts
- 9
- Rep Power
- 0
A problem in capturing video with JMF
Hi! I have a problem with saving video captured by JMF, it is when it started to save then the file size is very large, for example capture video for one minute the saved file is about to one GB, so is there any way to save the file in small size? if anyone know please reply the thread, thanks in advance!
The method which save the video is below, and also i have tried many file Extensions, all was the same
Java Code:private Format formats[] = new Format[1]; private FileTypeDescriptor outputType = new FileTypeDescriptor( FileTypeDescriptor.MSVIDEO); private void saveVideo() throws NoProcessorException, CannotRealizeException, IOException, NoDataSinkException { formats[0] = new VideoFormat(VideoFormat.YUV); processor = Manager.createRealizedProcessor(new ProcessorModel( videoCapDevLoc, formats, outputType)); DataSource source = processor.getDataOutput(); MediaLocator dest = new MediaLocator(fileName + ".avi"); filewriter = Manager.createDataSink(source, dest); filewriter.open(); filewriter.start(); processor.start(); }
Similar Threads
-
Showing Video Stream instead of capturing image Using JMF
By MaheshAhirwar in forum Web FrameworksReplies: 0Last Post: 12-19-2011, 08:18 AM -
Capturing video from webcam with JMF
By Shurukan in forum New To JavaReplies: 2Last Post: 11-18-2011, 11:01 AM -
Video Capturing Problem from JMStudio
By asifzbaig in forum Advanced JavaReplies: 0Last Post: 05-28-2011, 09:07 PM -
Capturing image from stream of usb video camera
By a_p2011 in forum Advanced JavaReplies: 1Last Post: 03-28-2011, 12:07 AM -
Capturing video with Robot
By russ2620 in forum AWT / SwingReplies: 0Last Post: 06-03-2008, 04:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks