.Net Components, Tools and Utilities
 
Home About us Contact us Products Support Faq News Login
Product Menu
Product Overview
Product Features
Who Will Buy
 
Developer Guide
Pre Requisites
Integration Guide
C# Samples
VB.Net Samples
Class Members
Trial vs Purchased
 
My Account
Register Free
My Account
Login
Free Online Tools Convert c# to vb | Convert vb to c# | ASP.Net Machine Key Generator
JavaScript code Compressor | CSS code Compressor    
 


Post watermark on any format video at the time of conversion

.NET Media Manager Pro Component
.NET Media Manager Pro Component
Trial: Free Trial vs Prchased
cost: $69
Downloads: 1639
Rating: Product Rating
Download .NET Media Manager Pro Component

Buy .NET Media Manager Pro Component
 
 
C# Code    
 

//Declare object of class MediaManagerPro

MediaManagerPro oMediaManagerPro = new MediaManagerPro();

//Get the rooth path

 

string strRootPath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath);

//set the directory path info for ffmpeg file

 

oMediaManagerPro.FFMPEG_Path = HttpContext.Current.Server.MapPath("~\\ffmpeg\\ffmpeg.exe");

//Set source file info

 

oMediaManagerPro.SourceFile_Path = strRootPath + "\\contents\\Source";

oMediaManagerPro.SourceFile_Name = "GuitarPlayer.avi";

//set output file info

 

 

oMediaManagerPro.OutputFile_Path = strRootPath + "\\contents\\mpg";

oMediaManagerPro.OutputFile_Name = "GuitarPlayer.flv";

//watermark related properties (This require the shared build of ffmpeg.)

 

 

oMediaManagerPro.WaterMark_Path = strRootPath + "\\contents\\Source";

oMediaManagerPro.WaterMark_Image = "watermark.gif";

//call ConvertTo_AVI method

 

 

MediaInfo oMediaInfo = oMediaManagerPro.ConvertTo_FLV();

// retrieve video informatioin

 

if (oMediaInfo.Error_Code > 0)

{

HttpContext.Current.Response.Write(":: Video processing failed ::<br/>Error code: " + oMediaInfo.Error_Code + "<br />Error Message: " + oMediaInfo.Error_Message);

return;

}

 

 

 

 
VB.Net Code    
 

'Declare object of class MediaManagerPro

Dim oMediaManagerPro As New MediaManagerPro()

'Get the rooth path

 

Dim strRootPath As String = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath)

'set the directory path info for ffmpeg file

 

oMediaManagerPro.FFMPEG_Path = HttpContext.Current.Server.MapPath("~\ffmpeg\ffmpeg.exe")

'Set source file info

 

oMediaManagerPro.SourceFile_Path = strRootPath & "\contents\Source"

oMediaManagerPro.SourceFile_Name = "GuitarPlayer.avi"

'set output file info

oMediaManagerPro.OutputFile_Path = strRootPath & "\contents\mpg"

oMediaManagerPro.OutputFile_Name = "GuitarPlayer.flv"

'watermark related properties (This require the shared build of ffmpeg.)

oMediaManagerPro.WaterMark_Path = strRootPath & "\contents\Source"

oMediaManagerPro.WaterMark_Image = "watermark.gif"

'call ConvertTo_AVI method

Dim oMediaInfo As MediaInfo = oMediaManagerPro.ConvertTo_FLV()

' retrieve video informatioin

 

If oMediaInfo.Error_Code > 0 Then

HttpContext.Current.Response.Write((":: Video processing failed ::<br/>Error code: " & oMediaInfo.Error_Code & "<br />Error Message: ") + oMediaInfo.Error_Message)

Exit Sub

 

End If

 
 
Sample Code Menu
Convert to FLV
Convert to AVI
Convert to MOV
Convert to MPG
Convert to WMV
Convert to M4V
Convert to M4A
Convert to MP3
Convert to WMA
Convert to MP4
Convert to 3GP
Grab Single Thumbnail
Grab Multiple Thumbnails
Get Media Information
Check Media Format
Crop Video
Add Padding to Video
Post Watermark on Video
  © Copyright 2009-2010 All4DotNet. Terms and Conditions  |  Sitemap  |  Links  | Links2 All Rights Reserved.