1. Táirgí
  2.   Físeán
  3.   .NET
  4.   Aspose.Video Cloud SDK le haghaidh .NET

Aspose.Video Cloud SDK le haghaidh .NET

 
 

API C# .NET chun Físeáin a Léamh, Cumaisc & Tiontú

Leabharlann Ard Próiseála Físeáin C# .NET a ligeann d’Fhorbróirí Bogearraí Luchtú, Léamh, Cumasc, Ath-chódú & Tiontú Físeáin i gclúdach.

Aspose.Video Cloud SDK do .NET ná API cumhachtach bunaithe ar scamaill a chuireann ar chumas forbróirí oibriú le raon leathan de ghnóthaí a bhaineann le físeáin gan gá le cláir chasta. Ceadaíonn an leabharlann d'fhorbróirí bogearraí oibriú le comhaid físe i gcéin agus is féidir iad a uasluchtú, a chur in eagar, a íosluchtú, a fheiceáil, agus a scriosadh go héasca ó sheirbhísí stórála scamaill ar nós Amazon S3, Google Cloud Storage, Dropbox, agus go leor eile. Is seirbhís bhainistithe go hiomlán é nach n-éilíonn aon chrua-earraí ná bainistíocht bhunstruchtú.

Aspose.Video Cloud SDK do .NET atá deartha chun a bheith simplí le húsáid, le hacmhainní dea-dhoiciméadaithe, samplaí, agus píosaí cód. Soláthraíonn an API seo raon leathan gnéithe le haghaidh oibriú le físeáin, lena n-áirítear tiontú físe, athmhéidriú, gearradh, agus gearradh gearr, baint fuaime as físeáin, cruthú mionscríbeanna físe, cur uisce marcanna ar fhíseáin, agus go leor eile. Tá an API bunaithe ar scamaill tógtha ar bharr Aspose.Video do .NET, leabharlann láidir le haghaidh oibriú le comhaid físe i .NET.

Aspose.Video Cloud SDK for .NET cuireann sé ar fáil raon leathan formáidí físe, lena n-áirítear WMV, AVI, FLV, MKV, MK3D, MKA, MKS, WEBM, MP4, MXF, MOV, QT, agus níos mó. Cuimsíonn an leabharlann freisin tacaíocht do roinnt codecanna físe agus fuaime ar nós Apple ProRes, DNxHD, H.264, H.265, Motion JPEG, VP6, P8, VP9, XviD, Windows Media Video v9, AAC, AC-3, MP3, Opus agus go leor eile. Déanann sé seo Aspose.Video ina réiteach idéalach do raon leathan feidhmchlár, ó eagarthóireacht físe agus bainistíocht meán go sruthú físe agus roinnt.

Previous Next

Ag tosú le Aspose.Video Cloud SDK do .NET

Is é an bealach molta chun Aspose.Video Cloud SDK do .NET a shuiteáil ná úsáid a bhaint as NuGet. Úsáid an t-ordú seo a leanas le haghaidh suiteála réidh.

Suiteáil Aspose.Video Cloud SDK do .NET trí NuGet

 Install-Package Aspose.Video-Cloud 
Is féidir leat íoslódáil go díreach freisin ó leathanach scaoilte táirge Aspose.

Tiontaigh físeán go formáidí eile trí API .NET

Tá tacaíocht iomlán le cur i bhfeidhm ag Aspose.Video Cloud SDK do .NET chun comhaid físe a thiontú go formáidí comhaid eile a dtacaítear leo laistigh de fheidhmchláir .NET. Tá gnéithe tábhachtacha éagsúla curtha san áireamh sa leabharlann a bhaineann le luchtú agus tiontú físe, mar shampla coigeartú airíonna físe (FPS, taifeach, leibhéal imleachta), tiontú físe ó AVI go formáid mp4, cur uiscefhionn téacs isteach sa fhíse, cur uiscefhionn íomhá isteach sa fhíse, athrú taifigh an fhíse, ionchódú an fhíse le codec difriúil, méadú nó laghdú luas athsheinm an fhíse, coigeartú cóimheas treoíochta an fhíse, déanamh fuaime an fhíse níos ciúine go leath den bhunús, coigeartú ráta giotán an fhíse agus go leor eile.

