Lazarus

Programming => Graphics and Multimedia => DirectX => Topic started by: Dzandaa on April 18, 2023, 04:11:31 pm

Title: pl_win_dspack: SampleGrabber not working
Post by: Dzandaa 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.

Title: Re: pl_win_dspack: SampleGrabber not working
Post by: avra 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.

Title: Re: pl_win_dspack: SampleGrabber not working
Post by: af0815 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.
Title: Re: pl_win_dspack: SampleGrabber not working
Post by: Dzandaa 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->
TinyPortal © 2005-2018