ReferenceAsk
Remy Reference/Agent SDK/Media/addThumbnailToVideo

addThumbnailToVideo

Set a video's thumbnail: embedded as its cover art, and optionally as its opening frames
mindstudio.addThumbnailToVideo({ videoUrl }) → Result

Set a video's thumbnail: embedded as its cover art, and optionally as its opening frames

Parameters
videoUrl
string
RequiredURL of the video
imageUrl
string
URL of the thumbnail image; give this or at
at
number
Seconds into the video to take the thumbnail from; give this or imageUrl
asFirstFrame
boolean
Also show the thumbnail as the video's opening frames (re-encodes the video)
intermediateAsset
boolean
When true, the assets are created but hidden from the user's gallery (tagged as intermediate)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.addThumbnailToVideo({
  videoUrl: /* ... */
});