I have one form where is capture image from many devices. It can be integrated camera and IP camera. When I put this code: ImageEnView1.IO.CreateAVIFile(fileName, 10, 'DIB ' ); it record stream from integrated camera but when I run stream from IP camera this function CreateAVIFile create file but this file has size is 0. How can I capture and save image from this two cameras on one form?
Second question is this: When I run this: ImageEnView1.IO.CreateAVIFile(fileName, 10, 'DIB ' ); 7 second of movie has size about 70mb. Is there any chance to compress this stream?
It looks like you are using TIEJpegAcquireStream to retrieve content from an IP camera, but nowhere do you call SaveToAVI (except for your DirectShow code which is not used by TIEJpegAcquireStream).
You must call SaveToAVI each time you add a new frame to ImageEnView.IEBitmap.