| Crates.io | seedance_ai_video |
| lib.rs | seedance_ai_video |
| version | 67.0.41 |
| created_at | 2026-01-05 02:49:49.482972+00 |
| updated_at | 2026-01-05 02:49:49.482972+00 |
| description | High-quality integration for https://supermaker.ai/video/seedance-ai-video/ |
| homepage | https://supermaker.ai/video/seedance-ai-video/ |
| repository | https://github.com/qy-upup/seedance-ai-video |
| max_upload_size | |
| id | 2023002 |
| size | 10,102 |
A Rust crate for efficient video processing and analysis, designed for AI-driven applications. This crate provides tools for tasks such as frame extraction, video metadata retrieval, and basic video manipulation.
To use seedance-ai-video in your Rust project, add the following to your Cargo.toml file:
toml
[dependencies]
seedance-ai-video = "0.1.0" # Replace with the latest version
Here are a few examples demonstrating how to use the seedance-ai-video crate:
1. Extracting Frames from a Video:
This example demonstrates how to extract individual frames from a video file and save them as JPEG images. rust use seedance_ai_video::video_processor::VideoProcessor;
fn main() -> Result<(), Box
let processor = VideoProcessor::new(video_path)?;
processor.extract_frames(output_dir, 10)?; // Extract every 10th frame
println!("Frames extracted successfully to {}", output_dir);
Ok(())
}
2. Retrieving Video Metadata:
This example retrieves and prints basic metadata about a video file, such as duration, frame rate, and resolution. rust use seedance_ai_video::video_processor::VideoProcessor;
fn main() -> Result<(), Box
let processor = VideoProcessor::new(video_path)?;
let metadata = processor.get_metadata()?;
println!("Video Metadata:");
println!(" Duration: {} seconds", metadata.duration);
println!(" Frame Rate: {} fps", metadata.frame_rate);
println!(" Resolution: {}x{}", metadata.width, metadata.height);
Ok(())
}
3. Resizing a Video:
This example resizes a video to a specified width and height. rust use seedance_ai_video::video_processor::VideoProcessor;
fn main() -> Result<(), Box
let processor = VideoProcessor::new(video_path)?;
processor.resize_video(output_path, new_width, new_height)?;
println!("Video resized successfully to {}x{} and saved to {}", new_width, new_height, output_path);
Ok(())
}
4. Converting Video to Grayscale:
This example converts a video to grayscale.rust use seedance_ai_video::video_processor::VideoProcessor;
fn main() -> Result<(), Box
let processor = VideoProcessor::new(video_path)?; processor.convert_to_grayscale(output_path)?;
println!("Video converted to grayscale and saved to {}", output_path); Ok(()) }
This crate is licensed under the MIT License.
This crate is part of the seedance-ai-video ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/video/seedance-ai-video/