17 April 2008
On the fly video thumbnailing with Movie Thumbnailer & Classic Asp
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 ASPEXEC.rar (135.80 kb)Install aspexec.dll to your server (regsvr32 %pathtoaspexe%)
- 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
%>
Subscribe to Posts [Atom]