veo-3-1
A Dart package providing streamlined video processing functionalities, designed for efficient and reliable integration into your applications. This package simplifies common video manipulation tasks, allowing developers to focus on core application logic.
Installation
To use veo-3-1 in your Dart project, add it as a dependency in your pubspec.yaml file:
yaml
dependencies:
veo_3_1: ^1.0.0 # Replace with the latest version
Then, run dart pub get to install the package.
Usage
Here are some examples demonstrating the usage of the veo-3-1 package:
1. Extracting Video Metadata: dart import 'package:veo_3_1/veo_3_1.dart';
void main() async { final videoProcessor = VideoProcessor(); final metadata = await videoProcessor.getVideoMetadata('path/to/your/video.mp4');
if (metadata != null) { print('Video Duration: ${metadata.duration}'); print('Video Resolution: ${metadata.resolution}'); print('Video Codec: ${metadata.codec}'); } else { print('Failed to extract metadata.'); } }
2. Generating Video Thumbnails: dart import 'package:veo_3_1/veo_3_1.dart';
void main() async { final videoProcessor = VideoProcessor(); final thumbnailPath = await videoProcessor.generateThumbnail('path/to/your/video.mp4', 'path/to/save/thumbnail.jpg');
if (thumbnailPath != null) { print('Thumbnail saved at: $thumbnailPath'); } else { print('Failed to generate thumbnail.'); } }
3. Trimming a Video: dart import 'package:veo_3_1/veo_3_1.dart';
void main() async { final videoProcessor = VideoProcessor(); final trimmedVideoPath = await videoProcessor.trimVideo( 'path/to/your/video.mp4', 'path/to/save/trimmed_video.mp4', startTime: Duration(seconds: 5), endTime: Duration(seconds: 15));
if (trimmedVideoPath != null) { print('Trimmed video saved at: $trimmedVideoPath'); } else { print('Failed to trim video.'); } }
4. Checking Video Format Support: dart import 'package:veo_3_1/veo_3_1.dart';
void main() { final videoProcessor = VideoProcessor(); final isSupported = videoProcessor.isFormatSupported('path/to/your/video.mov');
if (isSupported) { print('Video format is supported.'); } else { print('Video format is not supported.'); } }
5. Converting Video to Different Format: dart import 'package:veo_3_1/veo_3_1.dart';
void main() async { final videoProcessor = VideoProcessor(); final convertedVideoPath = await videoProcessor.convertVideoFormat( 'path/to/your/video.mov', 'path/to/save/converted_video.mp4', targetFormat: 'mp4');
if (convertedVideoPath != null) { print('Converted video saved at: $convertedVideoPath'); } else { print('Failed to convert video.'); } }
Features
- Metadata Extraction: Retrieve essential video information such as duration, resolution, and codec.
- Thumbnail Generation: Easily create representative thumbnails for your videos.
- Video Trimming: Precisely cut and save specific segments of a video.
- Format Support Checking: Determine if a video format is compatible with the processing engine.
- Video Format Conversion: Convert videos to various popular formats.
License
MIT License
This package is part of the veo-3-1 ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/video/veo-3-1/