Bring media in
10 tools: import_media, import_media_bytes, convert_media, add_to_timeline…
import_media
Bring a NEW file the user gave you INTO the project by URL — the browser fetches it, ingests it and (by default) adds it to the timeline. Use this first when the bin is empty and the user handed you a clip. The URL must be directly fetchable (public / presigned / CORS-enabled). Returns the new mediaId; then transcribe / edit / export as usual.
| Input | Type | |
|---|---|---|
url | string | Required |
addToTimeline | boolean | |
name | string |
import_media_bytes
Import media from base64 into the open Studio board (chunked: chunkId + chunkIndex + chunkTotal). Chat files are NOT on the board until imported. Requires live Studio tab at https://eziclip.com/studio.
| Input | Type | |
|---|---|---|
base64 | string | |
mime | string | |
name | string | |
addToTimeline | boolean | |
chunkId | string | |
chunkIndex | number | |
chunkTotal | number |
convert_media
Convert a camera-codec library item (ProRes, DNxHD, CineForm, 10-bit 4:2:2 HEVC…) this browser can't decode into an editable H.264+AAC copy. Import already triggers this automatically for anything undecodable under 10 minutes — use this only to retry a failed conversion, or for media that arrived some other way and is still marked undecodable in list_media/get_project_digest. Takes real minutes on a real camera file; the mediaId is REPLACED on success (the returned media is the new id — re-fetch get_project_digest before referencing this clip again).
| Input | Type | |
|---|---|---|
mediaId | string | Required |
add_to_timeline
Add a bin media item to the timeline (video/image → main track, audio → an audio track). Pass asAudio:true to put a video's SOUND only on an audio track (picture discarded — same as dropping the video onto an audio lane). Pass a mediaId from list_media.
| Input | Type | |
|---|---|---|
mediaId | string | Required |
asAudio | boolean |
remove_media_from_project
Remove a media file from the ACTIVE BOARD (every sheet's library). By default also deletes timeline clips that use it on this board. Other boards are untouched. Pass removeClips:false to only strip the bin entry when nothing is placed.
| Input | Type | |
|---|---|---|
mediaId | string | Required |
removeClips | boolean |
search_stock_video
Search free STOCK FOOTAGE. Returns hits + JPEG samples — SEE before import_media. Then match_grade to the plate. Supports the story, never replaces it.
| Input | Type | |
|---|---|---|
query | string | Required |
includeSamples | boolean |
search_stickers
Search the built-in visual-asset library (Klipy). Returns hits + JPEG samples for the first hits — SEE before add_sticker, never blind-add. kind: stickers|gifs|clips. Taste guides: meme-grammar, stickers-and-text-overlays.
| Input | Type | |
|---|---|---|
query | string | Required |
kind | one of stickers | gifs | clips | |
includeSamples | boolean |
add_sticker
Add a hit from search_stickers onto the video. image = the hit's image URL; for a CLIP also pass its video — it lands as a video overlay with its own sound (mind the mix: duck or mute it under speech). Optional: tlStart (timeline second, defaults to playhead), durationSec (default 4), x/y (fractions of canvas from centre, −0.5..0.5, y negative = up; keep clear of captions and platform UI), scale (default 0.7). One asset per beat, synced to the audio accent — a meme lands when it PUNCTUATES a moment; scattered decoration reads amateur. Restraint reads professional.
| Input | Type | |
|---|---|---|
image | string | Required |
video | string | |
tags | string | |
tlStart | number | |
durationSec | number | |
x | number | |
y | number | |
scale | number |
search_audio
Search the built-in stock sound library (Freesound, CC0-only — safe for any use). ONE pool; kind narrows it: 'music' (beds/loops), 'sfx' (whoosh, riser, click, impact), 'ambient' (soundscapes/room tone), 'voice', 'instrument' (single-instrument samples), 'all' (default). Optional minDuration prefers longer beds but is NOT required — if a bed is longer than the cut, just trim_clip + fadeInSec/fadeOutSec. Returns hits with name/tags/duration + a url to pass to add_audio_asset.
| Input | Type | |
|---|---|---|
kind | one of music | sfx | ambient | voice | instrument | all | Required |
query | string | Required |
minDuration | number |
add_audio_asset
Import a track/effect from search_audio (pass its url) and lay it on the Music or SFX track. Music defaults to tlStart 0 and is trimmed to the picture end so the timeline length does not blow out. Optional tlStart overrides. loop:true tiles a SHORT loop across a longer cut. Returns mediaId, clipId (+ clipIds), clipsAdded, report — use clipId for set_audio_props / trim. Then duck_music + get_mix_audio.
| Input | Type | |
|---|---|---|
url | string | Required |
kind | one of music | sfx | |
name | string | |
tlStart | number | |
loop | boolean |