Skip to navigation

Import videos

Overview

Imports videos from a Supervisely video project, dataset, or collection into an existing OvalBee dataset.

Before running the node, add a Supervisely secret with the server URL and an API token for an account that can access the source.

Run it again whenever new footage lands in Supervisely: it imports only the videos the destination does not hold yet and refreshes the annotations that changed since the last import. Videos stored in a cloud bucket your workspace is connected to are linked where they are instead of being copied, so a large library does not fill OvalBee storage twice.

After each run, the node creates a LAST_RUN dataset containing every video handled during that run, and shows a badge with how many videos it imported and how many annotations it refreshed.

To import images instead, use Import images.

Import videos Dataset

Prerequisites

RequirementWhat you need
Supervisely sourceA project, dataset, or collection URL from a video project. A numeric project ID also works.
Supervisely credentialsA server URL and API token for an account with access to the source.
Destination datasetExisting Dataset for the imported videos.

How it works

1

Select a Supervisely project, dataset, or collection. The node checks that it belongs to a video project and takes its own hidden LAST_RUN dataset, versioned on every rerun.

2

It compares the source with the destination. A video the destination does not hold is new. A video it already holds is refreshed when annotations are imported and its Supervisely updated_at moved since the import. Everything else is skipped. A run with nothing new or refreshed stops here and leaves the destination without a new version.

3

It creates a new version of the destination, downloads each new video to temporary storage and creates an OvalBee asset for it. A video that sits in a connected cloud bucket is linked; any other video is uploaded.

4

For each refreshed video it imports the annotation again and puts it in place of the old one in the destination.

5

Every handled video gets a source tag. Leave Asset tag name empty to use sly_source, which records the source project and its dataset or collection when available. Enter a name and value to use your own tag.

6

Adds the handled videos to the destination and LAST_RUN, then refreshes the destination statistics. It does not delete anything from Supervisely.

FAQ

It imports videos from Supervisely video projects only. A project source includes videos from all its datasets. A dataset or collection source imports only that selection.

The node uploads the Supervisely annotation as a linked annotation asset, adds it to the destination, and stores a rendered visualization video. It does not change the source annotation in Supervisely.

New uploads restore tags saved in Supervisely ovalbee_tags metadata. If the same tag name appears there, the import tag wins.

The import does not write ovalbee_asset_id back to Supervisely. A later run can reuse only source videos that already have a valid OvalBee asset ID, usually because they were exported from OvalBee.

Only the first source video is reused. The rest are uploaded as new assets.

The destination already holds every source video and no annotation changed in Supervisely since the last import, or the source contains no videos. The destination stays as it was, and the run still creates an empty LAST_RUN dataset.

A video whose Supervisely file lives in a cloud bucket that your OvalBee workspace can read. The bucket is matched by its real name, so it can have a different name in OvalBee than in Supervisely. The node checks every video on its own, so one source can mix linked and uploaded videos. A linked video is downloaded only when its annotation has figures to render.

It stores the Supervisely updated_at of every imported video on the asset. Supervisely moves it whenever the video’s annotation or tags change, so a different value on the next run means the annotation is imported again.

The URL or project ID is invalid, the credentials cannot access it, or the source belongs to a project type other than videos.

New counts the videos imported in this run, reused assets included. Updated counts the videos whose annotations were refreshed. Selecting the badge opens LAST_RUN.

Inputs

From Supervisely
stringRequired

Supervisely project, dataset or collection the videos come from. Paste its URL, or a project ID on its own. Key: SLY_URL.

To dataset
datasetRequired

Destination dataset the imported videos are added to. A run that adds or updates videos creates a new version of it, a run with nothing new leaves it as it is. Key: DATASET.

Supervisely credentials
secretRequired

Your Supervisely server address and API token, stored as a secret. Allowed credential types: supervisely. Key: SLY_SECRET.

Import annotations
booleanDefaults to false

Copy the annotations of each video too, not only the video files. Key: WITH_ANNOTATIONS.

Skip already imported videos
booleanDefaults to trueRequired

Videos the destination dataset already holds are not imported again. When annotations are imported, a video whose annotation changed in Supervisely since its import gets the new annotation in place of the old one. Key: SKIP_IMPORTED.

Render visualization
booleanDefaults to trueRequired

Draw the figures of each annotation into a video you can watch on top of the source. Turn it off to import faster - a video is then never downloaded for its figures, and its annotation is stored without the drawn video. Visible when WITH_ANNOTATIONS is True. Key: RENDER_VISUALIZATION.

Link videos from connected storage
booleanDefaults to trueRequired

A video Supervisely keeps in a cloud bucket that this workspace is connected to is linked where it is instead of being copied. Other videos are uploaded as usual. A linked video is downloaded only to render the figures of its annotation. Key: LINK_MEDIA.

Reuse existing assets
booleanDefaults to trueRequired

Videos that came from OvalBee in an earlier export are attached back to their original asset instead of being uploaded a second time. Everything else is imported as a new asset. Key: REUSE_EXISTING.

