469,282 Members | 1,704 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

JMF JMStudio - video capture software - empty vector of devices

228 100+
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:
Expand|Select|Wrap|Line Numbers
  1. Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV));
  2.         di = (CaptureDeviceInfo)deviceList.firstElement();
  3.  
  4.  
(Vecor is empty)
[PHP]Exception in thread "main" java.util.NoSuchElementException
at java.util.Vector.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
Aug 5 '08 #1
7 9264
JosAH
11,448 Expert 8TB
Do you have RGB or MPEG VideoFormat devices?

kind regards,

Jos
Aug 5 '08 #2
jx2
228 100+
Itried allof them
incuding
Expand|Select|Wrap|Line Numbers
  1. Vector deviceList = CaptureDeviceManager.getDeviceList(null);
  2.  
however YUVFormat.YUV_YUYV 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
Aug 5 '08 #3
JosAH
11,448 Expert 8TB
Itried allof them
incuding
Expand|Select|Wrap|Line Numbers
  1. Vector deviceList = CaptureDeviceManager.getDeviceList(null);
  2.  
however YUVFormat.YUV_YUYV 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 CaptureDeviceManager before your code
starts; can you manually add devices as well? See the API docs for that manager.

kind regards,

Jos
Aug 5 '08 #4
jx2
228 100+
Maybe JMStudio adds devices to that CaptureDeviceManager 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
Aug 5 '08 #5
JosAH
11,448 Expert 8TB
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
Aug 5 '08 #6
jx2
228 100+
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
Aug 5 '08 #7
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
Dec 29 '13 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Ravi | last post: by
1 post views Thread by Ravi | last post: by
1 post views Thread by kantrishi | last post: by
1 post views Thread by xer | last post: by
7 posts views Thread by Paolo Pantaleo | last post: by
8 posts views Thread by Bill | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.