Bypass Formant video encoder

How do I upload pre-encoded video?

  • We're wondering how we can go about using the h264 bytes we've already encoded from our image streams instead of using Formant's encoding.
  • We would like to remove any excess load on the device, so we'd like to try using the bytestream we already have.

To ingest video data without using the Formant encoder, you must send it using the post_image method of the Formant Agent SDK as follows:

from formant.sdk.agent.v1 import Client

fclient = Client()
fclient.post_image(stream_name, frame, content_type="video/h264")

The byte-stream must be h264 encoded with a baseline or constrained-baseline profile.

For more information on the Agent SDK, including a definition of the post_image method and its parameters, see the Agent SDK Reference.

For more information on adding a telemetry video stream, see Add a video stream.

For more information on adding a teleoperation video stream, see Add a teleoperation image stream.

👋

If you notice an issue with this page or need help, please reach out to us! Use the 'Did this page help you?' buttons below, or get in contact with our Customer Success team via the Intercom messenger in the bottom-right corner of this page, or at [email protected].