PDA

View Full Version : Disabling image display during AVI streaming



Unregistered
October 22, 2003, 18:47:05
Is it possible to disble the image display in the Control whilst AVI recording is in progress (to reduce CPU load) ?

Thanx

Tom

Stefan Geissler
October 23, 2003, 09:53:15
Tom,

Yes, it is possible to disable the live video display. Set the property “LiveDisplay” to false.

tdiethe
October 23, 2003, 11:22:26
Ok, it works if I do:

SetLiveDisplay(FALSE);
AviStartCapture(path, codec);

but if I want to start the recording paused, and unpause it later:

SetLiveDisplay(FALSE);
SetLiveCapturePause(TRUE);
AviStartCapture(path, codec);

I get:

"An unexpected DShowLibException occurred: CPin::StartAt(REFERENCE_TIME, DWORD): IAMStreamConfig interface unsupported by this pin
In file: C:\CSource\core\DShowLib\Pin.cpp at line: 688"


Basically I want to start-up recording (paused) and have a preview running when the app starts, then when it recieves a message over the network I want to unpause the recording.

At the moment I can only have the preview on all the time or never.

Thanks again,

Tom

Stefan Geissler
October 23, 2003, 12:30:50
Hello,

The SetLiveDisplay(FALSE) can only be performed, if the livevideo does not run, this means, stopLive() has been called.
You can not disable the livedisplay during the live video is shown. To save CPU load, you could resize the live video display to a small display. This can be done during the live video is shown.
Please refer to the scroll and zoom sample dokumentation in the ActiveX Users Guide to resize the live video.