Video · updated for SAM 3.1
Meta SAM 3 Video Segmentation: Track Any Object in Video Describe what you care about once, and SAM 3 finds, masks and follows every match through your clip, each with its own ID.
At a glance
SAM 3 Video Segmentation in Six Points
Latest version: SAM 3.1 (March 2026) is a drop-in update to SAM 3 that makes video with many objects much faster. Everything on this page works with both.
Overview
What Is Meta SAM 3 Video Segmentation?
It is SAM 3’s concept segmentation applied to a whole clip. Instead of cutting out one object in one frame, SAM 3 finds every object that matches your prompt and keeps a mask and ID on each one as the video plays.
What happens when you prompt a video
- 1FindEvery object that matches your phrase or example is detected.
- 2Mask and numberEach one gets a pixel-accurate mask and its own ID.
- 3TrackMasks and IDs follow the objects through the rest of the clip, and new matches that appear later get new IDs.
Compared with earlier models: SAM 2 tracks the objects you click. SAM 3 can also track everything that matches a description, which is what makes its video segmentation “open vocabulary”.
Prompt types
Three Ways to Tell SAM 3 What to Track
The same prompts work for video as for images. Use whichever matches your question, and combine them when needed.
- Text: “every X”. Short phrases such as “players in red”, “cars on the road” or “blue helmets”. Best when the thing is easy to name.
- Example: “things like this”. Box one object; SAM 3 finds look-alikes. Add a negative example to leave out near-misses, such as referees. Best for logos or object types that are hard to name.
- Clicks, boxes, masks: “this one”. For one hero object, or to fix one mask precisely.
- Combine: start with text to get every match, then click to correct a single object over time.
Several concepts at once? Run one prompt per concept, such as “cars”, “bikes” and “people”. More in our prompts guide.
How tracking works
How SAM 3 Follows Objects Through a Video
SAM 3 pairs a detector, which finds matches in each frame, with a tracker, which remembers what it has already seen. Matching the two keeps IDs stable.
- Shared vision encoder. Each frame is read once and reused by both parts.
- Detector with a presence check. Finds every object matching the prompt, and checks whether the concept is in the frame at all.
- Memory-based tracker. Built on SAM 2’s design, it carries each mask forward and copes with camera motion, partial occlusion and changes in scale or light.
- Matching. Known objects keep their IDs; newly appearing ones get new IDs.
Architecture details: SAM 3 page.
Speed
What SAM 3.1 Changed for Video
Original SAM 3 tracks objects one by one, so crowded scenes get slow. SAM 3.1’s Object Multiplex tracks them together.
- Up to 16 objects per forward pass, using a shared memory.
- About twice the throughput: Meta reports 16 rising to 32 frames per second on a single H100 GPU for a medium number of objects.
- Same accuracy: video scores are level with or slightly above SAM 3.
- Drop-in: same prompts and code; update the repository and load the SAM 3.1 checkpoint.
Upgrade steps: upgrade to SAM 3.1 · SAM 3 vs SAM 3.1
Accuracy
How Accurate Is It on Video?
Meta tests video concept segmentation on its SA-Co/VEval benchmark, which covers three kinds of footage.
- Clearly below human level. SAM 3 reaches roughly 57% to 71% of the human score across the three sets.
- Best on everyday web video (YT-Temporal-1B), harder on varied clips (SA-V) and first-person footage from smart glasses.
- SAM 3.1 matches or edges ahead, most clearly on YT-Temporal-1B (50.8 → 52.9).
- Strong at click-based tracking: on the classic SA-V test, J&F rises from 84.4 for SAM 3 to 85.1 for SAM 3.1.
In practice: expect great first passes on common objects, and plan a quick review for long, crowded or fast-moving footage.
Use cases
What People Use It For
Sports analysis
Track “players in red”, separate referees and goalkeepers, and turn tracks into heat maps and tactics.
Social and creative editing
Isolate a dancer, car or product through a clip, then grade, blur or stylise just that subject.
Traffic and monitoring
Count vehicles, bikes and pedestrians passing through an area, within local laws and policies.
Robotics
Turn camera streams into object-by-object maps, often combined with depth or LiDAR.
Video data labelling
Generate masks across hundreds of frames from one prompt, then train small real-time models.
Anonymisation
Find and blur faces or licence plates across a whole video before sharing it.
More: all use cases
Get started
How to Get Started
Pick the route that fits your skills and volume.
Self-hosting in brief
- 1InstallPython 3.12+, PyTorch 2.7+ and a CUDA 12.6+ GPU, then the official
sam3code. See install SAM 3. - 2Get access to the weightsRequest access on Hugging Face (
facebook/sam3orfacebook/sam3.1). See Hugging Face access. - 3Prompt and propagateStart a session, add a text, example or click prompt, and run it through the clip.
- 4SaveMasks per frame, an alpha video, or tracks as JSON. See mask formats.
Prefer Hugging Face Transformers? It includes a SAM 3 video model that can take several text prompts in one pass.
A text-prompted video, in code
from sam3.model_builder import build_sam3_video_predictor
predictor = build_sam3_video_predictor()
# 1. Open the video
response = predictor.handle_request(
request=dict(type="start_session", resource_path="match.mp4")
)
session_id = response["session_id"]
# 2. Describe what to track, on any frame
response = predictor.handle_request(
request=dict(
type="add_prompt",
session_id=session_id,
frame_index=0,
text="players in red",
)
)
output = response["outputs"] # masks, boxes and IDsBased on the official sam3 repository. Its video example notebook shows how to propagate through every frame and refine with clicks. See also the Python tutorial.
Costs
How Video Costs and Credits Work
SAM 3 is free to download from Meta. What you pay depends on where it runs.
Hosted services
Self-hosted
- No licence fee under the SAM License, within its use limits.
- You pay for GPU time and storage.
- SAM 3.1 lowers GPU time when you track many objects.
- Check system requirements before you buy hardware.
Best practices and limits
Tips for Better Tracking, and Known Limits
Most tracking problems come from long clips, scene cuts, crowds and fast motion. These habits help.
- Keep prompts short and clear“red bikes”, “goalkeepers”, “white vans”.
- Use an example for look-alikesA positive and a negative example beat a long description.
- Split long videosProcess by scene or in chunks, and re-prompt at each cut.
- Correct key framesFix the frame where a track drifts; the correction carries forward.
- Review what mattersFor critical work, check key clips by hand or combine SAM 3 with other trackers.
Questions
Video Segmentation FAQ
What is Meta SAM 3 video segmentation?
It is SAM 3 applied to video: you describe an object with a short phrase, show an example, or click it, and SAM 3 finds every match, draws a mask around each one and keeps the same ID on it from frame to frame.
How is it different from SAM 2 video tracking?
SAM 2 tracks the objects you click. SAM 3 can also find and track every object that matches a text phrase or an example, such as “players in red”, and its tracker builds on SAM 2’s memory design.
What did SAM 3.1 change for video?
SAM 3.1 adds Object Multiplex, which tracks up to 16 objects together in one pass instead of one at a time. Meta reports throughput rising from 16 to 32 frames per second on one H100 GPU for a medium number of objects, with accuracy about the same.
Can SAM 3 segment video in real time?
Near real-time is possible on a data-centre GPU when tracking a handful of objects: Meta cites about five at once. Many objects, high resolution or long clips take longer, so offline processing is common.
How long can the video be?
There is no fixed limit, but memory and processing time grow with length and resolution. For long footage, split it into shorter chunks or scenes and re-prompt at the start of each.
How much does SAM 3 video segmentation cost?
The model is free to download. Hosted services usually charge per second of video or by credits. If you run it yourself, the cost is your GPU time and storage.
What can I export from a video job?
Typically a mask per frame, a video with an alpha channel, or tracking data (IDs, boxes and masks per frame, often as JSON) for analytics and training.
Keep reading
Sources
- Meta AI blog: SAM 3 and SAM 3.1 (Object Multiplex, speed figures)
- facebookresearch/sam3 on GitHub (video predictor, benchmarks)
- Ultralytics: SAM 3 and SAM 3.1 benchmark table
- Hugging Face Transformers: SAM 3 video