PDA

View Full Version : Bitmap grad while streaming to disk



Mike Tyrrell
March 20, 2016, 20:46:55
Hi,
I am writing an application which needs to stream video to disk at high fps rate but also grab a bitmap (about every 1/10 of a second) for some analysis within the application.

Working through the code samples I have each element working separately

e.g. grabbing bitmap for analysis
IcImagingControl1.MemorySnapImage()
MainGrabBmap = IcImagingControl1.ImageActiveBuffer.Bitmap

and Streaming to disk file
IcImagingControl1.AviStartCapture(AVIfilename, "DV Video Encoder")

However, when I try to use them together then the grabbing bitmap no longer works and I just get a black bitmap.

Grateful for any advice on where I'm going wrong with this approach.
Thanks

Stefan Geissler
March 29, 2016, 10:17:51
Hello Mike

You may have a look at
http://www.theimagingsource.com/en_US/support/snippets/icimagingcontrol-dotnet/image-and-avi-capture.htm

FYI:
"DV Video Encoder" is not a good choice, because it changes the video format to PAL or NTSC and also the playback rate.

Mike Tyrrell
May 10, 2016, 22:17:47
Sorry for the long delay in replying - work has kept me away from this project.

I tried to follow the link you posted but it re-directs to the software downloads page which I don't think is what you were trying to show me.

Thanks,
Mike

Stefan Geissler
May 13, 2016, 16:00:27
Mike

the new design of our website deleted the sample library. I moved the sample source code of the image and AVI capture to
https://github.com/TheImagingSource/Windows-Sample-Image-and-AVI-Capture

Mike Tyrrell
May 23, 2016, 20:31:52
OK so would I have to write a filter from scratch (seems a lot of work) or is there one that already exists so I can capture the image into memory instead of writing to a file as shown in the sample code ?

Mike

Stefan Geissler
May 24, 2016, 09:26:18
Mike

there are two ways: As you suggested, use a samplem e.g. the sample from
c:\Users\stefan_geissler\Documents\IC Imaging Control 3.4\samples\C# 2010\Binarization\

or you use the frame filter wizard.
http://www.theimagingsource.com/support/documentation/ic-imaging-control-net/tech_wizards_framefilterclass2005.htm

Did the sample on the Github not work for you?