Get video thumbnails and video information via MediaEncoder and ffmpeg

by nolovelust 19. February 2010 15:37

Update: See http://nolovelust.com/post/Another-Simple-C-Wrapper-For-FFmpeg.aspx for better solution


Attached code is a simple c# code based on mediahandler trial that will allow you to get thumbnails or video information such as run time, video codec, audio codec, resolution, bitrade and frame rate of the any video file on your web server

You need to set asp.net full trust and allow exucute right on folder that you upload it.

you need ffmpeg win32 build from http://ffmpeg.arrozcru.org/builds/
and attached file.

code has inputs
f = filename
j = job

j has 3 options; t (thumbnail,) tt (multiple thumbnails), i (file indormation)

you can call it as
to get thumbnails of file MediaHandler.aspx?f=finame.3gp&j=tt
to get thumbnail of file MediaHandler.aspx?f=finame.3gp&j=t
to get information about file MediaHandler.aspx?f=finame.3gp&j=i

Mediahandler.rar (11.19 kb)

 

Please see  http://nolovelust.com/post/Another-Simple-C-Wrapper-For-FFmpeg.aspx for all in one solution about video encoding on the fly with asp.net and c#

Tags:

ASP.NET | Open Source

Add comment

  Country flag

biuquote
Loading

Adverts

Welcome

Tag cloud

Month List