JMF JMStudio - video capture software - empty vector of devices

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jx2
    New Member
    • Feb 2007
    • 228

    JMF JMStudio - video capture software - empty vector of devices

    Hi guys im having a big problem with JMF and i would appreciate your help...

    i saw a lot of source codes with these two lines
    unfortunatly this doesnt work for me:
    Code:
    Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV));
            di = (CaptureDeviceInfo)deviceList.firstElement();
    (Vecor is empty)
    [PHP]Exception in thread "main" java.util.NoSuc hElementExcepti on
    at java.util.Vecto r.firstElement( Vector.java:442 )
    at Main.main(Main. java:58)[/PHP]

    JMStudio works properely with no problems
    any idea how can i repair it?
    (im using windows Vista , HP laptop, built in webcam)

    thank you
    Jan Jarczyk
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Do you have RGB or MPEG VideoFormat devices?

    kind regards,

    Jos

    Comment

    • jx2
      New Member
      • Feb 2007
      • 228

      #3
      Itried allof them
      incuding
      Code:
      Vector deviceList = CaptureDeviceManager.getDeviceList(null);
      however YUVFormat.YUV_Y UYV is the one which works in JMStudio

      i downloaded JMStudio source code and its working
      ( ive got others problems with it)
      i'm confused ! and i cant find the problem , all example source code loook like mine(but only JMStudio works) so where is the problem?

      Thank You
      Jan Jarczyk

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by jx2
        Itried allof them
        incuding
        Code:
        Vector deviceList = CaptureDeviceManager.getDeviceList(null);
        however YUVFormat.YUV_Y UYV is the one which works in JMStudio

        i downloaded JMStudio source code and its working
        ( ive got others problems with it)
        i'm confused ! and i cant find the problem , all example source code loook like mine(but only JMStudio works) so where is the problem?

        Thank You
        Jan Jarczyk
        Maybe JMStudio adds devices to that CaptureDeviceMa nager before your code
        starts; can you manually add devices as well? See the API docs for that manager.

        kind regards,

        Jos

        Comment

        • jx2
          New Member
          • Feb 2007
          • 228

          #5
          Originally posted by JosAH
          Maybe JMStudio adds devices to that CaptureDeviceMa nager before your code
          starts; can you manually add devices as well? See the API docs for that manager.

          kind regards,

          Jos
          JMStudio is trying to load device from registers(which is confusing cos there is no registers) after it fail its serching for devices and add them to the list and then iam able to start capturing :( its very confuzsing and i need the simpliest posible way of doing it...

          manually
          well the problem is that ive tried and i failed for stupid reason I cant figure out how to doit

          its seems its one of those problems which can make someone mad :)

          Thank You
          Jan Jarczyk

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by jx2
            JMStudio is trying to load device from registers(which is confusing cos there is no registers) after it fail its serching for devices and add them to the list and then iam able to start capturing :( its very confuzsing and i need the simpliest posible way of doing it...

            manually
            well the problem is that ive tried and i failed for stupid reason I cant figure out how to doit

            its seems its one of those problems which can make someone mad :)

            Thank You
            Jan Jarczyk
            When in Rome, do as the Romans (JMStudio) do. If you have its sources, rip
            out the relevant code and add it to your own code. That should work.

            kind regards,

            Jos

            Comment

            • jx2
              New Member
              • Feb 2007
              • 228

              #7
              Originally posted by JosAH
              When in Rome, do as the Romans (JMStudio) do. If you have its sources, rip
              out the relevant code and add it to your own code. That should work.

              kind regards,

              Jos
              yeah
              thats what im doing now- unfortunately their code isnt documented and thats makes things a bit more difficult lol

              thanks
              Jan Jarczyk

              Comment

              • ranjit sindhav
                New Member
                • Dec 2013
                • 1

                #8
                i have solve this problem why generate error on this code if you try to run program in Command prompt in windows successfully run but use NetBeans IDE or other ide to generate error
                i have solve problem now successfully run webcam cmd or netbeans both are work please contact me
                Last edited by Rabbit; Dec 29 '13, 09:31 PM. Reason: personal email removed per forum policy.

                Comment

                Working...