how to record a video in java?
-
Hi, i am asking how could i record a video from my webcam using java,i have tried lots of codes but nothing works :( I have installed the JMF and included the jmf.jar and sound.jar in my classpath but the jmfStudio and jmfRegistry don`t run(i dunno why?but when i compile the java files including javax.media they run with no errors but they don`t record).Can anyone help me about that? i am using windows vista.thnx in advance
-
Hi, i am asking how could i record a video from my webcam using java,i have tried lots of codes but nothing works :( I have installed the JMF and included the jmf.jar and sound.jar in my classpath but the jmfStudio and jmfRegistry don`t run(i dunno why?but when i compile the java files including javax.media they run with no errors but they don`t record).Can anyone help me about that? i am using windows vista.thnx in advance
I am not sure why you need this but I think I can still help you.... I have a peace of code, hope you understand that code and apply it appropriately ============CODE=============== CaptureDeviceInfo di = null; try{ MediaLocator loc= new MediaLocator("vfw://0"); p=Manager.createRealizedPlayer(loc); p.start(); f = new JFrame(); t.setTitle("StuMgtSystem Java:Lecture"); t.setLayout(new BorderLayout()); t.add("South", p.getControlPanelComponent()); // Adding the Visual Component to display Video captured by Player // from URL provided by MediaLocator t.add(p.getVisualComponent(), BorderLayout.CENTER); t.pack(); t.setSize(200, 100); t.setVisible(true); t.setTitle("Capturing ON"); }catch(Exception e){ e.printStackTrace(); } =========== END of CODE========== I am not sure if I can help you further but hope this works for you as it does work for others
-
Hi, i am asking how could i record a video from my webcam using java,i have tried lots of codes but nothing works :( I have installed the JMF and included the jmf.jar and sound.jar in my classpath but the jmfStudio and jmfRegistry don`t run(i dunno why?but when i compile the java files including javax.media they run with no errors but they don`t record).Can anyone help me about that? i am using windows vista.thnx in advance
I have tried one time :D OpenCV with Java and work for me, maybe can be this last thing you want do ;P
-
Hi, i am asking how could i record a video from my webcam using java,i have tried lots of codes but nothing works :( I have installed the JMF and included the jmf.jar and sound.jar in my classpath but the jmfStudio and jmfRegistry don`t run(i dunno why?but when i compile the java files including javax.media they run with no errors but they don`t record).Can anyone help me about that? i am using windows vista.thnx in advance
YOu need to use a mixed datasource for that. One datasource would be handling audio and the other would take care of video. Now combine these two datasource into a mixeddatasource and use the processor and datasink to obtain the output