Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. how to record a video in java?

how to record a video in java?

Scheduled Pinned Locked Moved Java
javahelptutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fatema gabr
    wrote on last edited by
    #1

    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

    A A C 3 Replies Last reply
    0
    • F Fatema gabr

      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

      A Offline
      A Offline
      ankitjoshi24
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • F Fatema gabr

        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

        A Offline
        A Offline
        Adrabi Abderrahim
        wrote on last edited by
        #3

        I have tried one time :D OpenCV with Java and work for me, maybe can be this last thing you want do ;P

        1 Reply Last reply
        0
        • F Fatema gabr

          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

          C Offline
          C Offline
          csanuragjain
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups