Frame Rate
Throttle how often a video or live stream is run through the Pop
fps throttles how often a video or live stream is run through the Pop. It is the single most effective control over cost and over keeping up with a live source: a 30fps camera watching a door does not need 30 inferences a second.
The value is a fraction string — "1/1" for one frame per second, "5/1" for five, "1/2" for one every two seconds. Left unset, every frame the source delivers is processed.
job = endpoint.load_from(
"rtsp://camera.example.com/stream1",
fps="1/1",
)
while result := job.predict():
print(result)const results = await endpoint.process({
source: { url: 'rtsp://camera.example.com/stream1' },
fps: '1/1',
})Throttling drops frames before inference; it does not change what a prediction looks like. Each prediction still carries its own seconds timestamp, so gaps in the sequence are visible rather than silent.
Last updated
