ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to record stream from integrated and IP camera
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

woolfik

Poland
13 Posts

Posted - Nov 27 2014 :  13:56:27  Show Profile  Reply
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?

xequte

39141 Posts

Posted - Dec 01 2014 :  21:20:45  Show Profile  Reply
Hi

You don't show your code from capturing from the IP camera, but CreateAVIFile only creates a video from images loaded into a TImageEnIO.

You would be better off to use one of the other capture methods such as DirectShow or MMF. See the demos in the \VideoCapture\ folder for more info.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

woolfik

Poland
13 Posts

Posted - Dec 02 2014 :  12:27:04  Show Profile  Reply
In attach is my pas and dfm file

attach/woolfik/2014122122652_AVMed.zip
7.49 KB
Go to Top of Page

xequte

39141 Posts

Posted - Dec 02 2014 :  22:54:31  Show Profile  Reply
Hi

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.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: