sora-ai-video
1767.580.963.98
dotnet add package sora-ai-video --version 1767.580.963.98
NuGet\Install-Package sora-ai-video -Version 1767.580.963.98
<PackageReference Include="sora-ai-video" Version="1767.580.963.98" />
<PackageVersion Include="sora-ai-video" Version="1767.580.963.98" />
<PackageReference Include="sora-ai-video" />
paket add sora-ai-video --version 1767.580.963.98
#r "nuget: sora-ai-video, 1767.580.963.98"
#:package sora-ai-video@1767.580.963.98
#addin nuget:?package=sora-ai-video&version=1767.580.963.98
#tool nuget:?package=sora-ai-video&version=1767.580.963.98
sora-ai-video
A .NET library providing simplified access to video processing functionalities, streamlining integration with AI-powered video analysis services. This package provides helper classes and methods to facilitate common video tasks.
Installation
To install the sora-ai-video package, use the following command in your .NET project:
bash
dotnet add package sora-ai-video
Usage Examples
Here are some common usage scenarios for the sora-ai-video package:
1. Basic Video Information Retrieval: csharp using SoraAI.Video;
// Assuming you have a local video file string videoFilePath = "path/to/your/video.mp4";
try { var videoInfo = VideoHelper.GetVideoInfo(videoFilePath);
Console.WriteLine($"Video Duration: {videoInfo.Duration}");
Console.WriteLine($"Video Width: {videoInfo.Width}");
Console.WriteLine($"Video Height: {videoInfo.Height}");
Console.WriteLine($"Video Frame Rate: {videoInfo.FrameRate}");
} catch (VideoProcessingException ex) { Console.WriteLine($"Error processing video: {ex.Message}"); } catch (FileNotFoundException ex) { Console.WriteLine($"Video file not found: {ex.Message}"); }
2. Generating a Thumbnail from a Video: csharp using SoraAI.Video;
string videoFilePath = "path/to/your/video.mp4"; string outputThumbnailPath = "path/to/your/thumbnail.jpg";
try { VideoHelper.GenerateThumbnail(videoFilePath, outputThumbnailPath, TimeSpan.FromSeconds(10)); // Generate thumbnail at 10 seconds
Console.WriteLine($"Thumbnail generated successfully at: {outputThumbnailPath}");
} catch (VideoProcessingException ex) { Console.WriteLine($"Error generating thumbnail: {ex.Message}"); } catch (FileNotFoundException ex) { Console.WriteLine($"Video file not found: {ex.Message}"); }
3. Extracting Frames from a Video at Regular Intervals: csharp using SoraAI.Video;
string videoFilePath = "path/to/your/video.mp4"; string outputFrameDirectory = "path/to/your/frames/";
try { VideoHelper.ExtractFrames(videoFilePath, outputFrameDirectory, TimeSpan.FromSeconds(1)); // Extract a frame every 1 second
Console.WriteLine($"Frames extracted successfully to: {outputFrameDirectory}");
} catch (VideoProcessingException ex) { Console.WriteLine($"Error extracting frames: {ex.Message}"); } catch (FileNotFoundException ex) { Console.WriteLine($"Video file not found: {ex.Message}"); }
4. Checking if a video is valid: csharp using SoraAI.Video;
string videoFilePath = "path/to/your/video.mp4";
try { bool isValid = VideoHelper.IsValidVideo(videoFilePath);
if (isValid)
{
Console.WriteLine("The video is a valid video file.");
}
else
{
Console.WriteLine("The video is not a valid video file.");
}
} catch (FileNotFoundException ex) { Console.WriteLine($"Video file not found: {ex.Message}"); }
Feature Summary
- Video Information Retrieval: Easily obtain metadata such as duration, resolution, and frame rate.
- Thumbnail Generation: Create representative thumbnails from video files.
- Frame Extraction: Extract individual frames from videos at specified intervals.
- Video Validation: Quickly verify if a given file is a valid video.
- Error Handling: Includes custom exceptions for robust error management during video processing.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This package is part of the sora-ai-video ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/video/sora-ai-video/
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1767.580.963.98 | 149 | 1/5/2026 |