Cloud API to Manipulate and Convert Video files in any Platform

Aspose.Video Cloud is a REST API to manipulate and convert the Video documents hosted on the cloud. It offers the capabilities to use any language & platform which is capable of calling REST APIs.

  Start Free Trial
Aspose.Video Cloud

Aspose.VideoCloud

 
 

Aspose.Video Cloud is a true REST API which allows you to edit video file properties such as FPS, aspect ratio and resolution. Besides files manipulation, it also enables you to convert the video to different supported formats and also re-encode it with the different video codecs.

It also provides you the leverage to combine several video files into one single video, as well as adjust various properties such as:

  • Volume level
  • FPS
  • PTS
  • Resolution
  • Aspect Ratio
  • Bitrate
  • Video Standard (PAL, NTSC, FILM)
 

Advanced Video Processing Cloud REST API Features

 

 

Re-encoding with different video codec

 

High accuracy rate

 

Inter conversion to various video formats

 

Adjust Video Properties

 

Add image watermark

 

Add Text watermark

 

Extract thumbnail image

 

Get video information

Interconversion between different formats

Aspose.Video Cloud provides method for converting the video into different formats and during conversion, we can adjust video properties such as FPS, resolution, volume level etc. The similar method also supports the feature to add watermark (Text or Image) to the video file. The frameSize property in request provides the capabilities to update/adjust the resolution of video file.

Convert AVI to MP4 format - C#


this.VideoApi = new VideoApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi = new StorageApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
ConvertOptions options = new ConvertOptions();
this.StorageApi.PutCreate(Path.Combine(this.dataFolder, "toconvert.avi"), null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.avi"));
var request = new PostConvertVideoRequest("toconvert.avi", "mp4", "converted.mp4", options, this.dataFolder);
var actual = this.VideoApi.PostConvertVideo(request);

Add Text watermark to Video File - C#


this.VideoApi = new VideoApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi = new StorageApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
ConvertOptions options = new ConvertOptions();
options.WatermarkText = new WatermarkTextOptions();
options.WatermarkText.Text = "Test watermark text";
options.WatermarkText.FontFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Fonts), "Arial.ttf");
this.StorageApi.PutCreate(Path.Combine(this.dataFolder, "sample.avi"), null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.avi"));
var request = new PostConvertVideoRequest("samle.avi", "mp4", "convertedWatermarkText.mp4", options, this.dataFolder);
var actual = this.VideoApi.PostConvertVideo(request);

Change Video Resolution - C#


this.VideoApi = new VideoApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi = new StorageApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
ConvertOptions options = new ConvertOptions();
options.FrameSize = "840x480";
this.StorageApi.PutCreate(Path.Combine(this.dataFolder, "sample.avi"), null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.avi"));
var request = new PostConvertVideoRequest("samle.avi", "avi", "resolution_updated.avi", options, this.dataFolder);
var actual = this.VideoApi.PostConvertVideo(request);

Add Audio to Video File - C#


this.VideoApi = new VideoApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi = new StorageApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi.PutCreate(Path.Combine(this.dataFolder, "TestPostAddAudio.avi"), null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.avi"));
this.StorageApi.PutCreate(Path.Combine(this.dataFolder, "test.wav"), null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.avi"));
AudioContainer options = new AudioContainer();
options.Path = Path.Combine(this.dataFolder, "test.wav");
var request = new PostConvertVideoRequest("TestPostAddAudio.avi", Path.Combine(BaseTestOutPath, "TestPostAddAudio.avi"), options, this.dataFolder);
var actual = this.VideoApi.PostConvertVideo(request);

Get Video Information - C#


this.VideoApi = new VideoApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi = new StorageApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi.PutCreate(Path.Combine(this.dataFolder, "TestGetVideo.avi"), null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.avi"));
var request = new GetVideoRequest("TestGetVideo.avi", this.dataFolder);
var actual = this.VideoApi.GetVideo(request);

Append Video Files - C#


this.VideoApi = new VideoApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
this.StorageApi = new StorageApi(AppKey, AppSID, @"https://api.aspose.cloud/v1.1");
AppendOptions options = new AppendOptions();
this.StorageApi.PutCreate(Path.Combine(this.dataFolder,"TestPostAppendVideo.avi"), null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.avi"));
this.StorageApi.PutCreate("videoForAppend.mp4", null, null, File.ReadAllBytes(BaseTestContext.GetDataDir() + "sample.mp4"));
options.VideoToAppendPath = Path.Combine(this.dataFolder, "videoForAppend.mp4");
var request = new PostAppendVideoRequest("TestPostAppendVideo.avi", Path.Combine(BaseTestOutPath, "TestPostAppendVideo.avi");, options, this.dataFolder);
var actual = this.VideoApi.PostAppendVideo(request);

Add Audio

The feature to Add audio track to the video file enables you to add an additional audio track and while playing video, the user can switch between these Audio tracks. These files can be in different format or you can use different codecs and the resultant file format will depend upon the extension provided for the resultant file. You can also set different time options for the audio track such as starting position, end position and offset. These options determine the time-frame in video from which the new audio will start playing and you can also specify the point until which it will be played.

Append Videos

Get the feature to Append one video file to another video file. The files can be in different format or they can use different codecs but the resultant file will depend upon the extension specified for resultant file (i.e. AVI, MP4, M4V etc). Now concerning to the encoding of resultant file, you can set any supported codec (i.e. x265, x264, WMV etc) or you can leave it default value.

Extract Video

Aspose.Video Cloud also offers the feature to Extract a part of video from input file and save it as a new video file. While extracting the video, you need to specify the time position in milliseconds from which the extracted part will begin and also the duration in milliseconds for the extracted part (how much milliseconds should be extracted).

API Explorer

The easiest way to try out our API right away in web browser is using Aspose for Cloud Web API explorer. It is a collection of Swagger documentation for the Aspose for Cloud APIs, where you get the information about all the resources in the API. It also provides testing and interactivity to our API endpoint documentation.

 

Support and Learning Resources