
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
34
Explanation:
We can set some parameters of subchannel 0 and subchannel 1 respectively. The
parameters like OSD, LOGO, STREAMTYPE are the same to the 0 or 1 sub
channel. This function should be called to set subchannel 0 and subchannel 1
respectively, when we set these parameters, such as Key Frames Intervals, Quantity
Value, bit rate control mode, and value of bit rate. By default, the setting is for
Sub channel 0.
Return value:
0—success; -1 – failed;
4.2.64.
int GetSubChannelStreamType(void *DataBuf, int FrameType);
Parameter:
void *Databuf data buffer which will be put in
int FrameType frame type
Explanation:
It is just compatible older version. Now the Frame type is provide directly.
Return value:
0 - other data
1 - File header of master data stream
2 - File header of sub data stream
3 - Video Frame type of master data stream
4 - VideoFrame type of sub data stream
5 - Audio Frame
4.2.65.
int GetFramesStatistics(int channelHandle,
PFRAMES_STATISTICS framesStatistics);
Parameter:
int channelHandle channel handle
PFRAMES_STATISTICS ramesStatistics statistic information of frame(refer
to section 2.2)
Explanation:
Get statistic information of frame;
Return value:
0—success; -1 – failed;
4.2.66.
int CaptureIFrame(int channelHandle);
Parameter:
int channelHandle channel handle
Explanation:
Force the current frame encode as I frame. We can read this I frame from data stream and
used in the internet transmission independently.
Return value:
0—success; -1 – failed;