View Full Version : Disabling image display during AVI streaming

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) ?



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

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

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

AviStartCapture(path, codec);

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

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,


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

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.