vargai 0.4.0-alpha16 → 0.4.0-alpha17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/ai-sdk/cache.ts
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { elevenlabs } from "../../ai-sdk/providers/elevenlabs";
|
|
2
|
+
import { fal } from "../../ai-sdk/providers/fal";
|
|
3
|
+
import { Clip, Music, Render, render, Title, Video } from "..";
|
|
4
|
+
|
|
5
|
+
export default (
|
|
6
|
+
<Render>
|
|
7
|
+
<Clip duration={4}>
|
|
8
|
+
<Video prompt="A sophisticated tabby cat wearing a tailored tiny business suit and small round glasses, standing upright at a McDonald's counter. One paw raised pointing assertively at the illuminated menu board above. The cat has an extremely serious, concentrated expression with furrowed brows. Cinematic lighting with warm McDonald's interior ambiance, shallow depth of field focusing on the cat's determined face, photorealistic fur texture with fine detail. Professional business atmosphere meets fast food chaos." />
|
|
9
|
+
</Clip>
|
|
10
|
+
|
|
11
|
+
<Clip duration={4}>
|
|
12
|
+
<Video prompt="Absolute mayhem - four to five cats in a chaotic pile fight. Orange tabby, black and white tuxedo cat, calico with patches, and fluffy gray cat all scrambling, paws flailing, tumbling over each other in exaggerated cartoon-style motion. They're all desperately reaching for a single perfect golden McDonald's french fry sitting on a red plastic tray in the center. Wide-eyed expressions, mouths open mid-meow, dynamic motion blur, comedic timing. Fast food restaurant background slightly blurred. Playful, over-the-top energy." />
|
|
13
|
+
</Clip>
|
|
14
|
+
|
|
15
|
+
<Clip duration={3}>
|
|
16
|
+
<Video prompt="Proud orange tabby cat wearing an official McDonald's crew member visor and name tag, standing upright behind a restaurant register counter. Front paws crossed confidently across chest, chin lifted with a smug, self-satisfied expression. Perfect posture, professional demeanor. Bright McDonald's interior lighting, red and yellow color scheme in background. The cat radiates 'employee of the month' energy. Crisp, clean, professional fast food aesthetic." />
|
|
17
|
+
<Title position="bottom">McMeow's: NOW HIRING</Title>
|
|
18
|
+
</Clip>
|
|
19
|
+
|
|
20
|
+
<Music
|
|
21
|
+
model={elevenlabs.musicModel()}
|
|
22
|
+
prompt="playful upbeat comedy music with quirky pizzicato strings and light percussion, funny corporate training video vibes"
|
|
23
|
+
duration={11}
|
|
24
|
+
/>
|
|
25
|
+
</Render>
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
async function main() {
|
|
29
|
+
const component = await import("./mcmeows.tsx").then((m) => m.default);
|
|
30
|
+
await render(component, {
|
|
31
|
+
output: "output/mcmeows.mp4",
|
|
32
|
+
cache: ".cache/ai",
|
|
33
|
+
verbose: true,
|
|
34
|
+
defaults: {
|
|
35
|
+
video: fal.videoModel("wan-2.5"),
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
main().catch(console.error);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { elevenlabs } from "../../ai-sdk/providers/elevenlabs";
|
|
2
|
+
import { Clip, Image, Music, Render, render } from "..";
|
|
3
|
+
|
|
4
|
+
export default (
|
|
5
|
+
<Render width={1920} height={1080}>
|
|
6
|
+
<Clip duration={5}>
|
|
7
|
+
<Image src="media/cyberpunk-street.png" />
|
|
8
|
+
</Clip>
|
|
9
|
+
<Music prompt="calm ambient electronic music" duration={5} />
|
|
10
|
+
</Render>
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
async function main() {
|
|
14
|
+
const component = await import("./music-defaults.tsx").then((m) => m.default);
|
|
15
|
+
await render(component, {
|
|
16
|
+
output: "output/music-defaults.mp4",
|
|
17
|
+
defaults: {
|
|
18
|
+
music: elevenlabs.musicModel(),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
console.log("done! check output/music-defaults.mp4");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
main().catch(console.error);
|
|
@@ -269,11 +269,11 @@ export async function renderRoot(
|
|
|
269
269
|
let path: string;
|
|
270
270
|
if (musicProps.src) {
|
|
271
271
|
path = resolvePath(musicProps.src);
|
|
272
|
-
} else if (musicProps.prompt
|
|
272
|
+
} else if (musicProps.prompt) {
|
|
273
273
|
const result = await renderMusic(musicElement, ctx);
|
|
274
274
|
path = result.path;
|
|
275
275
|
} else {
|
|
276
|
-
throw new Error("Music requires either src or prompt
|
|
276
|
+
throw new Error("Music requires either src or prompt");
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
audioTracks.push({
|