🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
8 messages
8 total messages Started by user Thu, 09 Dec 2004 17:11
select video source
#392
Author: user
Date: Thu, 09 Dec 2004 17:11
5 lines
1147 bytes
I want capture video streams from four webcams, but how can we select 
which camera is connected to a window when we call te function 
capDriverConnect ? there is a multimedia funcion to select the camera?

luca
Re: select video source
#393
Author: Remy Lebeau (TeamB)
Date: Thu, 09 Dec 2004 17:29
13 lines
1375 bytes
<user@domain.invalid> wrote in message
news:41b88723$2@newsgroups.borland.com...

> I want capture video streams from four webcams, but how
> can we select which camera is connected to a window when
> we call te function capDriverConnect ?

That is what the iIndex parameter is for.  Each camera should have its own
driver and thus its own index.


Gambit
Re: select video source
#402
Author: luca
Date: Thu, 09 Dec 2004 17:54
30 lines
1708 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio
news:41b88bd4@newsgroups.borland.com...
>
> <user@domain.invalid> wrote in message
> news:41b88723$2@newsgroups.borland.com...
>
> > I want capture video streams from four webcams, but how
> > can we select which camera is connected to a window when
> > we call te function capDriverConnect ?
>
> That is what the iIndex parameter is for.  Each camera should have its own
> driver and thus its own index.
>
>
> Gambit
>
>

Changing the iIndex I get alwais the same camera.
Calling capGetDriverDescription I find two drivers with the same index

Logitech USB Video Camera,   Version:  5.4.4.1005   index 0
Microsoft WDM Image Capture (Win32),   Version:  5.0.2195.3649   index 0


 How can I create a driver for each camera?


luca
Re: select video source
#397
Author: user
Date: Thu, 09 Dec 2004 17:55
28 lines
1704 bytes
Remy Lebeau (TeamB) wrote:
> <user@domain.invalid> wrote in message
> news:41b88723$2@newsgroups.borland.com...
> 
> 
>>I want capture video streams from four webcams, but how
>>can we select which camera is connected to a window when
>>we call te function capDriverConnect ?
> 
> 
> That is what the iIndex parameter is for.  Each camera should have its own
> driver and thus its own index.
> 
> 
> Gambit
> 
> 
Changing the iIndex I get alwais the same camera.
Calling capGetDriverDescription I find two drivers with the same index

Logitech USB Video Camera,   Version:  5.4.4.1005   index 0
Microsoft WDM Image Capture (Win32),   Version:  5.0.2195.3649   index 0


  How can I create a driver for each camera?


luca
Re: select video source
#396
Author: user
Date: Thu, 09 Dec 2004 17:56
29 lines
1752 bytes
Remy Lebeau (TeamB) wrote:

> <user@domain.invalid> wrote in message
> news:41b88723$2@newsgroups.borland.com...
> 
> 
>>I want capture video streams from four webcams, but how
>>can we select which camera is connected to a window when
>>we call te function capDriverConnect ?
> 
> 
> That is what the iIndex parameter is for.  Each camera should have its own
> driver and thus its own index.
> 
> 
> Gambit
> 
> 
Changing the iIndex I get alwais the same camera.
Calling capGetDriverDescription I find two drivers with the same index

Logitech USB Video Camera,   Version:  5.4.4.1005   index 0
Microsoft WDM Image Capture (Win32),   Version:  5.0.2195.3649   index 0


  How can I create a driver for each camera?


luca
Re: select video source
#399
Author: Remy Lebeau (TeamB)
Date: Thu, 09 Dec 2004 19:20
13 lines
1369 bytes
<user@domain.invalid> wrote in message
news:41b8919f@newsgroups.borland.com...

> Calling capGetDriverDescription I find two drivers with the same index

Very doubtful.  You have to specify the index when calling
capGetDriverDescription().  That same index applies to capDriverConnect() as
well.  The fact that you are getting different descriptions when changing
the index tells you that you are accessing different cameras.


Gambit
Re: select video source
#403
Author: Remy Lebeau (TeamB)
Date: Fri, 10 Dec 2004 10:34
15 lines
1399 bytes
"luca" <lct@tele2.it> wrote in message
news:41b96f43$1@newsgroups.borland.com...

> Changing the iIndex I get alwais the same camera.
> Calling capGetDriverDescription I find two drivers with the same index

You are contradicting yourself.  You say that different indexes return the
same camera, but then you are saying that different cameras have the same
index.  You can't have it both ways.

I already addressed this issue in another reply.  Please refer to it.


Gambit
Re: select video source
#404
Author: luca
Date: Mon, 13 Dec 2004 10:42
53 lines
2451 bytes
We must distinguish bitween driver and source.

Logitech USB Video Camera,   Version:  5.4.4.1005
Microsoft WDM Image Capture (Win32),   Version:  5.0.2195.3649

are two drivers, the first one from Logitech  the second from Microsoft.
changing the driver dont't affect the video source.
the only way that I found to change the  video source is to use
capDlgVideoSource(), but this is a dialog window, I need to do this by the
code.
May be that multimedia function don't implement the specification of twain
drivers?

luca

"luca" <lct@tele2.it> ha scritto nel messaggio
news:41b96f43$1@newsgroups.borland.com...
>
> "Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio
> news:41b88bd4@newsgroups.borland.com...
> >
> > <user@domain.invalid> wrote in message
> > news:41b88723$2@newsgroups.borland.com...
> >
> > > I want capture video streams from four webcams, but how
> > > can we select which camera is connected to a window when
> > > we call te function capDriverConnect ?
> >
> > That is what the iIndex parameter is for.  Each camera should have its
own
> > driver and thus its own index.
> >
> >
> > Gambit
> >
> >
>
> Changing the iIndex I get alwais the same camera.
> Calling capGetDriverDescription I find two drivers with the same index
>
> Logitech USB Video Camera,   Version:  5.4.4.1005   index 0
> Microsoft WDM Image Capture (Win32),   Version:  5.0.2195.3649   index 0
>
>
>  How can I create a driver for each camera?
>
>
> luca
>
>
>
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads