473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 9570
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

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

Similar topics

3
by: DMS | last post by:
I need to create some specifications and budget request for a workstation (G5) and all necessary hardware and software for authoring online college courses. The course material would contain short...
6
by: Ravi | last post by:
Hi, Im trying to develop a Visual C# .NET app. that uses DirectShow filters to capture video from camera source. However, after going through a series of articles, I've seen that DirectShow is not...
1
by: Ravi | last post by:
Hi, Im trying to develop a Visual C# .NET app. that uses DirectShow filters to capture video from camera source. However, after going through a series of articles, I've seen that DirectShow is not...
1
by: kantrishi | last post by:
Can any body give me details how i would capture video stream through video camera and save it in my database/computer in windows media player format or in real plyaer. I would like to make...
0
by: dicky2283 | last post by:
windows development community please help me im deepak roy , doing my final year undergrad in computer science.... im doing a project - Motion detection and Tracking in vc++( video for...
1
by: xer | last post by:
How can I get list of avaible video (Screen Capture Direct Show Filtres too) and audio capture devices?
7
by: Paolo Pantaleo | last post by:
Hi, I need to write a software that allow to see the desktop and hear the microphone capture of a remote PC across a network. I need to do that for a unviresity assignement. The software must ...
3
by: ghostrider | last post by:
Does anyone know how to recognise the image capture signal from a medical scope such as a video colonoscope? I've got video streaming from the scope to the computer but want my app to recognise...
8
by: Bill | last post by:
Our non-profit agency was interviewed on local TV. The TV station has the clip on their web site. However, I'm concerned that it will soon go away. Is there any way for me to capture that video...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.