Skip to navigation

Export videos

Overview

Exports video assets from an OvalBee dataset to an existing Supervisely dataset.

Set Videos Count to export only the first N videos from the source dataset.

Use it when you need to export video assets and annotations from OvalBee to Supervisely.

Run it again whenever the source grows: it exports only the videos the destination does not hold yet and replaces the ones whose annotation changed. Videos stored in a cloud bucket your Supervisely team is connected to are added by link, so nothing is downloaded or uploaded twice.

To export images instead, use Export images.

Dataset Export videos Supervisely dataset

Prerequisites

RequirementWhat you need
Supervisely credentialsAn existing supervisely secret with write access to the destination.
Destination datasetAn existing Supervisely dataset URL or ID. Projects and collections are not valid destinations.

How it works

1

Reads video assets from the source OvalBee dataset, limited to Videos Count when it is set.

2

Adds any missing classes and tags to the destination project meta when annotations are exported.

3

Compares each video with the destination: one it does not hold is new, one whose newest annotation changed since its export is updated, and the rest are skipped.

4

Deletes the Supervisely copies of updated videos, then uploads the new and updated ones with their newest annotation and the extra tag when one is configured. A video in a connected cloud bucket is added by link; any other is downloaded and uploaded.

5

Removes the exported videos and their annotations from the source dataset when Delete source assets is on.

FAQ

No. The destination must be a Supervisely dataset URL or ID.

They are added to the destination project meta before upload, so annotations keep their classes.

The newest Supervisely-format annotation of each video. Annotations in other formats are skipped, and videos without one are still uploaded.

Every uploaded video carries its OvalBee asset ID in the Supervisely video metadata as ovalbee_asset_id, so Import videos can reuse the original asset instead of creating a duplicate.

Only videos this run uploaded, together with the annotations linked to them. Skipped videos stay. The source dataset statistics are refreshed afterwards.

Every uploaded video carries ovalbee_asset_id in its Supervisely metadata. Once its annotation is uploaded, the video also gets ovalbee_annotation_id in its custom data. A rerun reads both from the destination dataset. If the newest OvalBee annotation of a video has a different id, the node uploads the video again and gets a new Supervisely ID. The old copy is renamed to replaced-<id>-<name> and stays until the new one is uploaded, then it is deleted. If a run fails before the annotation is uploaded, the next run uploads the video again.

Extra tag value is required whenever Extra tag name is set. Fill both fields or leave both empty.

Inputs

From dataset
datasetRequired

Source dataset the exported videos are taken from. Key: DATASET.

To Supervisely dataset
stringRequired

Supervisely dataset the videos are uploaded to, as a URL or a numeric ID. It must already exist, and a project or a collection is not accepted here. Key: SLY_URL.

Supervisely credentials
secretRequired

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

Videos count
integer

How many video assets to upload. Leave empty to export every video in the dataset. Minimum: 0. Key: VIDEOS_COUNT.

Export annotations
booleanDefaults to true

Upload the annotations of each video too. Only annotations already in the Supervisely format can be uploaded, and they are merged into one per video. Key: WITH_ANNOTATIONS.

Skip already exported videos
booleanDefaults to trueRequired

Videos the Supervisely dataset already holds from an earlier export are not uploaded again. A video whose annotation changed since is replaced there with the new version. Key: SKIP_EXPORTED.

Link videos from connected storage
booleanDefaults to trueRequired

A video stored in a cloud bucket your Supervisely team is connected to is added by link instead of being downloaded and uploaded. Other videos are uploaded as usual. Key: LINK_MEDIA.

Delete source assets
booleanDefaults to false

Remove the assets this run exported from the source OvalBee dataset after upload. Skipped videos stay. Key: DELETE_SOURCE.

Extra tag name
string

Extra tag name added to every uploaded video, on top of the tags its asset already carries. Key: EXPORT_TAG_NAME.

Extra tag value
string

Text stored under that tag name. Required once Extra tag name is set. Visible when EXPORT_TAG_NAME is not empty. Key: EXPORT_TAG_VALUE.

