hellpppp

any vb/vc programmer out there worked with Video-For-Windows???
i’m stuck with a problem, i need to grab individual frames from live video stream, and do some in-memory processing on those captured frames if some certain event is triggered.
I’ve got the raw video data in VIDEOHDR.lpData element and tried to use this buffer to fill in a DIB, but the picture i get is not good, its screwed up, in terms of size and color and all. tried to find out the actual format of this lpData but couldnt find anywhere, msdn just says its “Pointer to locked data buffer.” no detail about how the pixel values are stored :s

and 2nd question is, how can i open more than one video grabbers? i’v installed 2 video capture cards but the api gets only one, even both are listed in device manager :confused:

one more question :smiley: how can i select the input source channel programmatically??? the api provides with a dialog box but i dont want to show the dialog box to the user, in fact there is no real user, the application has to capture from more than one sources, the card supports 3 inputs, and the same capture card is working perfect in linux under v4l, channel selection at runtime and card select everything is working there, but in windows it sucks :frowning:

please help
any example would b much appreciated

Re: hellpppp

no reply :frowning: :bummer:

Re: hellpppp

Aceones, I know vb scripting but it wont help u in video for wins. Why don't you look for a forum for vb scripts and I am sure you will find some help there.

Re: hellpppp

^^ vbscript isnt suitable for many different reasons for the project, UI and processing speed are two of them. have to do it in vb anyways coz i'm comfotable with vb on windows n c on linux :/
cant do it in linux coz the application uses a few libraries/ sdks only for windows :(
thnx anyways