Crates.io | A2VConverter |
lib.rs | A2VConverter |
version | 0.1.1 |
source | src |
created_at | 2024-02-22 12:02:12.696044 |
updated_at | 2024-02-22 12:08:07.613998 |
description | AudioVideoConverter is a Rust library that provides functionality to convert between audio and video files using the FFmpeg library. |
homepage | |
repository | |
max_upload_size | |
id | 1149266 |
size | 4,623 |
AudioVideoConverter is a Rust library that provides functionality to convert between audio and video files using the FFmpeg library.
Run the following Cargo command in your project directory:
cargo add A2VConverter
Add this to your Cargo.toml
:
[dependencies]
A2VConverter = "0.1.1"
fn main() {
// Convert audio file to video
AudioVideoConverter::convert_audio_to_video("input_audio.mp3", "output_video.mp4")
.unwrap();
println!("Audio converted to video successfully!");
// Convert video file to audio
AudioVideoConverter::convert_video_to_audio("input_video.mp4", "output_audio.mp3")
.unwrap();
println!("Video converted to audio successfully!");
}