Recent

Author Topic: Windows WebCamera?  (Read 2235 times)

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Windows WebCamera?
« on: May 20, 2018, 02:12:01 am »
Is there a way to add the webcam to a Lazarus form for liveview?
Thanks in advance
Bob
Rob

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Windows WebCamera?
« Reply #1 on: May 20, 2018, 11:14:33 am »
hello,
if you have vlc installed on your system, you can try this


Friendly, J.P
« Last Edit: May 20, 2018, 11:16:31 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: Windows WebCamera?
« Reply #2 on: May 20, 2018, 06:39:36 pm »
In windows you can use DirectShow to show, record, capture from USB Cams. I have written some Application with it. 4k is not possible due the limitations of DS.

Andreas
regards
Andreas

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Re: Windows WebCamera?
« Reply #3 on: May 20, 2018, 09:04:47 pm »
Thanks for the reply.
I wan't the webcam to show a liveview on a form.
Is this possible with DirectShow? Where can i find some code about this?
Thanks in advance
Bob
Rob

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: Windows WebCamera?
« Reply #4 on: May 20, 2018, 11:39:18 pm »
Look in https://github.com/afriess/LazarusVideoUtilities/tree/WIP_andi/Examples/Lazarus/Filter there are some samples with Direct Show working with Lazarus.
regards
Andreas

 

TinyPortal © 2005-2018