GLBasic forum

Main forum => Announcements => Topic started by: Marmor on 2010-Dec-25

Title: WEBCAM for WINDOWS
Post by: Marmor on 2010-Dec-25
HI ,

IF YOU HAVE A WEBCAM and WINDOWS please TEST
http://www.file-upload.net/download-3076670/GLBMETHYL.zip.html (http://www.file-upload.net/download-3076670/GLBMETHYL.zip.html)

i know it beeps ;) but its a small test .
show me your win version and the Pixeldepth if it work or not .




Title: Re: WEBCAM for WINDOWS
Post by: Gregory Atlas on 2010-Dec-25
Works for the second.

- Hauppauge TV-Card (320x480) Possible: RGB24, RGB32, YUY2, YVU9, UYVY, YV12, RGB 555 (16bit)
- Logitech Webcam (640x480) Possible: RGB24, l420
- Windows 7 (32bit)
Title: Re: WEBCAM for WINDOWS
Post by: Ian Price on 2010-Dec-25
Works on Win 7 laptop with integrated  web cam.
Title: Re: WEBCAM for WINDOWS
Post by: matchy on 2010-Dec-31
That very cool.

GIVEIMAGE .dll name is misspelled but other than that is works ok with Logitech HD.

Here I tried it in a loop so really look forward to higher video frame rate without the ding and error return with no dialogue box.

Code (glbasic) Select

GLOBAL ok%

animate_cam()

FUNCTION animate_cam:
LOCAL flag_loop=1

ok%=GetGLBWINHANDLE()
INITCAM()
GOSTART()
    CAPTURESTART()
// CAPTURESTOP()
//    CAPTURESTART()
WHILE flag_loop
IF KEY(01)=1
flag_loop=0
ENDIF
Saveimage()
LOADSPRITE "TEST.bmp",1
DRAWSPRITE 1,10,10
SHOWSCREEN
// SLEEP 200
WEND
CAPTURESTOP()
DISCONNECT()
END
ENDFUNCTION

Title: Re: WEBCAM for WINDOWS
Post by: Moebius on 2010-Dec-31
Very cool - I can watch TV in GLBasic!  This seems to work with most video inputs...
Title: Re: WEBCAM for WINDOWS
Post by: Marmor on 2010-Dec-31
i've written a new one with different Methods to get the Image but i wait for Kitty to code a cool solution for grabbing a image directly to a spritebuffer .
at this time u need bmp2avi if u will create  a avifile from the bmp
maybe i have a solution for "realtime" Avicapturing .

Title: Re: WEBCAM for WINDOWS
Post by: Marmor on 2011-Jan-01
http://www.file-upload.net/download-3094840/l-l.rar.html

my fastest capture programm
Title: Re: WEBCAM for WINDOWS
Post by: Kitty Hello on 2011-Jan-05
That works pretty well. Is that GLBasic!?
Title: Re: WEBCAM for WINDOWS
Post by: Marmor on 2011-Jan-05
Finally you got a Webcam ?
Title: Re: WEBCAM for WINDOWS
Post by: Kitty Hello on 2011-Jan-05
yes. 9,90