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.
Prerequisites
How it works
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.
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.
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.
For each refreshed video it imports the annotation again and puts it in place of the old one in the destination.
FAQ
What can this node import?
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.
What happens when annotation import is enabled?
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.
Which tags does the node restore or override?
New uploads restore tags saved in Supervisely ovalbee_tags metadata. If the same tag name appears there, the import tag wins.
When can a later run reuse the same asset?
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.
What happens when several source videos point to the same OvalBee asset?
Only the first source video is reused. The rest are uploaded as new assets.
Why did the run finish with +0 new, 0 updated?
Why did the run finish with +0 new, 0 updated?
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.
Which videos are linked instead of copied?
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.
How does the node know an annotation changed?
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.
Why was the Supervisely source rejected?
The URL or project ID is invalid, the credentials cannot access it, or the source belongs to a project type other than videos.
What does the badge count?
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
Supervisely project, dataset or collection the videos come from. Paste its URL, or a project ID on its own. Key: SLY_URL.
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.
Your Supervisely server address and API token, stored as a secret. Allowed credential types: supervisely. Key: SLY_SECRET.
Copy the annotations of each video too, not only the video files. Key: WITH_ANNOTATIONS.
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.
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.
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.
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.
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.
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
ID of the OvalBee dataset that received imported video assets. Key: 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.
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.