.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    
 


Get media information about any format media file

.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

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

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

////set the source and output file name

oMediaManagerPro.SourceFile_Name = "GuitarPlayer.mpg";

MediaInfo oMediaInfo = oMediaManagerPro.Get_MediaInfo();

#region Print Output Information

StringBuilder strOutputInfo = new StringBuilder();

strOutputInfo.Append("File Name= " + oMediaInfo.File_Name + "<br />");

strOutputInfo.Append("Audio Codec= " + oMediaInfo.Audio_Codec + "<br />");

strOutputInfo.Append("Video Codec= " + oMediaInfo.Video_Codec + "<br />");

strOutputInfo.Append("Video Bitrate= " + oMediaInfo.Video_Bitrate + "<br />");

strOutputInfo.Append("Audio Bitrate= " + oMediaInfo.Audio_Bitrate + "<br />");

strOutputInfo.Append("Audio Sampling Rate= " + oMediaInfo.Sampling_Rate + "<br />");

strOutputInfo.Append("Audio Channel= " + oMediaInfo.Channel + "<br />");

strOutputInfo.Append("Video Frame_Rate= " + oMediaInfo.Frame_Rate + "<br />");

strOutputInfo.Append("Video Duration= " + oMediaInfo.Duration + "<br />");

strOutputInfo.Append("Video Duration in Seconds= " + oMediaInfo.Duration_Sec + "<br />");

strOutputInfo.Append("Width= " + oMediaInfo.Width + "<br />");

strOutputInfo.Append("Height= " + oMediaInfo.Height + "<br />");

HttpContext.Current.Response.Write(strOutputInfo.ToString());

#endregion

 
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

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

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

'set the source and output file name

oMediaManagerPro.SourceFile_Name = "GuitarPlayer.mpg"

Dim oMediaInfo As MediaInfo = oMediaManagerPro.Get_MediaInfo()

'#Region "Print Output Information"

Dim strOutputInfo As New StringBuilder()

strOutputInfo.Append("File Name= " & oMediaInfo.File_Name & "<br />")

strOutputInfo.Append("Audio Codec= " & oMediaInfo.Audio_Codec & "<br />")

strOutputInfo.Append("Video Codec= " & oMediaInfo.Video_Codec & "<br />")

strOutputInfo.Append("Video Bitrate= " & oMediaInfo.Video_Bitrate & "<br />")

strOutputInfo.Append("Audio Bitrate= " & oMediaInfo.Audio_Bitrate & "<br />")

strOutputInfo.Append("Audio Sampling Rate= " & oMediaInfo.Sampling_Rate & "<br />")

strOutputInfo.Append("Audio Channel= " & oMediaInfo.Channel & "<br />")

strOutputInfo.Append("Video Frame_Rate= " & oMediaInfo.Frame_Rate & "<br />")

strOutputInfo.Append("Video Duration= " & oMediaInfo.Duration & "<br />")

strOutputInfo.Append("Video Duration in Seconds= " & oMediaInfo.Duration_Sec & "<br />")

strOutputInfo.Append("Width= " & oMediaInfo.Width & "<br />")

strOutputInfo.Append("Height= " & oMediaInfo.Height & "<br />")

HttpContext.Current.Response.Write(strOutputInfo.ToString())

'#End Region

 
 
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.