473,383 Members | 1,762 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,383 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 9567
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.