Decoding – Sensoray 2224 Windows User Manual
Page 14
Unfortunately, if the user does manage to move the video window from one display to another, the
preview may freeze. When this happens, the recording will continue (file size will still increase) but the
user may be alarmed by the loss of preview. This at least gives the option of stopping the stream and
restarting with a new file without losing recorded data. It is best to prevent this in the first place by
using the workaround to prevent the video preview from changing monitors.
H264 is a highly compressed format. When using a slower PC, high CPU usage and preview stuttering
while previewing the stream may occur. In this case, it is best to use an external monitor and the 2226
hardware outputs to preview the stream.
Raw preview is much less CPU intensive. This eliminates the multi-monitor issue above at the tradeoff of
reduced resolution.
Callbacks are also allowed during preview.
The following functions described later in the Functions Reference are associated with Preview. The 2226
does not support switching inputs while streaming. Do not unplug the input after streaming has started.
•
S2226_StartPreview
•
S2226_StartPreviewAndRecord, S2226_StartPreviewAndRecordW
•
S2226_StopStream
Decoding
The 2226 has the capability to decode streams recorded by the same hardware. It is a closed decoder
in that other H.264 streams not recorded by the 2226 codec may not be decoded successfully. The
decoder must know the format (video size and clock) of the stream. It does not have the capability to
auto-detect the stream format parameters. Please see the function reference for the functions below:
•
S2226_StartDecode, S2226_StartDecodeW, S2226_StartDecodeMem, S2226_SendData
•
S2226_StopStream
14