Video Intelligence Deployment Guide#

Solution Blueprints are provided as Helm Charts.

The recommended approach to deploy them is to pipe the output of helm template to kubectl apply -f -. We don’t recommend helm install, which by default uses a Secret to keep track of the related resources. This does not work well with Enterprise clusters that often have limitations on the kinds of resources that regular users are allowed to create.

This blueprint is designed to run on AMD Instinct GPUs.

To deploy the blueprint, run the following command:

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  | kubectl apply -f - -n $namespace

Known issue (Helm 4.2.1+): Helm 4.2.1 and newer leak Pulled:/Digest: metadata to stdout (helm#32215), which breaks the piped helm template … | kubectl apply -f -. Until the fix ships, either use Helm 3.16 – 4.2.0, or split the pull and template steps, e.g.:

helm pull oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence --untar
helm template $name ./aimsb-video-intelligence \
  # …same flags as the piped command above…
  | kubectl apply -f - -n $namespace

Using an existing deployment or external LLM#

By default, the LLM is deployed by the helm chart. If you already have a compatible AIM deployed, you can use that instead and reuse resources.

To use an existing deployment or external LLM for summaries and Q&A, set the value llm.existingService to that endpoint. Then, any other values you pass in the llm mapping are simply ignored, and your existing service is used instead. You should use the Kubernetes Service name, or if the service is in a different namespace, you can use the long form <SERVICENAME>.<NAMESPACE>.svc.cluster.local:<SERVICEPORT>. If needed, you can pass a whole URL.

Full example command:

name="my-deployment"
namespace="my-namespace"
servicename="aim-llm-my-model-123456"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  --set llm.existingService=$servicename \
  | kubectl apply -f - -n $namespace

API Key and Model Configuration for External LLM#

When using an external LLM service, you can optionally configure the API authentication credentials and specify a particular model:

  • llm.apiKey (optional): Bearer token for API authentication

  • llm.model (optional): The specific model identifier to use (e.g., Qwen/Qwen3-32B, gpt-4-turbo)

Specifying the model is not needed when using AIMs, as the instance typically only serves one model. If llm.model is left empty, the list of models is queried from the API, and the first available model is used.

Example command:

name="my-deployment"
namespace="my-namespace"
api_url="https://llm-api.example.com"
api_key="<YOUR_API_KEY>"
model_name="Qwen/Qwen3-32B"

helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  --set llm.existingService=$api_url \
  --set llm.apiKey=$api_key \
  --set llm.model=$model_name \
  | kubectl apply -f - -n $namespace

Using Kubernetes Secrets for API Key#

For enhanced security, you can store the API key in a Kubernetes secret and reference it:

name="my-deployment"
namespace="my-namespace"
secretname="my-secretname"
api_url="https://llm-api.example.com"

# Create the secret
kubectl create secret generic $secretname -n $namespace \
  --from-literal=api-key="<YOUR_API_KEY>"

# Deploy with secret reference
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  --set llm.existingService=$api_url \
  --set llm.apiKeySecretRef.name=$secretname \
  --set llm.apiKeySecretRef.key=api-key \
  | kubectl apply -f - -n $namespace

Default AIM image and GPU compatibility#

By default, the chart deploys these images:

  • llm.image=amdenterpriseai/aim-qwen-qwen3-32b:0.11.1 (summaries and grounded answers)

  • vlm.image=vllm/vllm-openai-rocm:v0.22.0 (vision-language captioning, Qwen/Qwen3-VL-8B-Instruct)

  • embed.image=vllm/vllm-openai-rocm:v0.22.0 (BGE-M3 text and CLIP image embeddings)

On newer GPUs, these images may not be the best match and can fail to start or run sub-optimally. To choose a newer AIM or a different LLM, override llm.image; the vision-language and embedding images can be overridden similarly. See the catalog of available AIMs for options.

Example:

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  --set llm.image=amdenterpriseai/aim-qwen-qwen3-32b:<NEWER_TAG> \
  | kubectl apply -f - -n $namespace

Using custom images and imagePullSecrets#

The chart builds three images of its own: the application (backend and UI), the object tracker, and the sample clips preloaded at startup (list your own clips in samples.preload). To use custom versions from another repo, set the image values and, if the registry is private, imagePullSecrets:

name="my-deployment"
namespace="my-namespace"
imagerepository="my-repo/custom-video-intelligence-app"
trackrepository="my-repo/custom-video-intelligence-track"
samplesrepository="my-repo/custom-video-intelligence-samples"
imagetag="0.0.1"
secretname="my-registry-secret"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  --set image.repository=$imagerepository \
  --set image.tag=$imagetag \
  --set track.image.repository=$trackrepository \
  --set track.image.tag=$imagetag \
  --set samples.image.repository=$samplesrepository \
  --set samples.image.tag=$imagetag \
  --set imagePullSecrets[0].name=$secretname \
  | kubectl apply -f - -n $namespace

imagePullSecrets applies to the pods this chart defines (app, tracker, VLM, and embeddings). The LLM and ChromaDB subcharts have their own image settings.

Connecting#

Option 1: Port Forwarding#

To connect to the UI, port-forward port 8090. The UI will then be available at http://localhost:8090.

kubectl port-forward services/aimsb-video-intelligence-$name 8090:80 -n $namespace

Option 2: HTTPRoute (Gateway Access)#

If your cluster has a Gateway API compatible gateway (e.g., Kubernetes Gateway, Istio, etc.), you can enable HTTPRoute creation to route traffic through the gateway.

Prerequisites:

  • A Gateway named https must exist in the envoy-gateway-system namespace (or configure a different gateway).

  • The Gateway must be properly configured with listeners.

Enabling HTTPRoute:

Use --set http_route.enabled=true in the helm template command to enable HTTPRoute creation:

name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  --set http_route.enabled=true \
  | kubectl apply -f - -n $namespace

Obtaining the URL:

The URL to access the blueprint via HTTPRoute is formed by the service name and the hostname of the gateway. Use this command to produce the URL by querying the hostname from the cluster:

echo "https://aimsb-video-intelligence-$name$(kubectl get gtw -n envoy-gateway-system https -o jsonpath='{.spec.listeners[?(@.name=="https")].hostname}' | tr -d \*)/"

Using Video Intelligence#

The library opens with the two sample clips from samples/, intersection at the top and already selected, and indexes them as soon as the models are up. Set --set 'samples.preload={}' to start with an empty library, or list other clips from the samples image (see Using custom images and imagePullSecrets).

Upload a video from the UI. It is split into segments, the vision-language model describes the sampled frames, the LLM writes each caption from those descriptions, and the captions and keyframe images are indexed for retrieval. Once indexing completes you can:

  • Ask questions in natural language and get answers cited to the exact segment and timestamp.

  • Analyze the video to produce a timestamped summary (overview, timeline, key observations).

  • Track objects to draw boxes and IDs on a tracking-overlay copy of the video and make the tracked objects queryable in Ask. Tracking also reports moments where two objects come into contact, each one checked against the frames before it is kept, so Ask can answer about an incident the captions do not mention.

The vision-language model and LLM can take several minutes to load on first start; the app remains available while they come up.

Questions that name a time span, such as “between 1:20 and 1:40” or “in the first 30 seconds”, are answered from the segments covering that span.

Tuning#

Application settings are set under env_vars in values.yaml; the detector resolution is set under track.

Setting

Default

Effect

CHUNK_SECONDS

10

Length of each captioned segment. Shorter segments locate events more precisely and cost more to index.

FRAMES_PER_CHUNK

8

Frames sampled from each segment for captioning.

FULL_SCAN_MAX_SEGMENTS

150

A video with no more segments than this is answered from its whole timeline. Longer videos fall back to similarity search, which returns the closest segments rather than all of them.

ANSWER_MAX_TOKENS

4096

Maximum length of an answer. Answers that reach the limit are marked as truncated.

ANALYSIS_MAX_TOKENS

8192

Maximum length of a generated analysis, which writes one timeline entry per segment.

track.imgsz

640

Detector resolution. Small or distant objects, such as aerial footage, need 1280, which also detects each frame as overlapping tiles and takes several times as long; 640 suits close, street-level scenes.

track.contactGap

0.05

How close two tracks must come, as a fraction of the larger box, to count as touching. Separation is measured on screen, so raise it for a camera looking along the line of travel, where real gaps read as small.

track.contactHoldSeconds

0.15

How long that has to hold before it becomes a candidate. Low on purpose: every candidate is checked against the frames, so missing one costs more than proposing one too many.

track.contactExpireSeconds

0.5

How long a run survives losing the pair. Detections drop out as objects meet, and without this one event breaks into pieces too short to report.

Clean Up#

When you are finished, remove the deployed resources:

helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-video-intelligence \
  | kubectl delete -f - -n $namespace