| Crates.io | ai_french_kiss_video_generator |
| lib.rs | ai_french_kiss_video_generator |
| version | 68.0.61 |
| created_at | 2026-01-19 02:41:06.501826+00 |
| updated_at | 2026-01-19 02:41:06.501826+00 |
| description | High-quality integration for https://supermaker.ai/video/ai-french-kiss-video-generator/ |
| homepage | https://supermaker.ai/video/ai-french-kiss-video-generator/ |
| repository | https://github.com/qy-upup/ai-french-kiss-video-generator |
| max_upload_size | |
| id | 2053581 |
| size | 11,670 |
This crate provides tools for programmatically generating video content, focusing on dynamic scene creation and manipulation. It's designed to simplify the process of creating engaging and visually appealing videos from code.
To include ai-french-kiss-video-generator in your Rust project, add the following line to your Cargo.toml file under the [dependencies] section:
toml
ai-french-kiss-video-generator = "0.1.0" # Replace with the latest version
Here are a few examples demonstrating how to use the ai-french-kiss-video-generator crate:
1. Generating a Simple Video Sequence: rust use ai_french_kiss_video_generator::{VideoGenerator, Scene, TextElement, Color};
fn main() -> Result<(), Box
let mut scene1 = Scene::new(5.0); // 5-second scene
scene1.add_element(Box::new(TextElement::new("Hello, world!", 50, Color::WHITE, (100, 100))));
generator.add_scene(scene1);
let mut scene2 = Scene::new(3.0); // 3-second scene
scene2.add_element(Box::new(TextElement::new("Goodbye!", 50, Color::RED, (200, 200))));
generator.add_scene(scene2);
generator.render("output.mp4")?;
Ok(())
}
This example creates a video with two scenes. The first scene displays "Hello, world!" for 5 seconds, and the second scene displays "Goodbye!" for 3 seconds.
2. Dynamically Changing Text: rust use ai_french_kiss_video_generator::{VideoGenerator, Scene, TextElement, Color};
fn main() -> Result<(), Box
for i in 0..10 {
let text = format!("Frame {}", i);
let mut scene = Scene::new(0.5); // Half-second scene
scene.add_element(Box::new(TextElement::new(&text, 30, Color::BLUE, (50, 50))));
generator.add_scene(scene);
}
generator.render("dynamic_text.mp4")?;
Ok(())
}
This example demonstrates how to dynamically generate text content for each frame of the video, creating a sequence that displays "Frame 0", "Frame 1", and so on.
3. Combining Multiple Elements: rust use ai_french_kiss_video_generator::{VideoGenerator, Scene, TextElement, Color, RectangleElement};
fn main() -> Result<(), Box
let mut scene = Scene::new(7.0);
scene.add_element(Box::new(TextElement::new("Important Announcement", 40, Color::YELLOW, (100, 50))));
scene.add_element(Box::new(RectangleElement::new((50, 100), (200, 50), Color::GREEN)));
generator.add_scene(scene);
generator.render("combined_elements.mp4")?;
Ok(())
}
This example showcases combining different types of elements, such as text and rectangles, within a single scene. This allows for more complex visual compositions.
4. Setting Background Color: rust use ai_french_kiss_video_generator::{VideoGenerator, Scene, TextElement, Color};
fn main() -> Result<(), Box
let mut scene = Scene::new(5.0);
scene.add_element(Box::new(TextElement::new("Black Background", 60, Color::WHITE, (100, 100))));
generator.add_scene(scene);
generator.render("black_background.mp4")?;
Ok(())
}
This example sets the background color of the video to black, providing a contrasting backdrop for the text element.
MIT
This crate is part of the ai-french-kiss-video-generator ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/video/ai-french-kiss-video-generator/