Skip to content

Streaming through the Datastead Encoder

Creating and configuring an instance

To create an instance that streams to the network, invoke Encoders_CreateInstanceForStreaming. The function returns the unique ID assigned to the instance when it is created.

To configure the encoder, pass this ID to Encoder_SetStr and Encoder_SetInt.

The instance is used only once it is enabled with Encoder_SetInt (ID, Enc_IsActive_bool, 1), with Enc_Video_Enabled_bool and/or Enc_Audio_Enabled_bool set to 1. See the "Pushing to a Wowza server" sample in Record/Stream/Merge/Transcode through the Datastead Multipurpose Encoder.

While the video is running, the instance can be paused with Encoder_Pause and resumed with Encoder_Resume.

Once the video is stopped (VideoGrabber.Stop()):