Tiontaigh físeáin AVI go formáid MP4

// For complete examples and data files, please go to https://github.com/aspose-video-cloud/aspose-video-cloud-dotnet/
using Aspose.Video.Cloud.Sdk.Api;
using Com.Aspose.Storage.Api;
using Aspose.Video.Cloud.Sdk.Model;
using Aspose.Video.Cloud.Sdk.Model.Requests;

private const string BaseProductUri = @"https://api.aspose.cloud/v1.1";
// Get App Key and App SID from https://dashboard.aspose.cloud/
private const string AppSID = ""; 
private const string AppKey = "";

this.VideoApi = new VideoApi(AppKey, AppSID, BaseProductUri);
this.StorageApi = new StorageApi(AppKey, AppSID, BaseProductUri);

var localName = "sample.avi";
var remoteName = "toconvert.avi";
var fullName = Path.Combine(this.dataFolder, remoteName);
var resultPath = Path.Combine(this.dataFolder, "converted.mp4");
ConvertOptions options = new ConvertOptions();

this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + localName));

var request = new PostConvertVideoRequest(remoteName, "mp4", resultPath, options, this.dataFolder);
var actual = this.VideoApi.PostConvertVideo(request);
Aspose.Video Cloud SDK for .NET

Bain amach cuid de fhíseán trí API .NET

Cuireann Aspose.Video Cloud SDK le haghaidh .NET ar chumas forbróirí bogearraí a bhfíseáin a luchtú i bhformáidí comhaid éagsúla agus cuid dá bhfíseáin a bhaint gan aon spleáchas seachtrach. Ligeann an leabharlann cuid de fhíseán a bhaint ag baint úsáide as Aspose.Video trí am tosnaidh agus deireadh an mhíre atá ag teastáil a shonrú ag baint úsáide as an rang ExtractVideoApi. Ligeann an API do fhorbróirí roghanna breise a shocrú don bhaint amach an mhíre, mar shampla an fhormáid aschurtha agus cáilíocht an fhíseáin a bhaintear amach. Tá an réad freagra a thugtar ar ais ina bhfuil na sonraí físeáin a bhaintear amach, is féidir leat iad a shábháil i gcomhad ag baint úsáide as an modh Save.

Bain amach cuid de fhíseán trí API .NET

// First, you need to initialize the VideoApi instance
var videoApi = new VideoApi(apiKey, appSid, basePath);

// Specify the name of the source video file and the start and end times of the desired segment in seconds
var name = "sample.mp4";
var startTime = 30; // start time in seconds
var endTime = 60; // end time in seconds

// Set the options for the segment extraction
var options = new ExtractOptions
{
    StartTime = startTime,
    EndTime = endTime
};

// Extract the desired segment from the video and save it to a new file
var response = videoApi.ExtractVideo(name, options);
response.Save("extracted.mp4");

Conas airíonna físeáin a fháil trí API .NET

Tá tacaíocht iomlán le láimhseáil airíonna físeáin curtha san áireamh ag Aspose.Video Cloud SDK le haghaidh .NET i bhfeidhmchláir C# .NET féin. Tugann an API réad a chuimsíonn faisnéis faoi fhíseán mar codec, taifeach, cosán, fad ama srl. Tá airíonna fuaime san áireamh freisin. Léiríonn an sampla cód thíos conas na hairíonna físeáin a aisghabháil agus a úsáid de réir a n-éileamh.

Conas airíonna físeáin a fháil trí API .NET?

using Aspose.Video.Cloud.Sdk.Api;

using Com.Aspose.Storage.Api;

using Aspose.Video.Cloud.Sdk.Model;
using Aspose.Video.Cloud.Sdk.Model.Requests;
private const string BaseProductUri = @"https://api.aspose.cloud/v1.1";

// Get App Key and App SID from https://dashboard.aspose.cloud/

private const string AppSID = ""; 
private const string AppKey = "";

var localName = "sample.avi";
var remoteName = "TestGetVideo.avi";

var fullName = Path.Combine(this.dataFolder, remoteName);

this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + localName));
var request = new GetVideoPropertiesRequest(remoteName, this.dataFolder);
var actual = this.VideoApi.GetVideoProperties(request);

 Gaeilge