2.4.10 H.265 Capture¶
Certain DeckLink devices support encoded (e.g. H.265) capture in addition to regular uncompressed capture.
Note
the Encoded Capture interface is distinct from the H.264 only ‘Streaming Encoder’ interface.
2.4.10.1 Encoded Capture¶
An application performing an encoded capture operation should perform the following steps:
Obtain a reference to the
IDeckLinkEncoderInput
interface fromIDeckLinkInput
viaIUnknown::QueryInterface()
.If desired, enumerate the supported encoded capture video modes by calling
IDeckLinkEncoderInput::GetDisplayModeIterator()
.For each reported capture mode, call
IDeckLinkEncoderInput::DoesSupportVideoMode()
to check if the combination of the video mode and pixel format is supported.
While streams are running:
Receive calls to
IDeckLinkEncoderInputCallback::VideoPacketArrived()
with encoded video packets.Receive calls to
IDeckLinkEncoderInputCallback::AudioPacketArrived()
with audio packets.
Note
If audio is not required, the call to IDeckLinkEncoderInput::EnableAudioInput()
may be omitted and the IDeckLinkEncoderInputCallback::AudioPacketArrived()
callback will not be called.