nLL

Mobile web, .Net, Android, gadgets and some random stuff

On the fly video thumbnailing with Movie Thumbnailer & Classic Asp

Update: For more advanced .Net C# version of this see http://nolovelust.com/post/Another-Simple-C-Wrapper-For-FFmpeg.aspx

 

Here is another simple code to get thumbnails of uploaded videos.

You need to;

Get MTN from http://moviethumbnail.sourceforge.net/index.en.html 
Extract it in a folder called thumbnailer under your web root 
Get ASPEXEC.rar (135.80 kb). Install aspexec.dll to your server (regsvr32 %pathtodll%) 

Create an upload script with your favorite upload component

Edit your upload script and insert below code after upload process

thumbnailpath=Server.Mappath("thumbnails")

Set objExecutor = Server.CreateObject("ASPExec.Execute")

objExecutor.Application = Server.Mappath("thumbnailer/mtn.exe")

objExecutor.TimeOut = 9000

objExecutor.Parameters = "-b 1 -j 100 -o .jpg -c 1 -r 1 -i -t -P -w 0 -O "&thumbnailpath&"\thumbnail.jpg"

objExecutor.ShowWindow = False

Set objExecutor = Nothing

 

Add comment