Asset tag name
string

Tag name attached to every imported asset. Leave empty to tag each asset with the Supervisely project, dataset or collection it came from. Key: ASSET_TAG_NAME.

Asset tag value
string

Text stored under that tag name. Required once Asset tag name is set. Visible when ASSET_TAG_NAME is not empty. Key: ASSET_TAG_VALUE.

Outputs

Dataset
dataset

ID of the OvalBee dataset that received imported video assets. Key: DATASET.

Last Run
dataset

Hidden dataset containing video assets handled during this import run, including reused assets. A rerun writes a new version of it. Shown as an artifact. Key: LAST_RUN.

Last Videos Count
string

Short badge with the number of videos the last run imported and the number whose annotations it refreshed. Shown on the node as a badge. Selecting the badge opens LAST_RUN. Key: LAST_VIDEOS_COUNT.

JSON config

Machine-readable node interface for automation and advanced usage.

{
"name": "Import videos",
"description": "Imports videos from Supervisely into OvalBee and adds them to the destination dataset.",
"category": "Supervisely",
"namespace": "supervisely",
"templateKey": "supervisely/import_videos",
"version": "v1",
"inputs": [
{
"key": "SLY_URL",
"label": "From Supervisely",
"type": "string",
"description": "Supervisely project, dataset or collection the videos come from. Paste its URL, or a project ID on its own.",
"required": true,
"default": null,
"visibleWhen": null
},
{
"key": "DATASET",
"label": "To dataset",
"type": "dataset",
"description": "Destination dataset the imported videos are added to. A run that adds or updates videos creates a new version of it; a run with nothing new leaves it as it is.",
"required": true,
"default": null,
"visibleWhen": null
},
{
"key": "SLY_SECRET",
"label": "Supervisely credentials",
"type": "secret",
"description": "Your Supervisely server address and API token, stored as a secret.",
"required": true,
"default": null,
"visibleWhen": null,
"options": {
"types": [
"supervisely"
]
}
},
{
"key": "WITH_ANNOTATIONS",
"label": "Import annotations",
"type": "boolean",
"description": "Copy the annotations of each video too, not only the video files.",
"required": false,
"default": false,
"visibleWhen": null
},
{
"key": "SKIP_IMPORTED",
"label": "Skip already imported videos",
"type": "boolean",
"description": "Videos the destination dataset already holds are not imported again. When annotations are imported, a video whose annotation changed in Supervisely since its import gets the new annotation in place of the old one.",
"required": true,
"default": true,
"visibleWhen": null
},
{
"key": "RENDER_VISUALIZATION",
"label": "Render visualization",
"type": "boolean",
"description": "Draw the figures of each annotation into a video you can watch on top of the source. Turn it off to import faster - a video is then never downloaded for its figures, and its annotation is stored without the drawn video.",
"required": true,
"default": true,
"visibleWhen": {
"key": "WITH_ANNOTATIONS",
"operator": "equals",
"value": true
}
},
{
"key": "LINK_MEDIA",
"label": "Link videos from connected storage",
"type": "boolean",
"description": "A video Supervisely keeps in a cloud bucket that this workspace is connected to is linked where it is instead of being copied. Other videos are uploaded as usual. A linked video is downloaded only to render the figures of its annotation.",
"required": true,
"default": true,
"visibleWhen": null
},
{
"key": "REUSE_EXISTING",
"label": "Reuse existing assets",
"type": "boolean",
"description": "Videos that came from OvalBee in an earlier export are attached back to their original asset instead of being uploaded a second time. Everything else is imported as a new asset.",
"required": true,
"default": true,
"visibleWhen": null
},
{
"key": "ASSET_TAG_NAME",
"label": "Asset tag name",
"type": "string",
"description": "Tag name attached to every imported asset. Leave empty to tag each asset with the Supervisely project, dataset or collection it came from.",
"required": false,
"default": null,
"visibleWhen": null
},
{
"key": "ASSET_TAG_VALUE",
"label": "Asset tag value",
"type": "string",
"description": "Text stored under that tag name. Required once Asset tag name is set.",
"required": false,
"default": null,
"visibleWhen": {
"key": "ASSET_TAG_NAME",
"operator": "notEquals",
"value": null
}
}
],
"outputs": [
{
"key": "DATASET",
"label": "Dataset",
"type": "dataset",
"description": "ID of the OvalBee dataset that received imported video assets.",
"artifact": false,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "LAST_RUN",
"label": "Last Run",
"type": "dataset",
"description": "Hidden dataset containing video assets handled during this import run, including reused assets. A rerun writes a new version of it.",
"artifact": true,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "LAST_VIDEOS_COUNT",
"label": "Last Videos Count",
"type": "string",
"description": "Short badge with the number of videos the last run imported and the number whose annotations it refreshed.",
"artifact": false,
"badge": true,
"badgeOpens": "LAST_RUN",
"hidden": false
}
]
}