Streaming through the Datastead Encoder
Creating and configuring an instance
To create an instance that will stream to the network, invoke Encoders_CreateInstanceForStreaming
The function returns a unique ID that is assigned when creating the instance.
To configure the encoder, this ID must be passed to Encoder_SetStr and Encoder_SetInt .
The instance is used only once enabled: 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()):
-
an encoder instance can be removed by invoking Encoders_RemoveInstance , otherwise it will be active again when restarting the video.
-
to remove all the encoder instances associated with a TVideoGrabber component invoke Encoders_RemoveAllInstances