Outputs

Supervisely Dataset ID
number

ID of the target Supervisely dataset. Key: SLY_DATASET_ID.

Supervisely Dataset URL
string

URL of the target Supervisely dataset. Key: SLY_DATASET_URL.

Exported
string

Short badge with the number of new videos this run exported and the number it replaced because their annotation changed. Shown on the node as a badge. Key: EXPORTED.

JSON config

Machine-readable node interface for automation and advanced usage.

{
"name": "Export videos",
"description": "Exports video assets from an OvalBee dataset to an existing Supervisely dataset, with all annotations of each asset merged into one. A rerun exports only new videos and videos whose annotation changed, and videos in a connected cloud bucket are added by link.",
"category": "Supervisely",
"namespace": "supervisely",
"templateKey": "supervisely/export_videos",
"version": "v1",
"inputs": [
{
"key": "DATASET",
"label": "From dataset",
"type": "dataset",
"description": "Source dataset the exported videos are taken from.",
"required": true,
"default": null,
"visibleWhen": null,
"options": {
"creatable": false
}
},
{
"key": "SLY_URL",
"label": "To Supervisely dataset",
"type": "string",
"description": "Supervisely dataset the videos are uploaded to, as a URL or a numeric ID. It must already exist, and a project or a collection is not accepted here.",
"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": "VIDEOS_COUNT",
"label": "Videos count",
"type": "number",
"description": "How many video assets to upload. Leave empty to export every video in the dataset.",
"required": false,
"default": null,
"visibleWhen": null,
"options": {
"type": "integer",
"min": 0
}
},
{
"key": "WITH_ANNOTATIONS",
"label": "Export annotations",
"type": "boolean",
"description": "Upload the annotations of each video too. Only annotations already in the Supervisely format can be uploaded, and they are merged into one per video.",
"required": false,
"default": true,
"visibleWhen": null
},
{
"key": "SKIP_EXPORTED",
"label": "Skip already exported videos",
"type": "boolean",
"description": "Videos the Supervisely dataset already holds from an earlier export are not uploaded again. A video whose annotation changed since is replaced there with the new version.",
"required": true,
"default": true,
"visibleWhen": null
},
{
"key": "LINK_MEDIA",
"label": "Link videos from connected storage",
"type": "boolean",
"description": "A video stored in a cloud bucket your Supervisely team is connected to is added by link instead of being downloaded and uploaded. Other videos are uploaded as usual.",
"required": true,
"default": true,
"visibleWhen": null
},
{
"key": "DELETE_SOURCE",
"label": "Delete source assets",
"type": "boolean",
"description": "Remove the assets this run exported from the source OvalBee dataset after upload. Skipped videos stay.",
"required": false,
"default": false,
"visibleWhen": null
},
{
"key": "EXPORT_TAG_NAME",
"label": "Extra tag name",
"type": "string",
"description": "Extra tag name added to every uploaded video, on top of the tags its asset already carries.",
"required": false,
"default": null,
"visibleWhen": null
},
{
"key": "EXPORT_TAG_VALUE",
"label": "Extra tag value",
"type": "string",
"description": "Text stored under that tag name. Required once Extra tag name is set.",
"required": false,
"default": null,
"visibleWhen": {
"key": "EXPORT_TAG_NAME",
"operator": "notEquals",
"value": null
}
}
],
"outputs": [
{
"key": "SLY_DATASET_ID",
"label": "Supervisely Dataset ID",
"type": "number",
"description": "ID of the target Supervisely dataset.",
"artifact": false,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "SLY_DATASET_URL",
"label": "Supervisely Dataset URL",
"type": "string",
"description": "URL of the target Supervisely dataset.",
"artifact": false,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "EXPORTED",
"label": "Exported",
"type": "string",
"description": "Short badge with the number of new videos this run exported and the number it replaced because their annotation changed.",
"artifact": false,
"badge": true,
"badgeOpens": null,
"hidden": false
}
]
}