bigfoot_video_generator

Crates.iobigfoot_video_generator
lib.rsbigfoot_video_generator
version67.0.63
created_at2026-01-06 02:37:01.419723+00
updated_at2026-01-06 02:37:01.419723+00
descriptionHigh-quality integration for https://supermaker.ai/video/bigfoot-video-generator/
homepagehttps://supermaker.ai/video/bigfoot-video-generator/
repositoryhttps://github.com/qy-upup/bigfoot-video-generator
max_upload_size
id2025028
size13,741
(qy-upup)

documentation

README

bigfoot-video-generator

A Rust crate for programmatically generating video content, enabling dynamic video creation from various data sources. This library simplifies the process of assembling video clips, adding audio, and applying basic effects.

Installation

Add the following to your Cargo.toml file under the [dependencies] section: toml bigfoot-video-generator = "0.1.0" # Replace with the latest version

Usage Examples

Here are a few examples demonstrating how to use bigfoot-video-generator:

1. Creating a simple video from image sequence: rust use bigfoot_video_generator::{VideoGenerator, VideoConfig};

fn main() -> Result<(), Box> { let config = VideoConfig { width: 1280, height: 720, frame_rate: 30, output_path: "output.mp4".to_string(), };

let mut generator = VideoGenerator::new(config)?;

// Add frames from a sequence of images
for i in 0..100 {
    let image_path = format!("frame_{:03}.png", i); // Assuming images named frame_000.png, frame_001.png, etc.
    generator.add_image_frame(&image_path)?;
}

generator.finalize()?;

println!("Video generated successfully!");
Ok(())

}

2. Adding audio to a video: rust use bigfoot_video_generator::{VideoGenerator, VideoConfig};

fn main() -> Result<(), Box> { let config = VideoConfig { width: 640, height: 480, frame_rate: 24, output_path: "output_with_audio.mp4".to_string(), };

let mut generator = VideoGenerator::new(config)?;

// Add a placeholder image frame (replace with your actual frames)
generator.add_image_frame("placeholder.png")?;
generator.add_image_frame("placeholder.png")?;
generator.add_image_frame("placeholder.png")?;


// Add an audio track
generator.add_audio("background_music.mp3")?;

generator.finalize()?;

println!("Video with audio generated successfully!");
Ok(())

}

3. Creating a slideshow with different image durations: rust use bigfoot_video_generator::{VideoGenerator, VideoConfig}; use std::time::Duration;

fn main() -> Result<(), Box> { let config = VideoConfig { width: 800, height: 600, frame_rate: 25, output_path: "slideshow.mp4".to_string(), };

let mut generator = VideoGenerator::new(config)?;

// Add images with different durations
generator.add_image_frame_with_duration("slide1.png", Duration::from_secs(5))?;
generator.add_image_frame_with_duration("slide2.png", Duration::from_secs(3))?;
generator.add_image_frame_with_duration("slide3.png", Duration::from_secs(7))?;

generator.finalize()?;

println!("Slideshow video generated successfully!");
Ok(())

}

4. Combining video clips: rust use bigfoot_video_generator::{VideoGenerator, VideoConfig};

fn main() -> Result<(), Box> { let config = VideoConfig { width: 1920, height: 1080, frame_rate: 30, output_path: "combined_video.mp4".to_string(), };

let mut generator = VideoGenerator::new(config)?;

// Add existing video clips
generator.add_video_clip("clip1.mp4")?;
generator.add_video_clip("clip2.mp4")?;

generator.finalize()?;

println!("Combined video generated successfully!");
Ok(())

}

Feature Summary

  • Image Sequence to Video: Create videos from a series of images.
  • Audio Integration: Add background music or narration to your videos.
  • Video Clip Combination: Stitch multiple video clips together seamlessly.
  • Configurable Video Settings: Customize video resolution, frame rate, and output path.
  • Flexible Frame Durations: Control the display time of individual images in a slideshow format.
  • Easy-to-use API: Designed for intuitive video generation workflows.

License

MIT

This crate is part of the bigfoot-video-generator ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/video/bigfoot-video-generator/

Commit count: 0

cargo fmt