prompt_based_video¶
Overview¶
PromptBasedVideo is a simple way to generate a video based out of a text prompt |
Classes¶
- class prompt_based_video.PromptBasedVideo(prompt: vikit.prompt.prompt.Prompt = None)¶
Bases:
vikit.video.composite_video.CompositeVideoPromptBasedVideo is a simple way to generate a video based out of a text prompt
It creates a master composite video which embeds as many composite video as there are subtitles in the given prompt.
We do some form of inheritance by composition to prevent circular dependencies and benefit from more modularity
Overview
Methods¶ compose(build_settings)Compose the inner composite video
Title of the prompt based video, generated from an LLM. If not available, we generate it from the prompt
prepare_build(build_settings)Generate the actual inner video
Members
- async compose(build_settings: vikit.video.video.VideoBuildSettings)¶
Compose the inner composite video
- Params:
build_settings: allow some customization
- Returns:
The inner composite video
- get_title()¶
Title of the prompt based video, generated from an LLM. If not available, we generate it from the prompt
- async prepare_build(build_settings=VideoBuildSettings())¶
Generate the actual inner video
- Params:
build_settings: allow some customization
- Returns:
The current instance