.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    
 


Grab single thumbnail image from any format video

.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.mpg";

//set output file info

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

//Single Thumb - Properties available in free version

oMediaManagerPro.Frame_Time = "5";

oMediaManagerPro.Image_Format = "jpg";

oMediaManagerPro.Image_Name = "Image_" + DateTime.Now.Ticks;

//Single Thumb - Properties available in full version

//oMediaManagerPro.Width = 320;

//oMediaManagerPro.Height = 240;

//grab thumbnails

MediaInfo oMediaInfo = oMediaManagerPro.Grab_Thumb();

#region Print Output Information

StringBuilder strOutputInfo = new StringBuilder();

strOutputInfo.Append("Image Created = " + oMediaInfo.File_Name + "<br />");

HttpContext.Current.Response.Write(strOutputInfo);

#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 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.mpg"

'set output file info

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

'Single Thumb - Properties available in free version

oMediaManagerPro.Frame_Time = "5"

oMediaManagerPro.Image_Format = "jpg"

oMediaManagerPro.Image_Name = "Image_" & DateTime.Now.Ticks

'Single Thumb - Properties available in full version

'oMediaManagerPro.Width = 320;

'oMediaManagerPro.Height = 240;

'grab thumbnails

Dim oMediaInfo As MediaInfo = oMediaManagerPro.Grab_Thumb()

'#Region "Print Output Information"

Dim strOutputInfo As New StringBuilder()

strOutputInfo.Append("Image Created = " & oMediaInfo.File_Name & "<br />")

HttpContext.Current.Response.Write(strOutputInfo)

'#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.