SunVideoPlus: capture from both ports simultaneously
Hi all,
Is it possible to capture from both ports of a SunVideoPlus capture board simultaneously?
I have successfully created 2 frames, each for a media locator sunvideoplus://0/1 and sunvideoplus://0/2. When starting the capture, a video stream appears in one of the frames. The other displays a snapshot of the same stream. This makes me believe that only one port can be used at any one point.
Alternatively, has anyone worked with switching between ports at some high frequency, e.g. every 1/15 seconds or every second?
Thanks.
- Alex
I've got a similar problem in which I would like to process multiple streams from several webcams at once. I'm getting this popup thingy to choose the stream, but I would like java to be able to handle it.
Any idea?
Sorry no answer to your question, just another question :-)
Similar Messages
-
Read data from serial port or TCP port of frontend PC
Hello Friends,
I have requirement to read data from device connected to frontend PC which will provide meter reading data.
Vendor has given me two option.
1. Device can be connected to seiral port and data transfer will be done through MODBUS RTU protocol.In that case data need to capture from serial port.
2. Device can be connected to TCP port and Socket program can be provided for data transfer. In that case SAP will act as client and communicate with TCP port.
There will be multiple workstation with individual meters connected to them.
I am aware of text file interfacing through front end tools using custom code using VB,JAVA or others.
Is there any solution availble to achieve above things using ABAP other than text file , like direct communication?
I am using ECC 6.0.Hello,
Socket programming in not available on ABAP, but you may use RFC for the same.
Use the below links for more details
[Link 1|http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf]
[Link 2|http://forums.sdn.sap.com/thread.jspa?threadID=1820233]
Regards,
Abhishek -
I have a current primary email address that is not an icloud account. If I create an icloud email account, will I be able to send and receive emails from both accounts simultaneously, or will the icloud account become my primary account and will I then have to inform everyone that I have a new email address?
Welcome to the Apple Community.
You can use either account and set one as default if you wish. -
Unable to capture data from Serial port using LVRT2010 in single core pentium 4 machine
I am using application written in Labview using windows Labview
Runtime environment 2010. Application creates a tunnel to intercept data from
Serial port.
My problem is, Currently, I am using single core Pentium
processor. When I am trying to intercept the data between COM1 and COM7 (COM 7
is a virtual port) it is not able to capture data.
When I am running Labview RT environment using dual core
processor machine it is running normally. I wonder whether it could be the compatibility issues with
single core Pentium processor.Hi Magnetica
Are both of the machines running the same runtime engine,
drivers ect?
Have you had RT applications running on this
machine before?
Is the development computer a 64bit machine?
The processor is a supported model (See link below).
http://zone.ni.com/devzone/cda/tut/p/id/8239
Regards
Robert
National Instruments UK & Ireland -
I would like to capture from several different sources simultaneously.
Is this realistic with one computer or would it be better to purchase additional units for capturing as well. And if I was using them primarily for the purpose of capturing as well as networking for the sake of speeding up compressor would any of the smaller systems be adequate?
(I could possibly need to capture from up to 4 devices at the same time)What Randy and David say is true.
Here's my story.
For the last few summers, I pick one day to do a sunrise to sunset time lapse capture from the deck of my lake cottage. The camera looks out across the back lawn, to the dock, the lake and the hills on the far side - about 1/2 mile away. The sky is an enormous presence.
The first time I did this was a spur of the moment lark - a "wouldn't it be cool if" moment. I had a camera, a tripod, my laptop and software which could capture using time lapse. I hooked things up quickly, turned everything on and voilà. The video turned out wonderfully. Each year since, the production has gotten a a bit more involved.
Last year ...
I watched the weather reports daily. I went online tracking weather patterns moving across the continent. This was all undertaken to pinpoint the day when we would likely get the perfect combination of sky, light clouds, strong sun, wind and water.
It looked like the day was coming. The evening before I placed the camera on a weighted and braced tripod in a secure area on the back porch. It was under cover and secured to keep it from moving if there was a breeze. The area was cordoned to keep people from walking on that part of the deck to prevent vibrations. The laptop computer went inside the house on a very secure table. The camera and computer were both connected to house power but each had a fully charged battery attached if we lost power.
I ran a 3 meter Granite Digital firewire cable from the camera outside to the laptop computer in the house. All cables were taped down or routed so there was no possibility for someone to trip over them. The firewire cable was connected to the laptop via a PCMCIA firewire card and there was an external FW400 drive connected via the computer's OEM port to hold the captured material. The drive was bus powered so even if we lost power, the computer's battery would keep things going.
Before I went to bed, I insulated and covered the camera with a waterproof setup to keep it from getting wet from condensation or there was an unexpected thunderstorm during the night.
Up before dawn, I uncovered the camera and had the capture running when the first light showed in the eastern sky. It was a spectacular sunrise.
After breakfast, I checked on the setup. It was humming along so I went for a swim, ran errands in town, played a round of golf.
It was a beautiful day. The clouds were marching across the sky, the lake had small ripples as wind played on the surface. The sun was strong which generated sharp shadows marking the passage of time. The whole day I was thinking, "we nailed it, this is THE PERFECT day to capture".
Late afternoon, I came into the house and on my way upstairs to take a shower and change for dinner, I noticed the laptop. The cover was closed. I had left it open. With my heart racing, I opened the lid and the computer woke up ...
Someone - (no one ever admitted to touching the machine - even under threats of withholding all ice cream) - closed the lid and the machine went to sleep. There was no capture as the temp file ended up without an EOF marker. All that I had to show for the day was a several hundred MB unrecoverable file.
The next day dawned with a foggy rain that hung on for the last few days of vacation ...
good luck,
x -
Capturing Video data from different ports
Hi,
I have 4 ports in my video capture card, but i am able to get only one port using JMF.I need to capture all 4 port video data. Your suggestions are appreciatedcreate different datasource for each port no
-
Urgent: Unable to capture from TV Capture Card
Hello,
I'm Ashish Shukla. I'm writing an application in JMF 2.1.1b using J2SE 1.4.0 on Win32 platform on Intel Celeron 1 GHz processor which captures from the capture device. It works fine on Intel Create & Share CS110 Web Camera. But now, I'm try to capture from the TV Capture Card Pinnacle Studio PCTV TV Capture Card (Composite Video).
But JMF Registry is not able to detect the TV Capture Card (connected alone) & my PC hangs. But, when WebCamera is plugged in, JMF Registry detects it.
When Both WebCamera (USB port) & TV Capture Card are plugged in, then JMF Registry detects only Web Camera.
If anyone can help me resolve the problem. I'm very thankful.
Yours sincerley,
Ashish Shukla
Wah Java!!Dear friend
I have a similar problem, did you got the answer...
I m trying to get video from the video capture card first from video then for composite then for ..... each port ... but it looks not to be easy ...
c u
Thanks
[email protected] -
Transmiting video captured from a webcam to another system through internet
Hi there, I developed an application catch video stream from the webcam and transmit it another system within LAN network , I would like know possibility to senting it over internet to another system?? is it possible sent this streams to more than one location simultaneously. Any idea?
Best regards
anoophi tony
Thank you very much for reply, I very appreciate this.for tansnsmitting video using rtp protocol we need to specify the network output for media transmission(ie Medialocator).what i mean is we need to create a medialocator specifing the destination of our broadcast. which look like a typical url rtp://address:port/content-type ,here the address is the address to which video must be tansmitted.to transmit in unicast mode this address should be the address of the intended machine.its working fine.to transmit in mulitcast mode with a subnet we can do this by replacing 255 with last field of the address part.it also working fine within subnet so that we can display video captured from one cam to multiple destination
** this is the real problem whcih i m facing now is how to make it to work in internet? to mutliple destination? whether i need to create multiple medialocator url??? anybody have any idea? plz help thanking u in advance?
anoop -
I have recently purchased a Sony Z1U and was unable to capture in FCE4. I later found out that FCE4 will only capture from the Z1U in DV mode and NOT in HDV. Why is this? Is all my HDV media useless now that I have FCE4? Should I only shoot in DV mode from now on? I also have a small Sony HRD-CX7. Will FCE4 capture from this device?
Any help for this newbie would be appreciated!"do not connect to the computer. Connect it to the hard drive so they are on a single FireWire chain. The computer will have difficulty passing information back and forth on FW when there are multiple devices on multiple ports but on a single bus"
In theory this may be true, however my external drive only has (2) 1394b ports. My camera has (1) four pin 1394a port that converts to a six pin 1394a through the cable assembly. There is no way to chain these components together (via my external drive anyways) as far as I can see. Is this a critical issue? Should I invest in a different drive? I guess I could connect to my ED via esata using an express card. Would this approach lessen the load on the FW bus during capture and delegate a separate bus for ED control?
Any thoughts on this?
Message was edited by: Chad Clemens -
How to get data from serial port to GUI textArea
From Serial Port.....
Messages from base (always 5 bytes):
0xAA, 0, 0, 0, 0xBB - IDLE Mode
0xAA, 0, 0x80, 0x80, 0xBB - Question Mode
messages from terminal (always 6 bytes):
0xAA, a, b, c, chksum, 0xBB
where chksum = a+b+c;
a = address (0-250)
the 2 MSB's of b represenet the answer:
0 0 - A
0 1 - B
1 0 - C
1 1 - D
the 6LSB's of b and 8bits of c is the time for answer, in milliseconds.
(0-16384 milliseconds)
I have VB Code for that but I want the same thing in Java ...
Can any one help me?
Here's VB Code..
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Aakar GUI"
ClientHeight = 4665
ClientLeft = 60
ClientTop = 375
ClientWidth = 6105
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 311
ScaleMode = 3 'Pixel
ScaleWidth = 407
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdPort
Caption = "Open Port"
Height = 375
Left = 120
TabIndex = 4
Top = 600
Width = 1455
End
Begin VB.ComboBox cmbPort
Height = 315
ItemData = "Form1.frx":0000
Left = 120
List = "Form1.frx":0016
Style = 2 'Dropdown List
TabIndex = 3
Top = 120
Width = 2895
End
Begin VB.CommandButton cmdEnd
Caption = "End"
Height = 495
Left = 1560
TabIndex = 2
Top = 1320
Width = 1215
End
Begin VB.CommandButton cmdStart
Caption = "Start"
Height = 495
Left = 120
TabIndex = 1
Top = 1320
Width = 1215
End
Begin VB.TextBox txtMessage
Height = 2040
Left = 119
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Top = 2475
Width = 5848
End
Begin VB.Timer tmrRead
Enabled = 0 'False
Interval = 1
Left = 2040
Top = 600
End
Begin MSCommLib.MSComm MSComm1
Left = 3120
Top = 360
_ExtentX = 1164
_ExtentY = 1164
_Version = 393216
DTREnable = 0 'False
ParityReplace = 45
SThreshold = 1
End
Begin VB.Label Label5
Caption = "Result Data:"
Height = 375
Left = 120
TabIndex = 5
Top = 2115
Width = 1320
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim PortIsOpen As Boolean
Dim Answers(4) As String
Dim RejectKeystroke As Boolean
Private Sub cmbPort_Change()
Debug.Print cmbPort.ListIndex
End Sub
Private Sub cmbPort_Validate(Cancel As Boolean)
'Cancel = True
End Sub
Private Sub cmdEnd_Click()
MSComm1.Output = "e"
txtMessage.Text = ""
End Sub
Private Sub cmdPort_Click()
On Error GoTo ErrorHandler
If cmbPort.ListIndex < 0 Then Exit Sub
If PortIsOpen Then
cmbPort.Enabled = True
MSComm1.PortOpen = False
PortIsOpen = False
cmdPort.Caption = "Open Port"
cmdStart.Enabled = False
cmdEnd.Enabled = False
Else
MSComm1.CommPort = cmbPort.ListIndex + 1
cmbPort.Enabled = False
MSComm1.PortOpen = True
PortIsOpen = True
cmdPort.Caption = "Close Port"
cmdStart.Enabled = True
cmdEnd.Enabled = True
End If
Exit Sub
ErrorHandler:
Debug.Print Err.Number
Debug.Print Err.Description
MsgBox Err.Description, vbExclamation Or vbOKOnly, "Error opening port"
cmbPort.Enabled = True
PortIsOpen = False
cmdPort.Caption = "Open Port"
cmdStart.Enabled = False
cmdEnd.Enabled = False
End Sub
Private Sub cmdStart_Click()
MSComm1.Output = "s"
txtMessage.Text = ""
End Sub
Private Sub Form_Initialize()
Dim tmp As Variant
tmp = InitCommonControls
End Sub
Private Sub Form_Load()
Answers(0) = "A"
Answers(1) = "B"
Answers(2) = "C"
Answers(3) = "D"
'MSComm1.Settings = "9600,n,8,1"
''MSComm1.Settings = "115200,n,8,1"
'MSComm1.PortOpen = True
On Error GoTo ErrorHandler1
MSComm1.CommPort = 1 ' comm port 1
MSComm1.RThreshold = 1 ' use 'on comm' event processing
MSComm1.Settings = "9600,n,8,1" ' baud, parity, data bits, stop bits
MSComm1.SThreshold = 1 ' allows us to track Tx LED
MSComm1.InputMode = comInputModeText 'comInputModeBinary ' binary mode, you can also use
' comInputModeText for text only use
PortIsOpen = False
cmbPort.ListIndex = 0
' open the port
MSComm1.PortOpen = True
cmbPort.Enabled = False
PortIsOpen = True
cmdPort.Caption = "Close Port"
cmdStart.Enabled = True
cmdEnd.Enabled = True
Exit Sub
ErrorHandler1:
Debug.Print Err.Description
PortIsOpen = False
cmbPort.Enabled = True
cmdPort.Caption = "Open Port"
cmdStart.Enabled = False
cmdEnd.Enabled = False
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If MSComm1.PortOpen Then MSComm1.PortOpen = False
End Sub
Private Sub lblOption_Click()
End Sub
Private Sub MSComm1_OnComm()
' Synopsis: Handle incoming characters, 'On Comm' Event
' Description: By setting MSComm1.RThreshold = 1, this event will fire for
' each character that arrives in the comm controls input buffer.
' Set MSComm1.RThreshold = 0 if you want to poll the control
' yourself, either via a TImer or within program execution loop.
' In most cases, OnComm Event processing shown here is the prefered
' method of processing incoming characters.
Dim i As Long
Dim sBuff As String ' buffer for holding incoming characters
Const MTC As String = vbCrLf ' message terminator characters (ususally vbCrLf)
Const LenMTC As Long = 2 ' number of terminator characters, must match MTC
Dim iPtr As Long ' pointer to terminatior character
' OnComm fires for multiple Events
' so get the Event ID & process
Select Case MSComm1.CommEvent
' Received RThreshold # of chars, in our case 1.
Case comEvReceive
' read all of the characters from the input buffer
' StrConv() is required when using MSComm in binary mode,
' if you set MSComm1.InputMode = comInputModeText, it's not required
'sBuff = sBuff & StrConv(MSComm1.Input, vbUnicode)
'If Len(txtMessage.Text) > 4096 Then txtMessage.Text = ""
sBuff = MSComm1.Input
Dim ch As String
Dim PacketStart As Boolean
Dim PacketLength As Integer
Dim Packet() As String
PacketStart = False
PacketLength = 0
While (Len(sBuff) > 0)
ch = Left(sBuff, 1)
If (ch = Chr(&HAA)) Then PacketStart = True
If (ch = Chr(&HBB)) Then PacketStart = False
If (ch <> Chr(&HAA) And ch <> Chr(&HBB)) Then
PacketLength = PacketLength + 1
ReDim Preserve Packet(PacketLength)
Packet(PacketLength) = ch
End If
'txtMessage.Text = txtMessage.Text + Format(Hex(Asc(ch)), " @@")
sBuff = Right(sBuff, Len(sBuff) - 1)
Wend
If (PacketLength = 3) Then
Debug.Print "Command packet recieved"
'txtMessage.Text = txtMessage.Text + vbCrLf + "Address =" + Str(Asc(Packet(1)))
'txtMessage.Text = txtMessage.Text + vbCrLf + "Address =" + Str(Asc(Packet(2)))
End If
If (PacketLength = 4) Then
Debug.Print "Response packet recieved"
txtMessage.Text = txtMessage.Text + "Address =" + Str(Asc(Packet(1))) + _
" Answer = " + Answers((Asc(Packet(2)) And &HC0) / 64) + _
" Time =" + Str((Asc(Packet(2)) And &H3F) * 256 + (Asc(Packet(3)))) + "mS" + vbCrLf
'txtMessage.Text = txtMessage.Text + vbCrLf + "Address =" + Str(Asc(Packet(1)))
'txtMessage.Text = txtMessage.Text + vbCrLf + "Option =" + Str((Asc(Packet(2)) And &HC0) / 64)
'txtMessage.Text = txtMessage.Text + vbCrLf + "Time =" + Str((Asc(Packet(2)) And &H3F) * 256 + (Asc(Packet(3))))
End If
If (PacketLength <> 4 And PacketLength <> 3) Then Debug.Print "Unknown packet of length" + Str(PacketLength) + " recieved"
txtMessage.Text = txtMessage.Text + vbCrLf
' An EOF charater was found in the input stream
Case comEvEOF
DoEvents
' There are SThreshold number of characters in the transmit buffer.
Case comEvSend
DoEvents
' A Break was received.
Case comEventBreak
DoEvents
' Framing Error
Case comEventFrame
DoEvents
' Data Lost.
Case comEventOverrun
DoEvents
' Receive buffer overflow.
Case comEventRxOver
DoEvents
' Parity Error.
Case comEventRxParity
DoEvents
' Transmit buffer full.
Case comEventTxFull
' Unexpected error retrieving DCB]
Case comEventDCB
DoEvents
End Select
End Sub
Private Sub tmrRead_Timer()
'MSComm1.Output = vbCrLf + vbCrLf
'MSComm1.Output = Chr(128)
End Sub
Private Sub txtMessage_KeyDown(KeyCode As Integer, Shift As Integer)
If Shift = 2 Or Shift = 4 Then RejectKeystroke = False Else RejectKeystroke = True
End Sub
Private Sub txtMessage_KeyPress(KeyAscii As Integer)
If RejectKeystroke Then
KeyAscii = 0
End If
End SubThanks in advance..I want to replicate the entire VB program as Java Program.
This has to be included in my project which i am doing in java. -
How to save a datas from serial port?
How to save a datas from serial port?
Hi
I need some help about rs-232 communication. I want to make a vi witch can do this things:
-read a txt file (to simulate a serial port like when the datas are coming)
i will get 3 different data in serial port (like this: 121 213 135)
i want to save in a txt file what datas get my vi
so
-write in a txt file or draw in a diagram (or both)
so my problem is: read in serial port and save in a file and draw a diagram.
if anybody can help pls HELP ME because im a beginner in this problem.
I already do something but Im not sure that good.
Thx for all. -
Can't capture from my cannon video camera to Final Cut or iMovie.
Hi. I can't capture from my cannon video camera to FInal Cut or iMovie. ANy help would be greatly appreciated. I don't think my iMac is recognizing the camera. I was told I don't need a firewire, that USB would work if I'm just capturing. If I need a firewire what kind (the one I was sold didn't fit). I'm getting an "unable to locate external device message". Not sure of next steps to try. Thanks.
Computer= iMac 21.5-inch: 2.5GHz
2.5GHzQuad-Core Intel Core i5
1920 x 1080resolution
4GB (two 2GB)memory
500GB harddrive1
AMDRadeon HD 6750M with 512MB
Processorand Memory -
Powered by a quad-core Intel Core i5 or i7 processor and DDR3memory.
Connectionsand Expansion
SuperDrive, SDXC card slot, audio in, audio out, USB 2.0,FireWire 800, Thunderbolt, Gigabit Ethernet.
Video camera = Canon Vixia HV40
Standard Definition or High Definition
High Definition
Power Consumption
4.3 W
Television System
NTSC
Video Recording system
MPEG2
Image Sensor
1/2.7-inch CMOS, RGB Primary Color Filter
Total Pixels
Approx. 2.96 Megapixels
Effective Pixels
Tape: HD/DV (16:9) mode: Approx 2.07 Megapixels (1920x1080) DV (4:3) mode: Approx 1.55 Megapixels (1440 x 1080) Card: (16:9) mode: Approx. 2.07 Megapixels (1920 x 1080), (4:3) mode: Approx. 2.76 Megapixels (1440 x 1080)
Tape Format
HDV / DV
Maximum recording Time
SP: 80 minutes, HDV, DV LP: 120 minutes DV
Lens
Zoom Ratio 10x Optical / 200x Digital Focal Length f=6.1-61mm (35mm equivalent: 43.6 - 436mm) Zoom Speed Variable / 3 Fixed Zoom Speeds Max. F/Stop f/1.8-3.0mm (when tapes are used)
Focusing System
Instant AF, TTL (through the lens)
Manual Exposure
Yes
Programmed AE
Auto, Program, Av, Tv, CINE, Portrait, Sports, Night, Snow, Beach, Sunset, Spotlight, Fireworks
Max Shutter Speed
Movie: 1/2000, Still image: 1/500
Auto Date/Time
Yes
Record Search/Review
Yes
Focusing System
10 mm (wide) / 1m (tele)
White Balance
Auto, Daylight, Shade, Cloudy, Tungsten, Fluorescent, Fluorescent H, Manual
Frame Rate
60i, Native 24p Progressive (records at 24p), 24p Progressive (records at 60i), 30p Progressive (records at 60i)
Minimum Illumination
0.2 lx (Night Mode)
Image Stabilization
SuperRange Optical (lens shift)
Filter Diameter
43mm
Viewfinder
Widescreen 0.27-inch Color Viewfinder / (Approx. 123,000 dots)
LCD Screen
2.7-inch Widescreen LCD (Approx. 211,000 dots)
Recording Media
High Definition Mini DV (recommended) (63 min) or MiniDV cassette
USB Terminal
USB 2.0 Full Speed
Video Terminal
component (output), composite (output)
Audio
DV: 16 bit (2ch) 48 kHz 12 bit (4ch) 32 kHz 4ch synchronous recording not possible HDV: MPEG1 Audio Layer II (2 ch) (4-channel playback of tapes containing 4-channel recordings possible)
Accessory Shoe
Advanced
Supplied Video Editing Software
None
HDMI Terminal
HDMI Type A (19 pins) Connector (output)
Microphone Terminal
3.5 mm stereo mini-jack
AV Mini Terminal/Headphone Terminal
3.5 mm 4 pole mini-jack (video/audio input and output)
Dimensions
(W X H X D) 3.5 x 3.2 x 5.4 in. (88 x 82 x 138mm)
Weight (not including lens and battery pack)
1.2 lbs. (535g)
Weight
1.4 lbs. (615g)Forget USB for capturing from tape. USB is only for stills from a Tape Based camera.
You require a firewire cable.
The camera connection end will be four pin and the Mac is nine pin to the 800 port.
Ask for a 9 to 4 pin firewire cable. Sounds like you have the wrong one as they can also be 4 to 4 or 4 to 6 pin!!
Also you will need the correct Easy Setup in FCE so FCE talk to the camera, exactly which one depends on what type of footage is being sent to FCE from the camera during capture.
Al -
Finally.... Video captured from applet in Vista!!
Hello!
Hurray!! finally I can see myself smiling and waving back in browser in Vista.
I mentioned in another thread just a day earlier that I will post a new topic if I succeed in capturing from applets in Vista, so thats what I am doing.... This thread is all about how achieved it.
I have seen many posts mentioning problems in capturing from applets in vista. I was also one of the sufferer. And most people including me blamed that on restricted sandbox of Vista. But surprisingly it was all about classpath.
I think I mentioned in some earlier thread that the 'Java console' shows the classpath to be *"{JREHOME}/classes"* instead of the classpath specified in CLASSPATH environment variable. You can check that by pressing 's' which *'dumps system and deployment properties'* in the Java Console. You can check the classpath by noting the value of *"java.class.path"* field which for my case was"C:\\PROGRA~1\\Java\\jre6\\classes". This turned out to be the main problem. The applet was not accessing any classes from the real CLASSPATH instead it was considering the classpath to be jrehome/classes. So, now I had enough hint what to do next. I simply created a folder 'classes' in {JREHOME} and copied the jmf registry files to that folder. By registry files I mean *'jmf.properties'* and *'jmf.properties.orig'* files in *'{JMF Install}/lib'* folder (actually i don't which among them has got some thing to do with the registry but I copied them both). So, after doing this, all my capture applets, whether signed or unsigned started running. Earlier they all were throwing *"java.lang.RuntimeException: No permission to capture from applets"* exception even after I have allowed capture from applets in JMF registry. That was perhaps not taking affect because of classpath issues. So, thats the story.... if someone faces the same problem he can use this workaround or you can say hack ;-)
Some questions which can be asked from me would be:
1- Did you set your CLASSPATH environment variable correctly?
ans: Yes, infact all my jmf applications were running correctly, the problem was only with the applets.
2- What classpath other systems (e.g. XP) mention in the Java console ?
ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also.
3- Is this problem really Vista specific?
ans: Can't say... but it can be. It maybe the case that Vista does not allow access to real CLASSPATH, but this problem can easily be my system specific, it would be called a general vista problem if this happens on all Vista systems, I need volunteers for this test. captfoss, can you please test this on your system? :)
4- Is this problem JMF specific?
ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific.
Drawbacks of this work around:
1- This can be a pain for ordinary users , copying registry files from JMF/lib to JRE/classes.
2- Whatever you change in JMF registry would not be effective to the applets. As the old registry files are to be replaced with new registry files every time JMF registry is changed for changes to take effect in applets.
The real big question:
How can we force Vista to look in the real CLASSPATH? this is the real question, if this can be done just by changing some settings then all this workaround is useless :) I am looking forward to the answer of this question.....
captfoss, I would highly appreciate your comments.
Thanks for reading this rather long post.... :)
Thanks!A couple of comments here...the answer is, in fact, no, you didn't set your classpath correctly. One, you're probably using a JAR file to run your applet from (I'm not an applet programmer but I do believe that a JAR is required) which do not use the environment's classpath, they use their manifest classpath. No, the applet was not jared.
Second, I believe that the browser itself specifies its own classpath, which you cannot modify. I believe this would be considered a security feature...Both IE7 and firefox3 fail.
"You have little control over the CLASSPATH used by a browser for an Applet"
[http://mindprod.com/jgloss/classpath.html]
Ok this maybe the reason, I will go through the link....
2- What classpath other systems (e.g. XP) mention in the Java console ?
ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also. There isn't a "real" CLASSPATH, there is just the classpath stored as an environmental variable. It's no more or less real than the one in the browser.Thats what I thought.... but I think {JREHOME}/classes is the default class path used by the jre whether we set any CLASSPATH variable or not it would be there, something of that sort.....
Lots of possibilities, but my best guess is that Vista doesn't let code running in the browser read environmental variables.Yes, I fully agree with this. I think I should file a bug report.
4- Is this problem JMF specific?
ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific. Definately not. It would apply to any code that wants to access something on the classpath. You are right... as I said I would test it, I tested by making a small library, added it to classpath, made an application and an applet. As expected, the aplication worked while the applet failed.
Any application with a custom classpath would be affected.I don't understand what you mean here, do you mean 'Class-path' header in jar manifest?
I like the "installation requirement" part. I'd suggest looking into that. Alternately, there may be something in the security settings to allow access to environmental variables.I will try to look into both.
I just tried this statement in applet:
System.out.println( System.getProperty( "java.class.path" ) );It threw this exception:
Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)
I don't know what conclusion should I draw from this... this does mean applet has no right to know what the classpath is.... but this doesn't mean even jre plugin responsible for running applet does not know what the classpath is :)
Finally, I want to say that due to some problems I could not post earlier, and I may not post for few more days. But I appreciate your comments and would appreciate more of them.
Thanks! -
Capturing multiple DV sources simultaneously?
Can I capture from multiple DV sources (not HDV) simultaneously with Final Cut Express?
I want to record a live event using two DV camcorders.
PowerMac G5 1.8GHz, 1GB RAM Mac OS X (10.3.9)Not into a single computer. You need two computers.
Is it possible using a faster PowerMac or with Final Cut Pro? -
How to store the data captured from oscillosco​pe into the MS Access database table
Hi All,
In my application, I tried to save the data captured from SCOPE, but could store only 200 bytes. I've taken the Memo data type for the field in database. I want to store all data ( 4 channels) in one field & retrieve back and display on the XY Graph.
Thanks in advance.
Regards,
Shrinikramish wrote:
Im pretty sure that Access does support JDBCNo it does not. It supports ODBC.
just doing a quick Google came up with some pages:
http://blog.taragana.com/index.php/archive/access-microsoft-access-database-from-java-using-jdbc-odbc-bridge-sample-code/
http://www.javaworld.com/javaworld/javaqa/2000-09/03-qa-0922-access.html
Both articles explains how to use the jdbc-odbc bridge. I think I've seen a pure jdbc driver for access but it wasn't from Microsoft and it wasn't free.
Kaj
Maybe you are looking for
-
In need of a flash/html5/quicktime audio/video media player for a website
Hello everybody, I'm looking to get some kind of audio/video media player for a website. I would like it to be customizable, and also most likely read a play list from some kind of text file or xml file. Normally, I would look for some kind of flash
-
My palm z22 can turn on, but won't go past the "palm powered" display. I have countlessly reset it as well as wait till it was charged to reset and then wait till it ran out of power and charged again, then reset! I even tried pressing the power and
-
Kde 4.2.2?
Is KDE 4.2.2 more stable than the previous versions of KDE 4? I've been wanting to switch to it after I make more artwork for KDE 4, so should I replace KDEMod 3.5 if I want to switch to KDEMod 4.2.2 in order to help test my artwork for KDE 4? Last
-
Acer aspire zs600 recovery error; "restore failed - can not find image path"
Recently the hard drive in my Acer Aspire ZS600 failed. I purchased a new hard drive and the recovery media disks from Acer's website. However after installing the new drive and running the recovery disks, the third and final disk ejects with the err
-
[img]http://users.skynet.be/bk230720/plis/fout.jpg[/img] that error I receive, I can't uninstall quicktime, only itunes, but it won't start up, anyone a solution ??? notebook windows xp Windows XP Pro