| Crates.io | grok_video_generator |
| lib.rs | grok_video_generator |
| version | 68.0.39 |
| created_at | 2026-01-14 07:55:56.26368+00 |
| updated_at | 2026-01-14 07:55:56.26368+00 |
| description | High-quality integration for https://supermaker.ai/blog/grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025/ |
| homepage | https://supermaker.ai/blog/grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025/ |
| repository | https://github.com/qy-upup/grok-video-generator |
| max_upload_size | |
| id | 2042390 |
| size | 12,607 |
A Rust crate for programmatically generating video content, providing a flexible and efficient way to automate video creation workflows. This crate offers tools for assembling video clips, adding audio tracks, and applying basic video effects.
To use grok-video-generator in your Rust project, add the following to your Cargo.toml file under the [dependencies] section:
toml
grok-video-generator = "0.1.0" # Replace with the latest version
Here are a few examples illustrating how to use the grok-video-generator crate:
1. Basic Video Assembly:
This example demonstrates how to combine multiple video clips into a single video. rust use grok_video_generator::{Video, Clip};
fn main() -> Result<(), Box
let mut video = Video::new();
video.add_clip(clip1);
video.add_clip(clip2);
video.add_clip(clip3);
video.generate("output.mp4".to_string())?;
Ok(())
}
2. Adding an Audio Track:
This example shows how to add an audio track to an existing video. rust use grok_video_generator::{Video, Clip};
fn main() -> Result<(), Box
video.generate("output_with_audio.mp4".to_string())?;
Ok(())
}
3. Creating a Video from Image Sequence:
This example demonstrates how to create a video from a sequence of images. rust use grok_video_generator::{Video, ImageSequence};
fn main() -> Result<(), Box
let mut video = Video::new();
video.add_image_sequence(image_sequence);
video.generate("output_from_images.mp4".to_string())?;
Ok(())
}
4. Applying a Simple Fade-In Effect:
This example shows how to apply a fade-in effect to the beginning of a video clip. rust use grok_video_generator::{Video, Clip, VideoEffect};
fn main() -> Result<(), Box
let mut video = Video::new();
video.add_clip(clip);
video.generate("output_with_fadein.mp4".to_string())?;
Ok(())
}
5. Generating a Silent Video with Specific Duration:
This example shows how to generate a silent video of a specified duration (in seconds). This can be useful for placeholder content or creating initial frames for further processing. rust use grok_video_generator::{Video};
fn main() -> Result<(), Box
Ok(())
}
This crate is licensed under the MIT License.
This crate is part of the grok-video-generator ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/blog/grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025/