Something went wrong. Try again.
AI-organized UGC video generator in a chat box. Cloudflare Workers, Vue, Claude API, ffmpeg.wasm reelity.arjunkrishna.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637import type { FC } from "react";import { Composition } from "remotion";import { FPS, HEIGHT, UgcVideo, WIDTH, durationFor, type UgcProps } from "./video";
const defaultProps: UgcProps = { spec: { productName: "", siteUrl: "", concept: "", caption: [], pexelsQuery: "", giphyQuery: "", audioVibe: "", accentColor: "#a855f7", }, assets: { background: { kind: "gradient", source: "gradient" }, gif: null, audio: null, },};
export const RemotionRoot: FC = () => ( <Composition id="UgcVideo" component={UgcVideo} durationInFrames={durationFor(4)} fps={FPS} width={WIDTH} height={HEIGHT} defaultProps={defaultProps} calculateMetadata={({ props }) => ({ durationInFrames: durationFor(props.spec.caption?.length ?? 1), })} />);