Webcam capture

Moderator: Rathinagiri

Post Reply
User avatar
vagblad
Posts: 173
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

Webcam capture

Post by vagblad »

Hello to everyone,

I've been fiddling around lately with capturing images from webcams using Vfw. Specifically the code from the webcam sample from the MiniGUI distribution.
Long story short, i've been having two problems:

1)I want to use the camera through Windows remote desktop(Windows 10/11 client - Windows Server 2019) and it won't just work. It wo'nt connect to the camerasource despite the camera shows up in the Server's device manager as it should be. Now Grigory suggested a few things to do like
https://www.net-usb.com/usb-over-rdp/ho ... -over-rdp/
To clarify the app works fine when i run it locally. I've downloaded other really small apps which take control of cameras and they work fine both on the local machine and through remote desktop.

Unfortunately it didn't help since i've already had tried the above steps before.

2)The maximum resolution of the captured image is only 640x480. Tried a few things with Vfw macros but still i couldn't raise it above that. I asked the same question on the MiniGUI google group but i thought i'd give it a try here as well in case someone has encountered a similar situation before.

The code used to access the webcams is pretty straightforward: You enuemrate the available drivers first with capGetDriverDescription, create a capture window and connect it to the camera source with capCreateCaptureWindow. After that you capture the image with capFileSaveDIB and that's pretty much it. As i said it's essentially the code from the MiniGUI sample.

Last thing i've tried is to call the Video format dialog (capDlgVideoFormat) which again unfortunately only allows up tto 640X480 resolution.

3)What would be the next logical step/upgrade from Vfw for such functionality like capturing images from webcam etc..? DirectShow maybe? Should i give it a go with that?Or is is there something else that i could try.

Thanks a lot for the help.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad
Post Reply