Using the Streaming API

You can split a video file into chunks and stream each chunk by using gRPC to
send multiple messages to the Video Intelligence API streaming service. The first
message must only contain a
StreamingVideoConfig message.
All subsequent messages must only contain video data.

The Video Intelligence API streaming service returns a
response
that contains results
based on the feature
that you specified in your video config.

In a gRPC request, you write the binary data directly to the stream. You do
not need to convert the video content to base64.

We recommend that you keep the size of your video chunks to less than 10 MB.

For video formats that are not listed as supported, you can determine if
your video file supports streaming by using
a named pipe and the ffmpeg tool. The following sample
commands decode a video
into PNG images at a rate of 0.2 fps. If your file can be successfully decoded
using these commands, then you can stream it using the Video Intelligence
streaming service.