Import a video
The VOD lesson in Academy walks through importing from a CDN in Console and connecting your CMS or MAM through the API. Browsers set to English start this lesson with English captions. Connect video from your CDN Upload an MP4 using thefile multipart field. Use H.264 8-bit video and AAC or MP3 if it has audio. For remote media, send title and url to POST /v1/vod/assets. Supported remote inputs are an MP4 or a finite, unencrypted HLS playlist on permitted hosts: a master or a single media playlist, MPEG-TS or fMP4. See Import by HLS URL. Set immutable: true only when the same URL will keep serving the same bytes. A strong MP4 ETag also supports version verification.
ad_free: true declares that the media has no embedded ads. Set it only after checking the source if your delivery workflow requires it.
Import by HLS URL
- Master playlist. IL analyses the lowest-bandwidth H.264 quality and, when the audio is separate (
EXT-X-MEDIA TYPE=AUDIO), its default audio. The saved source is the master, so a player that plays the source gets the full ladder. IL reads the other playlists only to detect ad markers, so a quality IL does not analyse cannot block the import. - Single media playlist. MPEG-TS segments, or fMP4 segments with
EXT-X-MAP, one file per segment. - Refused, in the playlists IL analyses, with the message saying which playlist it was:
- a master with no H.264 quality:
The master playlist has no H.264 quality: the analysis reads only H.264; - encrypted content:
Encrypted HLS (EXT-X-KEY) is not supported: use a clear HLS URL; - byte ranges:
HLS with byte ranges (EXT-X-BYTERANGE) is not supported: use one file per segment; - a separate audio much longer or shorter than the video:
… use a master whose audio and video have the same length.
- a master with no H.264 quality:
- An HLS import has a 10-minute limit, and a master’s playlists 8 MB in total.
- When the video counts as changed. For a media playlist, any change to its text. For a master, only what the analysis uses: the entries of the chosen variant and audio in the master, and those two playlists with query strings removed from their URIs. Rotating tokens, reordering attributes, or changing or removing a quality IL did not analyse is not a change; adding a quality is when it becomes the one IL would analyse (a lower-bandwidth H.264 variant). Because of this, in a master a change that exists only in a query string of those playlists is not seen as a new version: put the content’s version in the path. Import a changed video again before analysing it.
Confirm that the result matches the video
Submitasset_id and optional topics to POST /v1/vod/scans. Read the result after done and check it against the asset version. Import the media again before analyzing an asset marked changed. An asset scan returns evidence and keeps output_hls_url null.
Use a backend to retrieve private media and thumbnails. If a linked asset returns HTTP 307, follow its Location with a fresh request that omits X-API-Key. First analysis · Campaign matching
Analyze commercial scenes in a temporary asset
For an integration using the Creators League pilot contract, check your environment’s/v1/openapi.json for the upload field temporary and both /contexts operations before submitting a video. Use the project’s API key from your backend. Upload an MP4
- Add
-F 'temporary=true'to the MP4 upload. The response includesasset_idandmetadata.expires_atin Unix seconds. InteractiveLayers schedules cleanup one hour after creation, including for an abandoned analysis. - Submit the asset to
POST /v1/vod/scansand poll the scan untilstatusisdone. SendPOST /v1/vod/assets/{asset_id}/contextswithvod:write. A processing-enabled project with scene classification configured receives HTTP 202. An unfinished scan returns HTTP 409. Start scene classification - Poll
GET /v1/vod/assets/{asset_id}/contextswithvod:readorvod:write. This reads cached evidence. Use the results whenavailableis true,pendingis zero anderroris null. Read scene context - Save the evidence you need, then send
DELETE /v1/vod/assets/{asset_id}. A successful deletion returns HTTP 204. Delete the asset
windows[] entry contains start and end in seconds from the beginning of the uploaded asset. An ad window carries IAB or topic labels. Exclude blocked, quiet and unknown windows from commercial placement and respect the intervals in margins. A sponsor still needs an eligible campaign and available budget.