Guide · Published · Updated

Moderating large volumes of user-generated video.

Nobody can watch every upload. Sample a frame or two a second instead of every frame, check videos asynchronously, a batch at a time, and send people only what the model flags. With Detectivision you send a video’s address and get the result by webhook.

Your options

Three ways to moderate video

WayHow it scalesWhere it fails
People watch every videoWith the size of the team.Hours of video an hour of uploads; slow and hard on the moderators.
A model checks every videoWith the volume of uploads.Cases that need judgement or context.
A model checks, people decide what it flagsWith the volume; people see only what is flagged.The least: this is the usual way.
How it works

With Detectivision, as its docs describe it:

  1. Send its address with "async": true: you get an id at once, pay half, and get the result by webhook. Up to 50 checks can wait at once per account; send more as results come in.

  2. Choose the frame rate

    fps sets how many frames a second are checked, 0.5 to 10. For most content 1 or 2 is enough.

  3. Split long videos

    One check takes up to 300 frames: 5 minutes at 1 fps, 30 seconds at 10. Longer videos go in parts.

  4. Hold a flagged video for a moderator, or take it down. Moderators take your own actions on it from the dashboard’s Logs, and your system gets each one by webhook.

Worked examples

What a video costs

From the video docs, in detect mode: a unit is a started 60 frames checked, a minute of video at 1 fps, and costs 1 credit by webhook and 2 for an answer given at once.

VideoUnitsBy webhookAt once
2 minutes at 1 fps224
2 minutes at 2 fps448
5 minutes at 1 fps5510

In capture and censor mode a unit costs 2 credits by webhook and 4 at once. A request that is refused costs nothing.

In code

A video request and its answer

Request
curl https://api.detectivision.ai/api/v1/moderation \
  -H "Api-Key: $DETECTIVISION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "video_moderation",
    "input": "https://example.com/uploads/clip-882.mp4",
    "fps": 1,
    "async": true,
    "metadata": { "videoId": 882 }
  }'
Response
{
  "id": 1061,
  "type": "video_moderation",
  "status": "queued",
  "metadata": { "videoId": 882 }
}

The status code is 202, and credits are taken when the check runs. The result comes in a moderation.completed webhook with your metadata.

Questions

Frequently asked

Can Detectivision moderate video?

Yes. Send a video’s address with the type video_moderation: it samples frames at the rate you choose and answers with the flags it raised, and when and where each finding is. GET /api/v1/status shows the state of each type.

Which videos does it take?

The docs list MP4, MOV, WebM, MKV and AVI, up to 100 MB, at an http or https address anyone can open, and at most 300 frames per check.

How many frames a second should I check?

For most content 1 or 2. A higher rate catches shorter moments but covers less of a long video in one check.

Does Detectivision remove videos itself?

A moderator can open a check in the dashboard’s Logs and see its flags, your metadata and your actions. You define those actions, such as Approve or Ban; when a moderator takes one, your system gets a moderation.action webhook and carries it out. Detectivision never acts on your platform itself.

Can it moderate live video?

Yes. A live session watches a stream link (RTSP, RTMP, HLS, HTTP or SRT) or takes frames from a camera, and each flagged moment reaches your webhook with its picture.

Related
Related articles