ai_french_kiss_video_generator

Crates.ioai_french_kiss_video_generator
lib.rsai_french_kiss_video_generator
version68.0.61
created_at2026-01-19 02:41:06.501826+00
updated_at2026-01-19 02:41:06.501826+00
descriptionHigh-quality integration for https://supermaker.ai/video/ai-french-kiss-video-generator/
homepagehttps://supermaker.ai/video/ai-french-kiss-video-generator/
repositoryhttps://github.com/qy-upup/ai-french-kiss-video-generator
max_upload_size
id2053581
size11,670
(qy-upup)

documentation

README

ai-french-kiss-video-generator

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.

Installation

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

Usage Examples

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 generator = VideoGenerator::new(1280, 720, 30);

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> { let mut generator = VideoGenerator::new(640, 480, 24);

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 generator = VideoGenerator::new(800, 600, 60);

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 generator = VideoGenerator::new(1920, 1080, 30); generator.set_background_color(Color::BLACK);

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.

Feature Summary

  • Scene-based video generation: Organize video content into manageable scenes.
  • Element composition: Combine text, shapes, and other visual elements within scenes.
  • Dynamic content: Generate video with dynamically changing text and other properties.
  • Customizable resolution and frame rate: Control the video output quality.
  • Background color customization: Set the background color for your videos.

License

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/

Commit count: 0

cargo fmt