Recent

Author Topic: pl_win_dspack: SampleGrabber not working  (Read 1841 times)

Dzandaa

  • Sr. Member
  • ****
  • Posts: 255
  • From C# to Lazarus
pl_win_dspack: SampleGrabber not working
« on: April 18, 2023, 04:11:31 pm »
Hi,

I tried to compile SampleGrabber from pl_win_dspack on Win64

The video play fine, but the Snapshot does nothing.

The Snapshot works when I change the TVideoWindow to vmVMR mode, but the program crashes on exit.

Any Idea?

Thank you.

Dzandaa

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: pl_win_dspack: SampleGrabber not working
« Reply #1 on: April 20, 2023, 08:38:25 pm »
I have found out that dspack already exists as native Lazarus component, so I will probably kick it out of the next ct4laz release.

Anyway, you can try to uninstall pl_win_dspack and install original version from https://github.com/TheBlackSheep/DSPack-Lazarus

If problem does not go away, I suggest you to open a bug report in original repo.

ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: pl_win_dspack: SampleGrabber not working
« Reply #2 on: April 21, 2023, 07:49:50 am »
I have concated the versions of
Clootie -> MS DirectX 9.0 SDK = http://www.clootie.ru/fpc/index.html
The BlachSheep -> DSPack - Lazarus version of the progdigy DSPack DirectShow Multimedia components = https://github.com/TheBlackSheep/DSPack-Lazarus
Mike.Cornflake -> lazarusvideoutilities = https://sourceforge.net/projects/lazarusvideoutilities/

Original it was from clootie the and prodigy. But i found some patches, extensions and put all together in the repos. There is a branch called WIP_Andi there is some doku in TEX format colleted about the DirectShow. Because i will never use pl_* Packages.

Quote
The video play fine, but the Snapshot does nothing.
For this a sample is needed, because i work with snapshots often and see only a problem if the camera/source change the format of the datastream. And such a format change must be handled correct.
« Last Edit: April 21, 2023, 07:57:57 am by af0815 »
regards
Andreas

Dzandaa

  • Sr. Member
  • ****
  • Posts: 255
  • From C# to Lazarus
Re: pl_win_dspack: SampleGrabber not working
« Reply #3 on: April 22, 2023, 12:24:17 pm »
Thank you very much.

I've found an alternative solution by copying the TVideoWindows canvas to a TBitmap an then save the TBitmap to a file.

B->
Dzandaa

 

TinyPortal © 2005-2018